I'm trying to get a specific service to start on login, and the usual method (KDE Autostart) isn't working so I'm trying to do it with a systemd unit:
$ cat startinsync.service [Unit] Description=insync-headless service After=default.target
[Service] ExecStart=/bin/sh /usr/bin/insync-headless start KillSignal=SIGINT
[Install] WantedBy=default.target
The docs say that the place to put the unit file is given by:
$ pkg-config systemd --variable=systemduserunitdir /usr/lib/systemd/user
So I copied the file there:
$ ls -l /usr/lib/systemd/user/startinsync.service -rw-r--r--. 1 root root 177 Jun 29 12:31 /usr/lib/systemd/user/startinsync.service
and tried to enable it:
$ sudo systemctl enable startinsync Failed to enable unit: Unit file startinsync.service does not exist.
I'm out of ideas.
poc