[SOLVED] Gparted needs "Root" access to execute from XFCE Menu
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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".
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
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.