General discussion about LÖVE, Lua, game development, puns, and unicorns.
bartbes
Sex machine
Posts: 4946 Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:
Post
by bartbes » Sun Mar 01, 2009 9:24 am
Tested on Ubuntu Intrepid Ibex.
Instructions:
Download the mime file below
Copy/Move the file to /usr/share/mime/packages/
Run (as root/with sudo): update-mime-database /usr/share/mime
Restart nautilus (kill it, restart your session, or restart your pc)
Assign love to the .love files (right click->Open with application find love, or add it manually)
Enjoy!
For the icons:
Download the icon below
Copy/Move it to /usr/share/icons/gnome/scalable/mimetypes/
Run (as root/with sudo): gtk-update-icon-cache --force /usr/share/icons/gnome
Restart nautilus (kill it, restart your session, or restart your pc)
If love files are assigned properly (as done above): Enjoy!
If this doesn't work, try and do the same, but in /usr/share/icons/<theme name>
Both steps at once:
Download both files below
Copy/Move the xml file to /usr/share/mime/packages/
Copy/Move the png to /usr/share/icons/gnome/scalable/mimetypes/
Run (as root/with sudo) no quotes: "update-mime-database /usr/share/mime; gtk-update-icon-cache --force /usr/share/icons/gnome"
Restart nautilus (kill it, restart your session, or restart your pc)
Assign love to the .love files (right click->Open with application find love, or add it manually)
Enjoy!
Attachments
gnome-mime-application-love-game.png (2.38 KiB) Viewed 5480 times
love.xml
(240 Bytes) Downloaded 236 times
Last edited by
bartbes on Sun Mar 01, 2009 3:16 pm, edited 1 time in total.
rude
Administrator
Posts: 1052 Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway
Post
by rude » Sun Mar 01, 2009 1:13 pm
And this does not result in normal .zip-files being opened with love?
bartbes
Sex machine
Posts: 4946 Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:
Post
by bartbes » Sun Mar 01, 2009 1:30 pm
No, it defines a new mime type, icons would be nice though (none included in package)
rude
Administrator
Posts: 1052 Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway
Post
by rude » Sun Mar 01, 2009 1:51 pm
Any common way to automate this in the .deb?
bartbes
Sex machine
Posts: 4946 Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:
Post
by bartbes » Sun Mar 01, 2009 1:53 pm
Include the mimetype file (and preferably add an icon) and run update-mime-database in the post-install script?
rude
Administrator
Posts: 1052 Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway
Post
by rude » Sun Mar 01, 2009 2:02 pm
Here are the icons, if you would like to add them.
The "Vista" ones contain 16x16, 24x24, 32x32, 48x48 and 256x256. The non-Vista ones contain all those except 256x256.
The game-icons should be used for the .love files. The love-icons are meant for the binary itself, but I don't know if there's any point in adding that.
Attachments
love-icons.zip
(52.33 KiB) Downloaded 197 times
Skofo
Party member
Posts: 146 Joined: Mon Dec 22, 2008 10:55 pm
Post
by Skofo » Sun Mar 01, 2009 2:54 pm
Whoa, wicked useful!
Thanks for this!
bartbes
Sex machine
Posts: 4946 Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:
Post
by bartbes » Sun Mar 01, 2009 3:08 pm
@rude found out how to change icons, updated first post.
bartbes
Sex machine
Posts: 4946 Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:
Post
by bartbes » Sun Mar 01, 2009 8:10 pm
I can create a shell script for the time being, should I?
Skofo
Party member
Posts: 146 Joined: Mon Dec 22, 2008 10:55 pm
Post
by Skofo » Mon Mar 02, 2009 2:23 am
I'd use it.
I was waiting until the next version with this built-in, but I definitely wouldn't mind just quickly downloading a bash script and running it.
Users browsing this forum: Ahrefs [Bot] and 0 guests