Bug 1424765 - gparted not works under wayland session
Summary: gparted not works under wayland session
Keywords:
Status: CLOSED DUPLICATE of bug 1397103
Alias: None
Product: Fedora
Classification: Fedora
Component: gparted
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mukundan Ragavan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-19 10:15 UTC by Mikhail
Modified: 2017-03-05 18:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-05 18:08:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2017-02-19 10:15:39 UTC
Description of problem:
gparted not works under wayland session

# rpm -q gparted
gparted-0.28.1-1.fc25.x86_64

# /usr/bin/gparted
-bash: /usr/bin/gparted: No such file or directory
[root@localhost sbin]# /usr/sbin/gparted
Created symlink /run/systemd/system/-.mount → /dev/null.
Created symlink /run/systemd/system/boot-efi.mount → /dev/null.
Created symlink /run/systemd/system/boot.mount → /dev/null.
Created symlink /run/systemd/system/home.mount → /dev/null.
Created symlink /run/systemd/system/proc-fs-nfsd.mount → /dev/null.
Created symlink /run/systemd/system/run-media-mikhail-41B0\x2d1261.mount → /dev/null.
Created symlink /run/systemd/system/run-media-mikhail-C394\x2d0B34.mount → /dev/null.
Created symlink /run/systemd/system/run-media-mikhail-home.mount → /dev/null.
Created symlink /run/systemd/system/run-media-mikhail-MegaFon.mount → /dev/null.
Created symlink /run/systemd/system/run-user-1000.mount → /dev/null.
Created symlink /run/systemd/system/run-user-42.mount → /dev/null.
Created symlink /run/systemd/system/tmp.mount → /dev/null.
Created symlink /run/systemd/system/var-lib-machines.mount → /dev/null.
Created symlink /run/systemd/system/var-lib-nfs-rpc_pipefs.mount → /dev/null.

(gpartedbin:32585): Gtk-WARNING **: cannot open display: 
Removed /run/systemd/system/-.mount.
Removed /run/systemd/system/boot-efi.mount.
Removed /run/systemd/system/boot.mount.
Removed /run/systemd/system/home.mount.
Removed /run/systemd/system/proc-fs-nfsd.mount.
Removed /run/systemd/system/run-media-mikhail-41B0\x2d1261.mount.
Removed /run/systemd/system/run-media-mikhail-C394\x2d0B34.mount.
Removed /run/systemd/system/run-media-mikhail-home.mount.
Removed /run/systemd/system/run-media-mikhail-MegaFon.mount.
Removed /run/systemd/system/run-user-1000.mount.
Removed /run/systemd/system/run-user-42.mount.
Removed /run/systemd/system/tmp.mount.
Removed /run/systemd/system/var-lib-machines.mount.
Removed /run/systemd/system/var-lib-nfs-rpc_pipefs.mount.

Comment 1 Mike Fleetwood 2017-03-05 16:41:06 UTC
This is documented as a known issue with Fedora 25:
  https://fedoraproject.org/wiki/Common_F25_bugs#wayland-root-apps

By design Wayland does not allow processes run as a different user to
display on the desktop.  Therefore using "su" or "sudo" to display a
graphical application will not work.

Simple workaround is to run "xhost +SI:localuser:root" in a terminal
before running GParted.

This is also documented in the GParted forun 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 1397103.
(But I don't have permission to do that).

Thanks,
Mike Fleetwood (GParted Developer)

Comment 2 Mukundan Ragavan 2017-03-05 18:08:32 UTC

*** This bug has been marked as a duplicate of bug 1397103 ***


Note You need to log in before you can comment on or make changes to this bug.