Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: Tumbleweed Plasma. gparted will not start.

  1. #11
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,665
    Blog Entries
    15

    Default Re: Tumbleweed Plasma. gparted will not start.

    Quote Originally Posted by tannington View Post
    You are not alone... I've just tried to use gparted and see exactly the same behaviour fails to start, and from the command line:

    "(gpartedbin:9789): Gtk-WARNING **: cannot open display: "

    I last used gparted around 6 months ago, there's been a lot of snapshots since then so I've no idea when this "problem" was first introduced. (Currently on 20171212).

    Changing the gtk theme per @GooeyGirls's post https://forums.opensuse.org/showthre...97#post2847597 makes no difference. Had been using "Default", tried Breeze and Adwata, with a reboot on each occasion for good measure.

    Googling for the "Gtk-WARNING **: cannot open display: " returns several hits, all of which seem to indicate this is caused by the Xserver not running and/or running under Wayland.

    I'm not using Wayland and X is running...

    Affects both existing users _and_ a new test user, so it looks like a system level rather than user problem.


    @FlameBait

    Any idea which snapshot may have introduced this? Perhaps a clue there... Or have you made any progress with it?
    Hi
    Did you create a test user and try it there as well to eliminate user settings vs system settings.

    If you open a terminal and switch to root user with su - (not su or sudo), does it work then?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  2. #12
    Join Date
    Jul 2013
    Location
    Bavaria, Germany
    Posts
    24

    Default Re: Tumbleweed Plasma. gparted will not start.

    You can't start graphical applications with sudo.

    Just run "kdesu gparted" and it'll work.

  3. #13
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,213

    Default Re: Tumbleweed Plasma. gparted will not start.

    Quote Originally Posted by malcolmlewis View Post
    Did you create a test user and try it there as well to eliminate user settings vs system settings.
    Yes, both existing users and a new test user exhibit the same problem... even rebooted between each try just for good measure.

    If you open a terminal and switch to root user with su - (not su or sudo), does it work then?
    Yep! That works... well, gparted launches OK (I didn't actually use it, but will do shortly...)

    Also, that gave me another idea.

    If I use the KDE Menu Editor to change the entry for gparted (Advanced Tab) to:

    "Run as different user" "root"

    then it launches from the menu (after requesting root password).


    For the moment, unless there is a compelling reason why I shouldn't, I'll leave it like that.

    Another pat on the back for you Malcolm, thanks.
    Regards, Paul

    Tumbleweed (Snapshot: 20190916) KDE Plasma 5
    Non-Tumbling Tumblweed (20150508) KDE 4 - Resurrected
    2x Leap 15.1 KDE Plasma 5

  4. #14
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,213

    Default Re: Tumbleweed Plasma. gparted will not start.

    Quote Originally Posted by Vogtinator View Post
    You can't start graphical applications with sudo.
    It wasn't previously being started with sudo, but from the KDE Application Menu.

    Just run "kdesu gparted" and it'll work.
    And, yes, that also starts the application.
    Regards, Paul

    Tumbleweed (Snapshot: 20190916) KDE Plasma 5
    Non-Tumbling Tumblweed (20150508) KDE 4 - Resurrected
    2x Leap 15.1 KDE Plasma 5

  5. #15
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,665
    Blog Entries
    15

    Default Re: Tumbleweed Plasma. gparted will not start.

    Quote Originally Posted by tannington View Post
    It wasn't previously being started with sudo, but from the KDE Application Menu.



    And, yes, that also starts the application.
    Hi
    OK, it's a polkit bug and has been fixed on the OBS development repo, gparted changed to /usr/bin from /usr/sbin.
    https://build.opensuse.org/package/v...anges?expand=1


    Edit /usr/share/polkit-1/actions/org.opensuse.policykit.gparted.policy and change exec from /usr/sbin/gparted to /usr/bin/gparted.

    I guess the fix will filter through in due course....
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  6. #16
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,213

    Default Re: Tumbleweed Plasma. gparted will not start.

    Quote Originally Posted by malcolmlewis View Post
    OK, it's a polkit bug and has been fixed on the OBS development repo, gparted changed to /usr/bin from /usr/sbin.
    Edited (...policykit.gparted...), KDE Menu reverted to normal user, now launches OK.

    Hopefully the OP will also pick up on this.

    And another pat on the back! Many thanks for finding that, appreciated.
    Regards, Paul

    Tumbleweed (Snapshot: 20190916) KDE Plasma 5
    Non-Tumbling Tumblweed (20150508) KDE 4 - Resurrected
    2x Leap 15.1 KDE Plasma 5

  7. #17
    Join Date
    Jan 2009
    Location
    Taft, Republic of California. UTC -8
    Posts
    1,474

    Default Re: Tumbleweed Plasma. gparted will not start.

    I haven't had time to get back to this.
    I'm going to try on one of my other Tumbleweed machines to see if they have the issue too when I get time.
    I need to use gparted to work with some micro SD cards.
    Tumbleweed

  8. #18
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,213

    Default Re: Tumbleweed Plasma. gparted will not start.

    Quote Originally Posted by FlameBait View Post
    I haven't had time to get back to this.
    I'm going to try on one of my other Tumbleweed machines to see if they have the issue too when I get time.
    I need to use gparted to work with some micro SD cards.
    The solution is as posted by Malcolm:

    Quote Originally Posted by malcolmlewis View Post
    Edit /usr/share/polkit-1/actions/org.opensuse.policykit.gparted.policy and change exec from /usr/sbin/gparted to /usr/bin/gparted.
    Regards, Paul

    Tumbleweed (Snapshot: 20190916) KDE Plasma 5
    Non-Tumbling Tumblweed (20150508) KDE 4 - Resurrected
    2x Leap 15.1 KDE Plasma 5

  9. #19
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,492
    Blog Entries
    3

    Default Re: Tumbleweed Plasma. gparted will not start.

    Quote Originally Posted by FlameBait View Post
    I'm going to try on one of my other Tumbleweed machines to see if they have the issue too when I get time.
    The situation now seems clear.

    I never had a problem with "gparted". But that's because I'm an old time CLI user. So I start "gparted" at the root command line. It seems that there is a problem starting it from the menus, due to a bad polkit rule (explained in other posts above).
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  10. #20
    Join Date
    Jan 2009
    Location
    Taft, Republic of California. UTC -8
    Posts
    1,474

    Default Re: Tumbleweed Plasma. gparted will not start.

    Quote Originally Posted by nrickert View Post
    The situation now seems clear.

    I never had a problem with "gparted". But that's because I'm an old time CLI user. So I start "gparted" at the root command line. It seems that there is a problem starting it from the menus, due to a bad polkit rule (explained in other posts above).
    I had the issue with the CLI too.
    Going to try malcolmlewis' fix and will report. short of time today is seems.
    Tumbleweed

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •