Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails when run via xfce shortcuts #177

Closed
phil294 opened this issue Aug 7, 2019 · 2 comments
Closed

Fails when run via xfce shortcuts #177

phil294 opened this issue Aug 7, 2019 · 2 comments
Labels

Comments

@phil294
Copy link

phil294 commented Aug 7, 2019

Something like x11docker --xephyr ...image... works fine, but when I configure it as an application shortcut in xfce like the following,

it breaks:
Output contains, among not important lines,

x11docker note: --kwin-xwayland: kwin_wayland not found.
x11docker note: --kwin-xwayland: Xwayland not found.
x11docker note: Using X server option --xorg
x11docker note: Could not find Xephyr, Xnest, nxagent,
  xpra, weston+Xwayland or kwin_wayland+Xwayland to run a nested X server.

x11docker note: Current X server :0.0 runs on tty 7.
  Access it with [CTRL][ALT][F7].

bash: [: not a tty: integer expression expected
x11docker note: New Xorg server  will run on tty not a tty.
  Access it with [CTRL][ALT][Fnot a tty].

/usr/lib/Xorg.wrap: Only console users are allowed to run the X server

sed: -e expression #1, char 16: Invalid collation character
Error: Can't open display: :102

I guess the process behind the shortcuts was created via startx in a tty, thus the confusion. But should that even matter? /usr/bin/Xephyr is very much installed. I even printed out the $PATH from a shortcut and it contained /usr/bin (obviously). So that error message is wrong.

Some weird syntax errors are in the above output, not sure whats going on here.

Furthermore, when I at first was confused about the Xorg wrap error message, I put allowed_users = anybody into /etc/X11/Xwrapper.config which didnt exist beforehand (using Arch btw hurr durr). This changed this very error to

(EE) 
Fatal server error:
(EE) Unrecognized option: vtnot
(EE) 
(EE) 

tl;dr: Xephyr should be working here, even though it comes from a tty, but it doesnt.

Thanks once again for this handy script! :-)

@mviereck
Copy link
Owner

mviereck commented Aug 7, 2019

Thank you for reporting this!
I've seen this bug in #176, too. The output of command tty is parsed wrong.
Can you please try out the latest master version? It includes a fix.

@mviereck mviereck added the bug label Aug 7, 2019
@phil294
Copy link
Author

phil294 commented Aug 7, 2019

Very sweet. Fixed! thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants