Page 1 of 2

[Linux/Ubuntu] .love mime type AKA Double-click=Run

Posted: Sun Mar 01, 2009 9:24 am
by bartbes
Tested on Ubuntu Intrepid Ibex.

Instructions:
  1. Download the mime file below
  2. Copy/Move the file to /usr/share/mime/packages/
  3. Run (as root/with sudo): update-mime-database /usr/share/mime
  4. Restart nautilus (kill it, restart your session, or restart your pc)
  5. Assign love to the .love files (right click->Open with application find love, or add it manually)
  6. Enjoy!
For the icons:
  1. Download the icon below
  2. Copy/Move it to /usr/share/icons/gnome/scalable/mimetypes/
  3. Run (as root/with sudo): gtk-update-icon-cache --force /usr/share/icons/gnome
  4. Restart nautilus (kill it, restart your session, or restart your pc)
  5. 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:
  1. Download both files below
  2. Copy/Move the xml file to /usr/share/mime/packages/
  3. Copy/Move the png to /usr/share/icons/gnome/scalable/mimetypes/
  4. Run (as root/with sudo) no quotes: "update-mime-database /usr/share/mime; gtk-update-icon-cache --force /usr/share/icons/gnome"
  5. Restart nautilus (kill it, restart your session, or restart your pc)
  6. Assign love to the .love files (right click->Open with application find love, or add it manually)
  7. Enjoy!

Re: [Linux/Ubuntu] .love mime type AKA Double-click=Run

Posted: Sun Mar 01, 2009 1:13 pm
by rude
And this does not result in normal .zip-files being opened with love?

Re: [Linux/Ubuntu] .love mime type AKA Double-click=Run

Posted: Sun Mar 01, 2009 1:30 pm
by bartbes
No, it defines a new mime type, icons would be nice though (none included in package)

Re: [Linux/Ubuntu] .love mime type AKA Double-click=Run

Posted: Sun Mar 01, 2009 1:51 pm
by rude
Any common way to automate this in the .deb?

Re: [Linux/Ubuntu] .love mime type AKA Double-click=Run

Posted: Sun Mar 01, 2009 1:53 pm
by bartbes
Include the mimetype file (and preferably add an icon) and run update-mime-database in the post-install script?

Re: [Linux/Ubuntu] .love mime type AKA Double-click=Run

Posted: Sun Mar 01, 2009 2:02 pm
by rude
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.

Re: [Linux/Ubuntu] .love mime type AKA Double-click=Run

Posted: Sun Mar 01, 2009 2:54 pm
by Skofo
Whoa, wicked useful! :ultraglee: Thanks for this!

Re: [Linux/Ubuntu] .love mime type AKA Double-click=Run

Posted: Sun Mar 01, 2009 3:08 pm
by bartbes
@rude found out how to change icons, updated first post.

Re: [Linux/Ubuntu] .love mime type AKA Double-click=Run

Posted: Sun Mar 01, 2009 8:10 pm
by bartbes
I can create a shell script for the time being, should I?

Re: [Linux/Ubuntu] .love mime type AKA Double-click=Run

Posted: Mon Mar 02, 2009 2:23 am
by Skofo
I'd use it. :oops: 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.