You are not logged in.

#1 2021-10-08 10:46:07

nahush
Member
Registered: 2019-01-18
Posts: 170

sxhkd.service in not starting with systemctl command?{SOLVED}

hello , i am using arch linux with xfce4. i wanted to keep my simple x hot key demon , for my key bindings. but after created a .desktop file as per [link]https://wiki.archlinux.org/title/Sxhkd#Usage[/link]and systemd file as per [link]https://github.com/baskerville/sxhkd/bl … kd.service[/link]. i am not able to start or enable sxhkd.service.

i did found [link]https://bbs.archlinux.org/viewtopic.php?id=257626[/link]this. but at the end there is no answer , just leaving the sxhkd.also this for checking exit codes [link]https://freedesktop.org/software/system … #id-1.20.8[/link], but there is no  number mention on output of systemctl status sxhkd.service.

i do like to get an answer

please help me

thank you.

[musicarch@musicArch ~]$ systemctl start sxhkd.service
[musicarch@musicArch ~]$ systemctl status sxhkd.service
× sxhkd.service - Simple X Hotkey Daemon
     Loaded: loaded (/etc/systemd/system/sxhkd.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Fri 2021-10-08 16:12:11 IST; 3s ago
       Docs: man:sxhkd(1)
    Process: 3027 ExecStart=/usr/bin/sxhkd (code=exited, status=1/FAILURE)
   Main PID: 3027 (code=exited, status=1/FAILURE)
        CPU: 1ms

Oct 08 16:12:11 musicArch systemd[1]: Started Simple X Hotkey Daemon.
Oct 08 16:12:11 musicArch sxhkd[3027]: Can't open display.
Oct 08 16:12:11 musicArch systemd[1]: sxhkd.service: Main process exited, code=exited, status=1/FAILURE
Oct 08 16:12:11 musicArch systemd[1]: sxhkd.service: Failed with result 'exit-code'.

Last edited by nahush (2021-10-08 12:10:42)

Offline

#2 2021-10-08 11:02:01

Ferdinand
Member
From: Norway
Registered: 2020-01-02
Posts: 338

Re: sxhkd.service in not starting with systemctl command?{SOLVED}

Did you also do that bit about configuring Xorg as a systemd user service?

As you're using Xfce, I'm inclined to think that the alternative solution (autostarting it) might be preferable, especially considering the drawbacks listed with running Xorg as a systemd user service.

Offline

#3 2021-10-08 12:09:50

nahush
Member
Registered: 2019-01-18
Posts: 170

Re: sxhkd.service in not starting with systemctl command?{SOLVED}

Ferdinand wrote:

Did you also do that bit about configuring Xorg as a systemd user service?

As you're using Xfce, I'm inclined to think that the alternative solution (autostarting it) might be preferable, especially considering the drawbacks listed with running Xorg as a systemd user service.


thanks for reply i did try to start it as startup process .it worked.

thanks

Offline

Board footer

Powered by FluxBB