rbreaves / kinto

Mac-style shortcut keys for Linux & Windows.
http://kinto.sh
GNU General Public License v2.0
4.25k stars 213 forks source link

how to resolve /usr/bin/xhost: unable to open display ":10.0" #735

Open ifnk opened 1 year ago

ifnk commented 1 year ago

i use archlinux + i3wm , install xrdp xorg-xrdp

then i in win10 , and use mstsc to remote my i3wm

i want to use kinto to maping my mstsc keyshort

but it doesn't work

here is kinto log

11

how can i resolve it ?

joshgoebel commented 1 year ago

Unable to open display there looks like a problem... X needs to be running when you start the service.

ifnk commented 1 year ago

Unable to open display there looks like a problem... X needs to be running when you start the service.

i use command 'startx' to start i3wm , then i start kinto

but i can't presee any key ,then i stop kinto by use mouse , i can press keys

the kinto log error is

7月 23 10:39:13 ifnk sudo[10119]: root : PWD=/ ; USER=root ; COMMAND=/bin/bash -c /usr/bin/sudo pkill -f bin/xkeysnail && exit 0 7月 23 10:39:13 ifnk sudo[10119]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0) 7月 23 10:39:13 ifnk sudo[10121]: root : PWD=/ ; USER=root ; COMMAND=/usr/sbin/pkill -f bin/xkeysnail 7月 23 10:39:13 ifnk sudo[10121]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0) 7月 23 10:39:13 ifnk sudo[10121]: pam_unix(sudo:session): session closed for user root 7月 23 10:39:13 ifnk sudo[10119]: pam_unix(sudo:session): session closed for user root 7月 23 10:39:13 ifnk systemd[1]: xkeysnail.service: Control process exited, code=killed, status=15/TERM 7月 23 10:39:13 ifnk sudo[9943]: pam_unix(sudo:session): session closed for user root 7月 23 10:39:13 ifnk systemd[1]: xkeysnail.service: Failed with result 'signal'. 7月 23 10:39:13 ifnk systemd[1]: Stopped xkeysnail.

how can i fix it ?

joshgoebel commented 1 year ago

and use mstsc to remote my i3wm

I don't know if that will actually work... it could be that the problem is you have two X servers running and it's picking the wrong one? I'm not sure how xrdp works on Linux.

ifnk commented 1 year ago

and use mstsc to remote my i3wm

I don't know if that will actually work... it could be that the problem is you have two X servers running and it's picking the wrong one? I'm not sure how xrdp works on Linux.

now i only startx and start kinto application (xrdp service is enable and runing ) , not use mstsc from other machine ,

it have the same problem

nabinkhadka commented 1 year ago

I am having same problem in Fedora 36 image

LaurentFough commented 1 year ago

@ifnk Can you check the service file for xkeysnail and tell me what the Environment= key has set?

I had a similar issue: and creating an override(drop-in) for that key, to point to the actual $DISPLAY, worked for me.

@rbreaves: does kinto (on install) use the current $DISPLAY and hardcode it into the service file?