LinuxQuestions.org
Help answer threads with 0 replies.
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, 11:00 AM   #1
lkraemer
Member
 
Registered: Aug 2008
Posts: 113

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 11:01 AM.
 
Old 10-05-2012, 11:19 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 02:00 PM   #3
lkraemer
Member
 
Registered: Aug 2008
Posts: 113

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 02:20 PM.
 
Old 10-05-2012, 04:00 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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 12:18 PM. Reason: fixed typo
 
Old 10-06-2012, 02:02 AM   #5
Beelzebud
Member
 
Registered: Oct 2010
Distribution: Arch & Slackware
Posts: 96

Rep: Reputation: 29
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, 10:55 AM   #6
lkraemer
Member
 
Registered: Aug 2008
Posts: 113

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

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

All times are GMT -5. The time now is 02:31 AM.

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