...
[Service]
Type=oneshot
RemainAfterExit=yes
User=user
ExecStart=%h/.local/bin/firefox-sync.sh %i
ExecStop=%h/.local/bin/firefox-sync.sh %i
Как правильно взять в юните /home/user? Что-то типа
ExecStart=/home/${User}/.local/bin/firefox-sync.sh %i