Menu commands to open applications as root - how to?

Patrick Wiseman pwiseman at mindspring.com
Thu Nov 30 14:30:29 CET 2006


On Thu, 30 Nov 2006 at 3:17pm, Terry wrote:

:I am trying to work out how to launch an application as root from a menu 
:shortcut.
:
:I've tried using a script with a command line beginning with sudo but 
:that doesn't work.

I've done this to launch aptitude as root from a menu item:

xterm -T aptitude -e "su -c aptitude"

It prompts me for the password and then runs aptitude.  Of course, it's an 
app which runs in a terminal anyway, so that might not be quite what 
you're looking for.

Patrick



More information about the Xfce mailing list