On Wed, 2007-10-31 at 19:04 -0500, Bryen wrote:
> I've got a custom applet on my panel that is actually 'gnomesu gedit.'
> It works as expected, prompting me for a password before going into
> gedit.
> 
> I'd like to take it one step further and have it also prompt me for an
> optional path so I can open gedit right into an existing file on my
> system.  
> 
> How would I go about this?
> 
if by 'custom applet' you mean a 'custom launcher', then I'd suggest you
write a simple script. Using zenity, for instance, you can prompt the
user for any information you want in nice looking GTK dialogs. For
instance:

#!/bin/sh
patch_file=$(zenity --file-selection)
gnomesu gedit $patch
-- 
Rodrigo Moya <[EMAIL PROTECTED]>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to