[mojosetup] Plans for adding system menu entries
Timothee Besset
ttimo at idsoftware.com
Mon Dec 3 14:47:05 EST 2007
You have a typo btw:
io.write("Categories=Applicatoin;Game;StrategyGame;\n")
TTimo
Nemo Der wrote:
> I wrote a quick and dirty postinstall function to create a freedesktop
> compliant menu item for my installer:
>
> local function post()
> os.execute("mkdir -p " .. MojoSetup.info.homedir ..
> "/.local/share/applications/")
> io.output(MojoSetup.info.homedir ..
> "/.local/share/applications/spring.desktop")
> io.write("[Desktop Entry]\n")
> io.write("Name=Spring\n")
> io.write("Comment=An open source RTS game like TA\n")
> io.write("Exec=" .. MojoSetup.destination .. "/springstart.sh\n")
> io.write("Icon=" .. MojoSetup.destination .. "/spring.png\n")
> io.write("Terminal=false\n")
> io.write("Type=Application\n")
> io.write("Categories=Applicatoin;Game;StrategyGame;\n")
> end
>
> Setup.Package
> {
>
> id = "Spring",
> description = "Spring RTS",
> version = "0.75b2",
> splash = "springlogo.bmp",
> superuser = false,
> recommended_destinations =
> {
> MojoSetup.info.homedir,
> "/opt/games",
> "/usr/local/games"
> },
> postinstall=post,
>
> ..etc..
>
> Doing it this way requires changing the make.sh to compile with the
> Lua IO and OS functions though.
>
>
>
> On Nov 27, 2007 2:05 AM, Ole Jacob <ojt at gexcon.com> wrote:
>
>> Hi,
>>
>> Are there any plans for adding application menu entries in som automatic
>> fasion? I seem to remember that this was one of the shortcomings in Loki
>> Setup.
>>
>> What about uninstall and upgrade features?
>>
>> Regards,
>> Ole Jacob
>>
>> ---
>> To unsubscribe, send a blank email to mojosetup-unsubscribe at icculus.org
>> Mailing list archives: http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?61
>>
>>
>
> ---
> To unsubscribe, send a blank email to mojosetup-unsubscribe at icculus.org
> Mailing list archives: http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?61
>
>
>
More information about the mojosetup
mailing list