PDA

View Full Version : desktop launcher puzzle



kornelix
December 2nd, 2006, 08:36 AM
Here is a simple script I want to invoke from a desktop launcher:

sudo -b /path-to-executable
exitIf I invoke this script interactively, it works as desired: the executable is launched and bash exits, leaving the executable running.

I cannot find any way to make the same thing work from a desktop launcher. A window appears and disappears in milliseconds.

I have tried combinations of "application" and "application in terminal" with the above command: sudo ... and with: bash -c "sudo ..."

What is the magic formula?

Ramses de Norre
December 2nd, 2006, 03:50 PM
Try replacing sudo by gksudo and leave out the exit line.
(And check for the -b option, might be different with gksudo, man gksudo will tell)

kornelix
December 3rd, 2006, 12:29 AM
Try replacing sudo by gksudo and leave out the exit line.
(And check for the -b option, might be different with gksudo, man gksudo will tell)

Works, with no -b. Many thanks.