as I said earlier this is just a dirty hack until it gets implimented cleanly in mojosetup itself.<br><br><div class="gmail_quote">On Dec 5, 2007 4:16 AM, Ludwig Nussel <<a href="mailto:ludwig.nussel@suse.de">ludwig.nussel@suse.de
</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Ole Jacob wrote:<br>> On Wednesday 05 December 2007 09:15, Ludwig Nussel wrote:
<br>> > Nemo Der wrote:<br>> > > if MojoSetup.info.homedir == "/root" then<br>> > > io.output("/usr/local/share/applications/spring.desktop")<br>> > > else<br>> > >
io.output(MojoSetup.info.homedir ..<br>> > > "/.local/share/applications/spring.desktop")<br>> > > end<br>> ><br>> > That's really retarded. Why use a nice scripting language if you
<br>> > don't use it for sandboxing to prevent people from doing arbitrary<br>> > stupid things in their installer? Sure it's with best intentions but<br>> > in the end such hacks hurt sooner or later. If you need to call
<br>> > arbitrary commands you can save yourself one abstraction level by<br>> > using a shell script and dialog instead of a so called "installer".<br>><br>> Do you have a better suggestion on how to do this? Implement the missing (?)
<br>> functions in mojosetup, or do some Lua stuff?<br><br></div>Yes, a mojosetup built in mechanism should take care of the desktop<br>file. You don't have to care about where and how to install the file<br>and mojosetup can automatically uninstall it then (when that feature
<br>finally gets implemented some day).<br><div class="Ih2E3d"><br>cu<br>Ludwig<br><br>--<br> (o_ Ludwig Nussel<br> //\<br> V_/_ <a href="http://www.suse.de/" target="_blank">http://www.suse.de/</a><br>SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
<br><br><br><br>---<br></div><div><div></div><div class="Wj3C7c">To unsubscribe, send a blank email to <a href="mailto:mojosetup-unsubscribe@icculus.org">mojosetup-unsubscribe@icculus.org</a><br>Mailing list archives: <a href="http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?61" target="_blank">
http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?61</a><br><br><br></div></div></blockquote></div><br>