I’m once more lost with all the different services/ways that Linux offers to autostart a program and was hoping you could point me in the right direction. I’m running mozillavpn (from AUR) and the build-in launch on startup feature is not working. Looking through journalctl I found this line:
Nov 28 12:34:12 roedelkiste systemd[1050]: app-mozillavpn\x2dstartup@autostart.service: Skipped due to 'exec-condition'.
And this is where I got lost:
How is a service like this defined?
How can I see what is happening here?
Where can I find and possible edit it?
What could “Skipped due to ‘exec-condition’” mean?
(I know that I could go the easy way and just use the KDE autostart, but this isn’t working properly for the mozillavpn app - and I want to learn something about how my system works )
This is because a condition that needs to be met for the service to start isn’t started yet, so the service couldn’t start.
a Service is just a plain text file with the extension .service that systemd can parse. a Service is defined by creating the text file in corrrect directory (either /etc/systemd/system for system-wide services, or somewhere in your home directory that I can’t remember the locatio9n of now, for user specific services.)
You can analyze the output of
systemctl status app-mozillavpn\x2dstartup@autostart.service
Hmm, doesn’t seem to be as easy as I thought. None of the commands do work - there doesn’t seem to be such a service - but it still shows up in the bootlog. Any ideas what I might be doing wrong?
$ journalctl -b | grep mozilla
Nov 28 14:46:16 roedelkiste systemd[1039]: app-mozillavpn\x2dstartup@autostart.service: Skipped due to 'exec-condition'.
$ systemctl --user status app-mozillavpn\x2dstartup@autostart.service
Unit app-mozillavpnx2dstartup@autostart.service could not be found.
$ sudo systemctl status app-mozillavpn\x2dstartup@autostart.service
Unit app-mozillavpnx2dstartup@autostart.service could not be found.
$ sudo systemctl edit app-mozillavpn\x2dstartup@autostart.service
No files found for app-mozillavpnx2dstartup@autostart.service.
Run 'systemctl edit --force --full app-mozillavpnx2dstartup@autostart.service' to create a new unit.
$ journalctl -xeu app-mozillavpn\x2dstartup@autostart.service
~
-- No entries --
$ sudo journalctl -xeu app-mozillavpn\x2dstartup@autostart.service
~
-- No entries --
Thanks - I figured it out. I needed to escape the \ in the service name. That lead me to a .desktop-file created by mozillavpn which seems to be only written for Gnome, so this probably isn’t the reason why it is not working for me.
Yeah, looks like something I’ve to take to the mozilla-folks and hope that they’ll add proper KDE support at some point in the future. Thank you for all your help!
Edit: the complete .desktop-file (/etc/xdg/autostart/mozillavpn-startup.desktop)
[Desktop Entry]
Name=MozillaVPN
Version=1.5
Exec=/usr/bin/mozillavpn ui -m -s
Comment=A fast, secure and easy to use VPN. Built by the makers of Firefox.
Type=Application
Icon=mozillavpn
OnlyShowIn=GNOME;Unity;MATE;
X-GNOME-AutoRestart=false
X-GNOME-Autostart-Notify=true