Bug 99490 - xhost +local: should work
Summary: xhost +local: should work
Status: RESOLVED WORKSFORME
Alias: None
Product: Wayland
Classification: Unclassified
Component: XWayland (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Wayland bug list
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-22 08:17 UTC by soloturn
Modified: 2018-06-04 07:31 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description soloturn 2017-01-22 08:17:48 UTC
some programs require a different user to run, e.g. gparted wants to run as root. to allow, 

xhost +local:

should work. it says "unable to open DISPLAY :1". i am not sure if this is related to bug99489, i recall this working, but am not sure any more.

this is on arch linux, versions:
weston 1.12.0-2
wayland 1.12.0-1
gnome-shell 3.22.2+18+gdf7727a-1
xorg-server 1.19.1-1
Comment 1 Olivier Fourdan 2017-01-23 08:04:55 UTC
xhost is an X11 client, it needs to conenct to the Xserver itself to change the acces control on the xserver.

What it tells you with "unable to open DISPLAY :1" is that it cannot connect to the X server.

 - Is your Xserver running on display :1 ?
 - Is the user yyou execute "xhost" is allowed to conenc tto the Xserver :1?
   (for example, if you run "xhost +local:" as root, it won;t work, because root is not allowed to conenct to the running X server of another user).
Comment 2 Daniel Stone 2018-06-04 07:31:50 UTC
Closing this bug as it should work fine; please reopen if you are still having issues.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.