Re: Command in wharf to get "su"?

Oystein Viggen (
Fri, 05 Jul 2002 10:35:22 +0200

* [ZekeVarg] 

> Is there any possybility to have a comand in wharf that first brings up
> a box where you can type in the root password before the program?
> I have "rp3" in my warf but can't use it unless I have root privilegies.
> Regards Zeke

Couldn't you hack around it with an xterm?  Something like:

*Wharf xterm some.xpm Exec "-" xterm -e su -c "bash -c rp3start &" &

Where rp3start is a script that sets up stuff like 

export XAUTHORITY=/home/erik/.Xauthority # and 
export DISPLAY=:0.0 # or whatever the correct values are, and then start

That is, if rp3 is an X application.  (I have no idea what it actually
is.)  This is not a beautiful solution, and mostly untested, but with
some debugging, you should be able to get it working.

When in doubt: Think again.
The AfterStep Window Manager for X User's Mailing List