El vie, 19-06-2009 a las 21:49 +0200, Jordi Mallach escribió:
> On Fri, Jun 19, 2009 at 06:47:01PM +0200, Javier Martín wrote:
> > Nevertheless, even if this script is a temporary fix, it would make life
> > easier for unexperienced users while The Right Thing (TM) is done
> > regarding the additional packages. However, I've suddenly noticed: I'm
> > using gksu and zenity, but what about KDE-based setups?
> 
> We can depend on and use ssft.
> 

This is a first attempt at a script using ssft. To get a successful
port, I needed to add two functions:
    - ssft_directory_selection: works around the fact that the file
selection dialogs invoked by ssft don't allow choosing a folder. All
three dialog frontends (zenity, kdialog and dialog) offer this option.
This function should be added to ssft itself.
    - admin_do: a wrapper for graphical sudo. Based on the ssft
frontend, chooses between gksudo, kdesudo and plain sudo (I suppose a
`dialogsudo' could be emulated, but I deemed it way over my head). A
modified version of this function allowing for a custom description
might also be proposed for ssft inclusion.

I've checked it with bash and dash, and with the zenity, kdialog and
dialog frontends. Seemingly, it works.

Attachment: openttd-start.sh
Description: application/shellscript

Reply via email to