LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-26-2016, 06:09 PM   #1
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Rep: Reputation: 181Reputation: 181
gparted on -current is broken?


Hi guys,

is gparted supposed to be working? I had a look around in the changelog and was excited to see it being added in -current.

When I start it from the menu shortcut, nothing happens. From a terminal, this is the output:

Code:
/usr/sbin/gparted_polkit %f
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
Thanks for your input
 
Old 03-26-2016, 06:16 PM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Try "su -" in an xterm and then run gparted.
 
1 members found this post helpful.
Old 03-26-2016, 06:28 PM   #3
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Original Poster
Rep: Reputation: 181Reputation: 181
Ah, silly me - trying to run a partitioning tool without root rights.

"kdesu gparted" works fine, too.
 
Old 03-26-2016, 06:49 PM   #4
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
@schmatzler

you are right , is broken because the "desktop" file entry have a gparted_polkit call ..and not workin after last update.


Quote:
cat /usr/share/applications/gparted.desktop|grep Exec
Quote:
Exec=/usr/sbin/gparted_polkit %f

last polkit update break gparted.

the "temporally" you can edit the file to

Quote:
Exec=/usr/sbin/gparted %f
or simply on terminal

Quote:
gparted

Im on kde desktop , polkit-gnome probably works on xfce , but kde have another polkit package not rebuild or upgraded ...

Quote:
ls /var/log/packages|grep polkit
Quote:
polkit-0.113-x86_64-1
polkit-gnome-0.105-x86_64-1
polkit-kde-agent-1-9d74ae3_20120104git-x86_64-2
polkit-kde-kcmodules-1-001bdf7_20120111git-x86_64-2
polkit-qt-1-0.103.0-x86_64-1

Last edited by USUARIONUEVO; 03-26-2016 at 07:01 PM.
 
Old 03-26-2016, 07:33 PM   #5
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Original Poster
Rep: Reputation: 181Reputation: 181
I went a different way. What I need gparted for is a LiveDVD, generated by AlienBOB's liveslak scripts.

That DVD is based on XFCE, so there's no kdesu available. I also don't want to install gksu.

But: It works fine with bashrun2! Installed that from SBo and added this to /etc/rc.local:

Code:
sed -i '222 s/Exec=\/usr\/sbin\/gparted_polkit %f/Exec=bashrun2 su gparted/' /usr/share/applications/gparted.desktop
Now users can run gparted again from the DVD.
 
Old 03-26-2016, 08:38 PM   #6
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
I just start gparted with ktsuss...
 
Old 03-27-2016, 07:57 AM   #7
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 238Reputation: 238Reputation: 238
Quote:
Originally Posted by volkerdi View Post
Try "su -" in an xterm and then run gparted.
That works, but before an authentication dialog popped-up that seemed specific for gparted (I have gksu & ktsuss installed from SBo but they present other dialogs) and that is absent now, making the gparted-icon in the System-menu to appear as dead. It also does not produce another kind of error-message. Something seems broken what was working before the most recent polkit-updates....

from a terminal as user
"gksu /usr/sbin/gparted" lets gparted start but not with any suitable permissions.
"ktsuss /usr/sbin/gparted" does work, i.e. gparted starts with ability to modify partitions.
 
Old 03-27-2016, 10:09 AM   #8
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
After last update this are solved.
 
Old 03-27-2016, 11:48 AM   #9
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 238Reputation: 238Reputation: 238
hmmm, do you get an authentication dialog when trying to open gparted as a user (runlevel4 or in 3 after startx) from the menu? Do you have kde running /completely installed? I have not, only some libs for some games and assessories; Kcalc is what I used most from that suite.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] its unzip broken on current? USUARIONUEVO Slackware 6 03-10-2016 08:56 PM
wicd broken in current? bstamour Slackware 5 10-09-2013 08:23 PM
Slackware 14 - Current - Update won't allow gparted to execute lkraemer Slackware 11 08-21-2013 01:48 PM
Problem with SlackBuilds Gparted in -current linus72 Slackware 9 12-11-2010 08:26 PM
Gparted broken partition table nusch Linux - Software 14 07-05-2010 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration