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

applications fail with connection refused. #24

Open
ayham-1 opened this issue Jul 6, 2021 · 4 comments
Open

applications fail with connection refused. #24

ayham-1 opened this issue Jul 6, 2021 · 4 comments

Comments

@ayham-1
Copy link

ayham-1 commented Jul 6, 2021

Run zathura from the terminal. Errors out with this:

No protocol specified
Unable to init server: Could not connect: Connection refused

(zathura:11): Gtk-WARNING **: 11:00:51.082: cannot open display: :1
@ayham-1
Copy link
Author

ayham-1 commented Jul 6, 2021

Removed Xauthority and Xinitrc variables, now zathura works, but firefox does not. Firefox fails with the same exact error message without Gtk warnings

@ayham-1 ayham-1 changed the title zathura fails with connection refused. applications fail with connection refused. Jul 6, 2021
@Earnestly
Copy link
Owner

No protocol specified is the X11 protocol version of Permission denied and so would be related to the xauthority environment (and xauth).

This would be something specific to your setup and perhaps how you have manage xauth. You will have to look into these aspects as there isn't anything that sx specifically does, besides adding and removing its own authorisation entry, to manage these permissions.

@ayham-1
Copy link
Author

ayham-1 commented Jul 6, 2021

Yes, firefox is run through xephyr, is it not supported by sx?

@Earnestly
Copy link
Owner

By design sx uses the tty number as the value for DISPLAY and so makes starting nested servers difficult because they aren't executed from a /dev/tty context.

Instead, to give your user access under xephyr, you can use xhost +si:localuser:"$USER". See Xsecurity(7).

Other alternatives are sticking with startx or xinit as they provide access to the xserver command-line or modifying sx to do what you want. (It's intended to be illustrative and small enough to edit.)

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

No branches or pull requests

2 participants