You are not logged in.
Pages: 1
I have Arch installed with KDE. I wanted to make some changes to my partiton table and thought of using gParted to get the work done.
I installed gparted as:
sudo pacman -S gparted
Now, when I try executing gparted form the GUI, I get the authentication window, where it asked for the user password. Upon entering it, nothing at all happens. gParted just wont start.
I tried running it from Konsole:
sudo gparted /dev/sda
I get an error as:
No protocol specified
(gpartedbin:2475): Gtk-WARNING **: cannot open display: :0
Please help identify why gParted wont start on my system.
Last edited by darnir (2012-01-08 05:11:09)
Offline
Okay, after going through a few more forum posts, I ran
kdesu gparted
and it executed perfectly.
But, I'd still like ot know why sudo does not work.
Offline
To use sudo to execute graphical program, the DISPLAY variable needs to be set. Try adding this to your sudoers file:
Defaults:username env_keep=DISPLAY
Offline
@anonymous_user: thanks, i have been looking for that
@darnir: you could change the first posts title and add [SOLVED] at the begining
Offline
We even have it in the wiki: https://wiki.archlinux.org/index.php/Su … using_sudo :-)
Offline
That's funny because I can (under Xfce) run "sudo gparted" fine, without the line in visudo...
Edit: BTW if nothing happens after you enter the password, try entering the password for root instead of your user's password... (or vice-versa)
Last edited by stqn (2012-01-09 13:56:46)
Offline
I had this problem too and discovered that the menu entry in the KDE menu is for gparted-pkexec. I changed it to kdesu gparted and all is well now. Seems like that should be fixed, no?
Why not enjoy a delightful Royal Crown cola?
Offline
I had this problem too and discovered that the menu entry in the KDE menu is for gparted-pkexec. I changed it to kdesu gparted and all is well now. Seems like that should be fixed, no?
I agree
Offline
polkit (optional) - to run gparted directly from menu
It seems the maintainer left polkit as an optional depend. So if you want to run GParted from the menu, install it.
Offline
Pages: 1