GParted doesn't launch

The title says it all: GParted, which I installed via the terminal, won’t start on Ubuntu 26.04.

apt list gparted
gparted/resolute,now 1.8.0-1 amd64 [installed]

This is really annoying.

xwayland needs a bit of help i am guessing? Bit like gufw hopefully

Try the xhost trick via a terminal

xhost +local:
gparted
xhost +local:
non-network local connections being added to access control list

gparted

Still not. :disappointed_face:

The laptop is overheating, so I have to log out.

ok - I suspect thats budgie-polkit-dialog zooming to 100%

From another issue I’ve modified its started as follows

more /usr/share/applications/org.buddiesofbudgie.BudgiePolkit.desktop
[Desktop Entry]
Type=Application
Name=Budgie PolicyKit UI
Comment=Budgie PolicyKit Authorisation UI
Exec=sh -c ‘sleep 15 && /usr/libexec/budgie-desktop/budgie-polkit-dialog’
Terminal=false
Categories=GNOME;GTK;System;Core;
NoDisplay=true
StartupNotify=true
X-GNOME-AutoRestart=true
X-GNOME-Autostart-Notify=true
X-GNOME-Autostart-Phase=Desktop
OnlyShowIn=Budgie


After logout and login, I can run

xhost +x

gparted

The polkit dialog then displays correctly

Thanks, David, but after editing /usr/share/applications/org.buddiesofbudgie.BudgiePolkit.desktop, xhost now outputs this error message:

xhost +x
xhost:  bad hostname “x”

However I solved the problem by modifying one of my aliases:

alias sgp=‘xhost si:localuser:root; sudo gparted 2> /dev/null’ # Launch Gparted in “sudo” mode


And I took the opportunity to create a universal alias that allows you to launch any application in “sudo” mode:

alias sd=‘_sd() { xhost si:localuser:root; sudo “$1” “$2” 2> /dev/null; }; _sd’ # Launch a graphical application in “sudo” mode

sd gparted
sd nemo /usr/share/applications
sd gedit /etc/fstab

:light_bulb: For more information about the method, see this topic.

… must have a closer look at this alias stuff … all looks very useful :slight_smile:

Yes, this version allows you to pass functions.

Just to clarify, I restored the original settings for the Exec line in org.buddiesofbudgie.BudgiePolkit.desktop.