You are not logged in.
I'm trying to create a simple service for the daemon of clipmenu. I tried
[Unit]
Description=Clip menu daemon
[Service]
ExecStart=/usr/bin/clipmenud
[Install]
WantedBy=graphical.target
While the service seems to be started successfully and clipmenud is running the daemon does not seem to work. What could be missing?
Last edited by mrgreen7 (2015-11-30 22:12:22)
Offline
...the daemon does not seem to work.
What exactly doesn't work?
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
What exactly doesn't work?
The link in the original post?
I tried to follow it to confirm my suspicion that this is some sort of clipboard management tool ... is this correct? If so it would likely not be able to run as a system service. It would have to run as a user service, and even then it'd likely need the proper environment variables exported to interact with the X session running for that user.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Sorry for the broken link. Corrected it.
Yes it is a clipboard management tool.
The daemon is supposed to track when you copy something to the clipboard and make what you copied shows up in a respective history. However when starting the daemon as I described it via systemd no entries are copied to that history when copying something to the clipboard.
Is there a standard way to start services that need to interact with the X session?
Offline
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Thank you for the reply Trilby. I tried to follow your advice and made the service start the following script:
#!/usr/bin/
. /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
clipmenud
Unfortunately the daemon still was not working as intended. After I did a little more research I found that some people advice not to use systemd to start daemons that are considered user daemons in contrast to system daemons. I thus simply moved the start of the daemon in the .xinitrc file which is working fine.
Offline
That's a good solution - but you could also follow the wiki page I linked to which would be to set up a systemd user session and have the service file get the right environment variables. The script you included above acheives neither of those two goals, so I'm not surprised it failed.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline