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 &lt;<a href="mailto:ludwig.nussel@suse.de">ludwig.nussel@suse.de
</a>&gt; 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>&gt; On Wednesday 05 December 2007 09:15, Ludwig Nussel wrote:
<br>&gt; &gt; Nemo Der wrote:<br>&gt; &gt; &gt; if MojoSetup.info.homedir == &quot;/root&quot; then<br>&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; io.output(&quot;/usr/local/share/applications/spring.desktop&quot;)<br>&gt; &gt; &gt; else<br>&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; 
io.output(MojoSetup.info.homedir ..<br>&gt; &gt; &gt; &quot;/.local/share/applications/spring.desktop&quot;)<br>&gt; &gt; &gt; end<br>&gt; &gt;<br>&gt; &gt; That&#39;s really retarded. Why use a nice scripting language if you
<br>&gt; &gt; don&#39;t use it for sandboxing to prevent people from doing arbitrary<br>&gt; &gt; stupid things in their installer? Sure it&#39;s with best intentions but<br>&gt; &gt; in the end such hacks hurt sooner or later. If you need to call
<br>&gt; &gt; arbitrary commands you can save yourself one abstraction level by<br>&gt; &gt; using a shell script and dialog instead of a so called &quot;installer&quot;.<br>&gt;<br>&gt; Do you have a better suggestion on how to do this? Implement the missing (?)
<br>&gt; 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&#39;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>&nbsp;(o_ &nbsp; Ludwig Nussel<br>&nbsp;//\<br>&nbsp;V_/_ &nbsp;<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>