how about:<br>&nbsp;  <br>if MojoSetup.info.homedir == &quot;/root&quot; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; io.output(&quot;/usr/local/share/applications/spring.desktop&quot;)<br>else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; io.output(MojoSetup.info.homedir .. &quot;/.local/share/applications/spring.desktop&quot;)
<br>end<br><br><div class="gmail_quote"><br>On Dec 4, 2007 4:22 AM, Ole Jacob &lt;<a href="mailto:ojt@gexcon.com">ojt@gexcon.com</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;">
Thanks for this! Seems usefull!<br><br>One thing: What if the user installs as root instead of normal user. Then I<br>would like to have the application menu entry end up in something<br>like &quot;/usr/local/share/applications&quot;. I know absolutely noting about lua. Is
<br>there a way to detect if installation is done as root and install<br>the .desktop file in the right place depending on this?<br><br>Regards,<br><font color="#888888">Ole Jacob<br></font><div><div></div><div class="Wj3C7c">
<br></div></div></blockquote></div><br>