LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Gparted needs "Root" access to execute from XFCE Menu (http://www.linuxquestions.org/questions/slackware-14/gparted-needs-root-access-to-execute-from-xfce-menu-4175430700/)

lkraemer 10-05-2012 12:00 PM

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

TobiSGD 10-05-2012 12:19 PM

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.

lkraemer 10-05-2012 03:00 PM

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

TobiSGD 10-05-2012 05:00 PM

Quote:

Originally Posted by lkraemer (Post 4798279)
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

Beelzebud 10-06-2012 03:02 AM

Quote:

Originally Posted by TobiSGD (Post 4798149)
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.

lkraemer 10-06-2012 11:55 AM

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

CjWelborn 11-20-2012 10:44 PM

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


All times are GMT -5. The time now is 12:31 PM.