LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-05-2012, 12:00 PM   #1
lkraemer
Member
 
Registered: Aug 2008
Posts: 111

Rep: Reputation: 10
Gparted needs "Root" access to execute from XFCE Menu


I've built Gparted in Slackware 14, and I can run it as root from a Terminal.
But, it is also in the XFCE -- APPLICATIONS MENU -> SYSTEM -> Gparted
and I'd like to be able to execute it from there.

How do I edit the XFCE Menu selection for Gparted so it will execute?
I use Gparted all the time from Debian 6 with no problems.........

I've searched through all the Menu's trying to find something that will
allow me to change the permissions on the Menu items.

Thanks.

Larry

Last edited by lkraemer; 10-05-2012 at 12:01 PM.
 
Old 10-05-2012, 12:19 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,650
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
You don't have to switch the permission on the menu items, you have to change the command that it runs. Prefix it with gksu (if you have that installed) or kdesu. That way you will be asked for the root password if you choose GParted in the menu.
 
1 members found this post helpful.
Old 10-05-2012, 03:00 PM   #3
lkraemer
Member
 
Registered: Aug 2008
Posts: 111

Original Poster
Rep: Reputation: 10
TobiSGD,
OK, I understand what you are saying, but where is the command located that executes Gparted when I
Left Click on XFCE's APPLICATIONS MENU -> SYSTEM -> Gparted

I can drag the Menu selection to the Desktop and edit the Launcher to add "kdesu" to the command and
it works correctly.

But, I want to be able to Left Click on the SYSTEM -> Gparted Menu selection and have it execute.

WHOO HOOO! I finally found it. All I had to do was edit "sudo nano /usr/sbin/gparted"
adding "kdesu " to the base command string "/usr/sbin/gparted".

Thanks.

Larry

Last edited by lkraemer; 10-05-2012 at 03:20 PM.
 
Old 10-05-2012, 05:00 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,650
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Quote:
Originally Posted by lkraemer View Post
WHOO HOOO! I finally found it. All I had to do was edit "sudo nano /usr/sbin/gparted"
adding "kdesu " to the base command string "/usr/sbin/gparted".
Keep in mind that this will be overwritten if you update GParted in the future. The correct way is still to edit the menu entry, information about that can be found in the XFCE Wiki: http://wiki.xfce.org/howto/customize-menu

Last edited by TobiSGD; 10-06-2012 at 01:18 PM. Reason: fixed typo
 
Old 10-06-2012, 03:02 AM   #5
Beelzebud
Member
 
Registered: Oct 2010
Distribution: Arch & Slackware
Posts: 96

Rep: Reputation: 27
Quote:
Originally Posted by TobiSGD View Post
You don't have to switch the permission on the menu items, you have to change the command that it runs. Prefix it with gksu (if you have that installed) or kdesu. That way you will be asked for the root password if you choose GParted in the menu.
Ah what a no-brainer! I've got a few apps that require root, and I always opened them from the terminal. Thanks for the tip.
 
Old 10-06-2012, 11:55 AM   #6
lkraemer
Member
 
Registered: Aug 2008
Posts: 111

Original Poster
Rep: Reputation: 10
TobiSGD,
You're Correct. I didn't think about that. I read the information on the URL you posted and changed mime
to add kdesu to the EXEC= statement in file gparted.desktop located at /usr/share/applications

THANKS for that information.

Larry
 
Old 11-20-2012, 10:44 PM   #7
CjWelborn
LQ Newbie
 
Registered: Jun 2012
Location: Alabama
Distribution: Linux Mint, Ubuntu
Posts: 2

Rep: Reputation: Disabled
You set these options with a couple clicks in Menu Props, a free xfce/gnome 2/kde menu editor I wrote. Some features not available in kde. Run as root, and Exec as root work on all three though. Http://www.welbornproductions.net/in...ects/menuprops
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
unpredictable "delete" "move to trash" or "cut" file menu option dorianrenato Linux - General 3 11-28-2011 07:41 PM
xfce4-quicklauncher plugin not showing in the xfce panel's "add New Items" menu. bgryderclock Slackware 1 07-05-2011 01:24 AM
"failed to execute child process" "Input/output error" fl.bratu Fedora 4 12-15-2008 05:03 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
Gparted Error " No Root file System" Cushie Linux - Newbie 3 02-26-2007 05:28 AM


All times are GMT -5. The time now is 02:08 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration