Bug 1385556
Summary: | gparted doesn't start with Gnome and Wayland | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Rolle <rolle.hoffmann> |
Component: | gparted | Assignee: | Mukundan Ragavan <nonamedotc> |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 24 | CC: | 7d28c752, dakingun, mike.fleetwood, nonamedotc, radist.morse |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-02 01:11:14 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Rolle
2016-10-17 10:12:19 UTC
yeah .. this one wayland/sudo issue tracked under bug#1274451. Just to be sure though - can you see if you can launch gparted from X11 session instead of wayland? This is must likely a duplicate of 1274451 This isn't exact the same issue as bug#1274451. bug#1274451 describe it as sudo/wayland issue. So apps with this issue doesn't start with sudo command. But they will start as root user (used with su command). gparted doesn't start neither with sudo nor su command. gparted works fine with X-Org server. I see now 2 possibilities: 1. In Fedora24 is in the wayland session no XWayland-layer(?) or so implemented -> there will be no bug fix needed, because the further development will be realized in Fedora 25. 2. In gparted is an old(?) gtk-function used, that is incapable to redirect to wayland calls and it will fail. But other gtk-apps doesn't have this problem, so I think they use other gtk-functions, that automatically redirect to wayland calls. -> Here is the possibility to change in gparted the gtk-functions. (Maybe I'm to naive and I'm wrong :-) Despite what Rolle says, this bug is a duplicate of bug 1274451. My standard text follows ... This is caused by Wayland not allowing processes run as a different user to display on the desktop. Therefore using "su" or "sudo" to display a graphical application doesn't work. Simple workaround is to run "xhost +local:" in the terminal first. This is documented in the GParted forum here: [SOLVED] How to run GParted on a GNOME on Wayland desktop http://gparted-forum.surf4.info/viewtopic.php?id=17446 This bug should be closed as a duplicate of bug 1274451. (But I don't have permission to do that). Thanks, Mike Fleetwood (GParted Developer) To counter Rolle's 2nd possibility. Try to run up to date gnome-system-monitor 3.20 on GNOME 3.20 desktop on Fedora 24, after suing to root. Result is gnome-system-monitor fails to connect to the display exactly as GParted does. [fedora@fedora24 ~]$ rpm -q gnome-system-monitor gnome-system-monitor-3.20.1-1.fc24.x86_64 [fedora@fedora24 ~]$ env | grep DISPLAY WAYLAND_DISPLAY=wayland-0 DISPLAY=:0 [fedora@fedora24 ~]$ su - Password: [root@fedora24 ~]# env | grep DISPLAY [root@fedora24 ~]# export WAYLAND_DISPLAY=wayland-0 [root@fedora24 ~]# env | grep DISPLAY WAYLAND_DISPLAY=wayland-0 [root@fedora24 ~]# gnome-system-monitor Unable to init server: Could not connect: Connection refused (gnome-system-monitor:2769): Gtk-WARNING **: cannot open display: [root@fedora24 ~]# export DISPLAY=:0 [root@fedora24 ~]# env | grep DISPLAY WAYLAND_DISPLAY=wayland-0 DISPLAY=:0 [root@fedora24 ~]# gnome-system-monitor No protocol specified Unable to init server: Could not connect: Connection refused (gnome-system-monitor:2773): Gtk-WARNING **: cannot open display: :0 Closing as duplicate as pointed out by Mike. *** This bug has been marked as a duplicate of bug 1274451 *** So, the bug 1274451 was closed as WONTFIX, and the resolution is that from now on GUI application shouldn't be run with root privileges, and all the privileged operation should be handled using polkit (I actually have no idea what does it mean, see comment 33 in that bug for details). And since gparted is a GUI that has no meaning without root access, I'd say this warrants for a bug re-open. Any news here? I experience the same issue. (In reply to rugk from comment #7) > Any news here? I experience the same issue. I don't think there is any change. The way to launch graphical applications in wayland as root is described here - http://gparted-forum.surf4.info/viewtopic.php?id=17446 But there should not be software installable, which just does not work in a default installation when starting it. |