[mojosetup] Plans for adding system menu entries

Ludwig Nussel ludwig.nussel at suse.de
Wed Dec 5 07:16:12 EST 2007


Ole Jacob wrote:
> On Wednesday 05 December 2007 09:15, Ludwig Nussel wrote:
> > Nemo Der wrote:
> > > if MojoSetup.info.homedir == "/root" then
> > >         io.output("/usr/local/share/applications/spring.desktop")
> > > else
> > >         io.output(MojoSetup.info.homedir ..
> > > "/.local/share/applications/spring.desktop")
> > > end
> >
> > That's really retarded. Why use a nice scripting language if you
> > don't use it for sandboxing to prevent people from doing arbitrary
> > stupid things in their installer? Sure it's with best intentions but
> > in the end such hacks hurt sooner or later. If you need to call
> > arbitrary commands you can save yourself one abstraction level by
> > using a shell script and dialog instead of a so called "installer".
> 
> Do you have a better suggestion on how to do this? Implement the missing (?) 
> functions in mojosetup, or do some Lua stuff?

Yes, a mojosetup built in mechanism should take care of the desktop
file. You don't have to care about where and how to install the file
and mojosetup can automatically uninstall it then (when that feature
finally gets implemented some day).

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   
 V_/_  http://www.suse.de/
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)





More information about the mojosetup mailing list