You are not logged in.

#1 2012-01-07 18:01:57

darnir
Member
Registered: 2011-12-21
Posts: 47

[SOLVED] gParted wont start

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

#2 2012-01-07 18:04:27

darnir
Member
Registered: 2011-12-21
Posts: 47

Re: [SOLVED] gParted wont start

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

#3 2012-01-07 18:31:06

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [SOLVED] gParted wont start

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

#4 2012-01-07 18:35:28

zidarsk8
Member
Registered: 2011-12-06
Posts: 97

Re: [SOLVED] gParted wont start

@anonymous_user: thanks, i have been looking for that smile

@darnir: you could change the first posts title and add [SOLVED] at the begining smile

Offline

#5 2012-01-07 22:13:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] gParted wont start

Offline

#6 2012-01-09 13:55:11

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [SOLVED] gParted wont start

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

#7 2012-02-01 19:26:29

claudecat
Member
Registered: 2012-02-01
Posts: 21

Re: [SOLVED] gParted wont start

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

#8 2012-03-04 07:50:32

clickit
Member
From: Athens, Hellas
Registered: 2007-07-18
Posts: 93

Re: [SOLVED] gParted wont start

claudecat wrote:

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

#9 2012-03-04 16:55:06

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [SOLVED] gParted wont start

gparted wrote:

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

Board footer

Powered by FluxBB