[Ubuntu 11.04+] GNOME 3 context menu entry for love-unstable

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Lovechild
Prole
Posts: 9
Joined: Wed Mar 07, 2012 4:13 am

[Ubuntu 11.04+] GNOME 3 context menu entry for love-unstable

Post by Lovechild »

(There is an even easier way! Click me! Put that big white finger over me and push!)

OBSOLETE -- DO NOT READ; FOLLOW ABOVE LINK
This extends beyond the range of Love, but it works.

I was thinking there has to be an easier way than what I posted earlier. It was for advanced users, and people with no fear. Good news! I have found a solution that will satisfy everyone. I linked to this in my original -- and more complicated -- solution for opening .love files with love-unstable. This assumes you are using love-unstable from bartbes' love-unstable PPA.Look it up, add the PPA, update available repositories and follow what's below.

By default, you can open any .love application by double-clicking on it. But if you need to run it with love-unstable, then here's how you do it:

From a terminal, copy love
cp /usr/share/applications/love.desktop ~/.local/share/applications

Open love.desktop in your home folder
gedit ~/.local/share/applications/love.desktop

Make the following modifications:
[Desktop Entry]
Name=LÖVE unstable
MimeType=application/x-love-game;
Exec=/usr/bin/love-unstable
Comment=Games development framework in lua
Comment[es]=Entorno de desarrollo de videojuegos en lua
Type=Application
Categories=Development;Game;
Terminal=false
Icon=love-app
NoDisplay=true


Save the file as love-unstable.desktop

Then, modify mimetypes.list
gedit ~/.local/share/applications/mimeapps.list

Add this under the [Added Associations] heading:
application/x-love-game=love-unstable.desktop

Save. Done. Right-click and the new entry should now be there in the right-click menu. Yay!
Last edited by Lovechild on Thu Mar 08, 2012 7:02 am, edited 2 times in total.
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: [Ubuntu 11.04+] GNOME 3 context menu entry for love-unst

Post by josefnpat »

For gnome users that already have the ppa with love-unstable:

Open up properties on a .love file
w5WFw.png
w5WFw.png (94.92 KiB) Viewed 204 times
Select the Open With tab, and add a new app
xNl9o.png
xNl9o.png (27.86 KiB) Viewed 204 times
use a custom command, and add "love-unstable"
x8BTa.png
x8BTa.png (57.69 KiB) Viewed 204 times
Reselect love if you want love 0.7.2 as default
iOC9a.png
iOC9a.png (28.61 KiB) Viewed 204 times
Now you should have the the open-with menu available.
0lnM5.png
0lnM5.png (95.92 KiB) Viewed 204 times
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
Lovechild
Prole
Posts: 9
Joined: Wed Mar 07, 2012 4:13 am

Re: [Ubuntu 11.04+] GNOME 3 context menu entry for love-unst

Post by Lovechild »

And you're using GNOME 2, right?

If you can do this in Ubuntu 11.10 with GNOME 3, then I want to know how to enable it!
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: [Ubuntu 11.04+] GNOME 3 context menu entry for love-unst

Post by josefnpat »

Lovechild wrote:And you're using GNOME 2, right?

If you can do this in Ubuntu 11.10 with GNOME 3, then I want to know how to enable it!
I am using Ubuntu 11.04 with gnome 2.32.1
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
Lovechild
Prole
Posts: 9
Joined: Wed Mar 07, 2012 4:13 am

Re: [Ubuntu 11.04+] GNOME 3 context menu entry for love-unst

Post by Lovechild »

josefnpat wrote:
Lovechild wrote:And you're using GNOME 2, right?

If you can do this in Ubuntu 11.10 with GNOME 3, then I want to know how to enable it!
I am using Ubuntu 11.04 with gnome 2.32.1
Yeah see, GNOME 3 is totally different. You should check it out some time, you know, before you post about GNOME 2 stuff in a thread about GNOME 3.

It's why I specified GNOME 3. ^^
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest