You are not logged in.
Pages: 1
I'm currently attempting to write a unit file to automatically start plank upon boot by following this guide.
What I have so far is this:
/usr/lib/systemd/user/plank.service
---------------------------------------------------------
[Unit]
Description=Plank dock
[Service]
Type=simple
ExecStart=/usr/bin/plank
[Install]
WantedBy=default.targetThis works fine if I just want to start the service at some arbitrary time, but when enabling to start at boot, it fails with the following log messages:
Jan 14 11:39:42 hostname plank[798]: Unable to init server: Could not connect: Connection refused
Jan 14 11:39:42 hostname systemd[792]: plank.service: Main process exited, code=exited, status=1/FAILURE
Jan 14 11:39:42 hostname systemd[792]: plank.service: Failed with result 'exit-code'.I'm assuming there is probably a dependency of plank that I'm not including in the unit file. Possibly something to do with X.Org Server or Gnome?
Any help (and possibly a short explanation of the dependencies here) would be much appreciated.
Last edited by lazystring (2018-01-14 20:48:01)
Offline
Why start it from systemd and not the startup files of your your wm/de?
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Writing a systemd service file is the wrong approach for this.
https://wiki.archlinux.org/index.php/Autostarting
Last edited by Slithery (2018-01-14 20:05:34)
Offline
Awesome, thanks! I was able to add it as a startup application through the gnome-tweak-tool.
Offline
Pages: 1