You are not logged in.
Pages: 1
I try to start autocutsel on boot of the system.
autocutsel.service
[Unit]
Description=Start autocutsel on boot
After=graphical.target
[Service]
Type=idle
User=user1
ExecStart=usr/bin/autocutsel -buttonup
ExecStop=pkill autocutsel
[Install]
WantedBy=graphical.targetjournalctl -b
autocutsel[369]: Error: Can't open display:If I try to run "systemctl start autocutsel" after start of X then get the same result.
What do I do wrong?
Last edited by Kirill Bugaev (2018-09-04 09:14:15)
Offline
Offline
Thanks. systemd --user is exactly what I need.
But a small question. I try to
sudo systemctl --user --global enable autocutselBut after reboot "systemctl --user status autocutsel" say
● autocutsel.service - Start autocutsel on boot
Loaded: loaded (/etc/systemd/user/autocutsel.service; en>
Active: inactive (dead)The most interesting is
$ systemctl --user status graphical.target
Unit graphical.target could not be found.I need to start autocutsel after X Server.
I have accidentally read neighbor topic where topic starter have similar problem with absent systemd dbus.target and use .xprofile to start spice-vdagent. It works in my case, God bless autocutsel stops automatically after X Server shut down. But I am still interesting in how it can be done with systemd service.
Last edited by Kirill Bugaev (2018-09-04 15:21:23)
Offline
Pages: 1