Mailinglist Archive: opensuse (2747 mails)
| < Previous | Next > |
Re: [opensuse] Gnome Panel Applet customization suggestions
- From: Rodrigo Moya <rodrigo@xxxxxxxxxx>
- Date: Sun, 04 Nov 2007 19:09:51 +0100
- Message-id: <1194199791.25483.52.camel@xxxxxxxxxxxxxx>
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.'if by 'custom applet' you mean a 'custom launcher', then I'd suggest you
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?
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 <rodrigo@xxxxxxxxxx>
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |