Tumbleweed Plasma. gparted will not start.

When I try to start gparted it will not start.
I started if from the command line and get the following output

flamebait@flamebait:~> sudo gparted
[sudo] password for root:  
Created symlink /run/systemd/system/-.mount → /dev/null.
Created symlink /run/systemd/system/\x2esnapshots.mount → /dev/null.
Created symlink /run/systemd/system/boot-grub2-i386\x2dpc.mount → /dev/null.
Created symlink /run/systemd/system/boot-grub2-x86_64\x2defi.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/opt.mount → /dev/null.
Created symlink /run/systemd/system/run-user-1000.mount → /dev/null.
Created symlink /run/systemd/system/srv.mount → /dev/null.
Created symlink /run/systemd/system/sysroot.mount → /dev/null.
Created symlink /run/systemd/system/tmp.mount → /dev/null.
Created symlink /run/systemd/system/usr-local.mount → /dev/null.
Created symlink /run/systemd/system/var-cache.mount → /dev/null.
Created symlink /run/systemd/system/var-crash.mount → /dev/null.
Created symlink /run/systemd/system/var-lib-libvirt-images.mount → /dev/null.
Created symlink /run/systemd/system/var-lib-machines.mount → /dev/null.
Created symlink /run/systemd/system/var-lib-mailman.mount → /dev/null.
Created symlink /run/systemd/system/var-lib-mariadb.mount → /dev/null.
Created symlink /run/systemd/system/var-lib-mysql.mount → /dev/null.
Created symlink /run/systemd/system/var-lib-named.mount → /dev/null.
Created symlink /run/systemd/system/var-lib-nfs-rpc_pipefs.mount → /dev/null.
Created symlink /run/systemd/system/var-lib-pgsql.mount → /dev/null.
Created symlink /run/systemd/system/var-lib.mount → /dev/null.
Created symlink /run/systemd/system/var-lock.mount → /dev/null.
Created symlink /run/systemd/system/var-log.mount → /dev/null.
Created symlink /run/systemd/system/var-opt.mount → /dev/null.
Created symlink /run/systemd/system/var-run.mount → /dev/null.
Created symlink /run/systemd/system/var-spool.mount → /dev/null.
Created symlink /run/systemd/system/var-tmp.mount → /dev/null.
Created symlink /run/systemd/system/var.mount → /dev/null.
Created symlink /run/systemd/system/video.mount → /dev/null.

(gpartedbin:11752): Gtk-**WARNING** **: cannot open display:  
Removed /run/systemd/system/-.mount.
Removed /run/systemd/system/\x2esnapshots.mount.
Removed /run/systemd/system/boot-grub2-i386\x2dpc.mount.
Removed /run/systemd/system/boot-grub2-x86_64\x2defi.mount.
Removed /run/systemd/system/boot.mount.
Removed /run/systemd/system/home.mount.                                                                                                                                                                    
Removed /run/systemd/system/opt.mount.                                                                                                                                                                  
Removed /run/systemd/system/run-user-1000.mount.                                                                                                                                                        
Removed /run/systemd/system/srv.mount.                                                                                                                                                                 
Removed /run/systemd/system/sysroot.mount.                                                                                                                                                                
Removed /run/systemd/system/tmp.mount.                                                                                                                                                                    
Removed /run/systemd/system/usr-local.mount.                                                                                                                                                              
Removed /run/systemd/system/var-cache.mount.                                                                                                                                                              
Removed /run/systemd/system/var-crash.mount.                                                                                                                                                              
Removed /run/systemd/system/var-lib-libvirt-images.mount.                                                                                                                                                  
Removed /run/systemd/system/var-lib-machines.mount.                                                                                                                                                      
Removed /run/systemd/system/var-lib-mailman.mount.                                                                                                                                                        
Removed /run/systemd/system/var-lib-mariadb.mount.                                                                                                                                                        
Removed /run/systemd/system/var-lib-mysql.mount.                                                                                                                                                          
Removed /run/systemd/system/var-lib-named.mount.                                                                                                                                                          
Removed /run/systemd/system/var-lib-nfs-rpc_pipefs.mount.                                                                                                                                                  
Removed /run/systemd/system/var-lib-pgsql.mount.                                                                                                                                                          
Removed /run/systemd/system/var-lib.mount.                                                                                                                                                                
Removed /run/systemd/system/var-lock.mount.                                                                                                                                                              
Removed /run/systemd/system/var-log.mount.                                                                                                                                                                
Removed /run/systemd/system/var-opt.mount.                                                                                                                                                                
Removed /run/systemd/system/var-run.mount.
Removed /run/systemd/system/var-spool.mount.
Removed /run/systemd/system/var-tmp.mount.
Removed /run/systemd/system/var.mount.
Removed /run/systemd/system/video.mount.

I reinstalled the the packages but it didn’t solve the issue.

Hi
This sounds very much like the issue here;
https://forums.opensuse.org/showthread.php/528455-Tower-s-BtrFS-has-gone-ReadOnly-again-yet-again?p=2847597#post2847597

A plasma theme settings issue…

Everything is set to Breeze. So I’m scratching my head.
It’s one of the programs I must have too.

Hi
So did you try creating a test user, login and run? FWIW it runs fine on Gnome…

“gparted” seems to be working fine here under Plasma (on Tumbleweed).

No. I don’t have Gnome installed and with BRFS / I don’t think I have room.
Going to try on one of the other machines running Plasma.

What Plasma theme are you running? I’m all set to Breeze.

I have not changed it from the opensuse default. I think that’s breeze, or based on breeze.

Okay, the default is the opensuse theme. So I switched it to Breeze, logged out, logged in again. And “gparted” still starts up without a problem. (And, after testing that, I switched back to the opensuse theme).

That good to know.
Breeze Dark is what openSUSE Plasma sports at install if I recall correctly.

I am going to check what files systems I have installed too.
I have some stuff that might be from packman.
I had exfat but that was recently replaced with an official Tumbleweed package.
Still haven’t had time to check it on a different machine.

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/showthread.php/528455-Tower-s-BtrFS-has-gone-ReadOnly-again-yet-again?p=2847597#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?

You can’t start graphical applications with sudo.

Just run “kdesu gparted” and it’ll work.

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. :slight_smile:

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.

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/view_file/devel:openSUSE:Factory:Apps/gparted/gparted.changes?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…

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. :slight_smile:

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:

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.