how about:<br> <br>if MojoSetup.info.homedir == "/root" then<br> io.output("/usr/local/share/applications/spring.desktop")<br>else<br> io.output(MojoSetup.info.homedir .. "/.local/share/applications/spring.desktop")
<br>end<br><br><div class="gmail_quote"><br>On Dec 4, 2007 4:22 AM, Ole Jacob <<a href="mailto:ojt@gexcon.com">ojt@gexcon.com</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;">
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 "/usr/local/share/applications". 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>