[Ubuntu 11.04+] GNOME 3 context menu entry for love-unstable
Posted: Wed Mar 07, 2012 8:15 pm
(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!
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!