Desktop menu items!
Ryan C. Gordon
icculus at icculus.org
Wed Feb 13 06:37:20 EST 2008
MojoSetup can now install (and uninstall) desktop menu items
(specifically, it can put entries on gnome-panel's Applications menu,
and whatever else xdg-utils supports). This support will eventually
extend to the Windows "Start" bar, etc, but for now, it's just a Unix thing.
To use, you just make sure you install an icon with the rest of the game
and add a Setup.DesktopMenuItem section to your config file.
Read the new docs on it here:
http://svn.icculus.org/mojosetup/trunk/docs.txt?r1=481&r2=486&p1=trunk/docs.txt&p2=trunk/docs.txt
And the specific duke3d changes required for this...
http://svn.icculus.org/mojosetup/trunk/examples/duke3d/scripts/config.lua?r1=481&r2=486&p1=trunk/examples/duke3d/scripts/config.lua&p2=trunk/examples/duke3d/scripts/config.lua
There's more to do: you can't define file extensions that should be
mapped to your application (just mimetypes...but we don't let you map
extensions to mimetypes yet...), you can't install new submenus,
xdg-desktop-menu needs to be obfuscated, etc, but this is everything you
would need for most games you'd want to ship on Linux.
Questions and bugs: ask here.
--ryan.
More information about the mojosetup
mailing list