Running love files on Ubuntu

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
User avatar
iPoisonxL
Party member
Posts: 227
Joined: Wed Feb 06, 2013 3:53 am
Location: Australia
Contact:

Running love files on Ubuntu

Post by iPoisonxL »

Hi! I have a small problem running love files. I installed love and all, but when I open a love file it just opens Archive Manager. Love even changed the little icon from a box to the LÖVE logo, so I'm not sure what I'm missing.

Also, I can't use 'Open With' because Love isn't on the program list.

Code: Select all

      L
    L Ö
    Ö V
L Ö V E
Ö B E
V E
E Y
Website
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Running love files on Ubuntu

Post by T-Bone »

I've never had that problem on Ubuntu, but you can always try to run it from the terminal. Open a terminal, navigate to the folder containing the .love (or move the .love to your home forlder) and type

Code: Select all

love epicgamename.love
If that works, then at least you know Löve is installed correctly.
User avatar
iPoisonxL
Party member
Posts: 227
Joined: Wed Feb 06, 2013 3:53 am
Location: Australia
Contact:

Re: Running love files on Ubuntu

Post by iPoisonxL »

T-Bone wrote:I've never had that problem on Ubuntu, but you can always try to run it from the terminal. Open a terminal, navigate to the folder containing the .love (or move the .love to your home forlder) and type

Code: Select all

love epicgamename.love
If that works, then at least you know Löve is installed correctly.
Yeah, that works, but it's a bit of a hassle to go all the way to desktop/workspace/lua/epicgame.

How to set default program?

Code: Select all

      L
    L Ö
    Ö V
L Ö V E
Ö B E
V E
E Y
Website
User avatar
murks
Party member
Posts: 185
Joined: Tue Jun 03, 2014 4:18 pm

Re: Running love files on Ubuntu

Post by murks »

I can't tell you how ubuntu does this, but apparently ubuntu uses the file command to detect the type of file, so it sees the .love file as a zip file, and that's why it opens the archive manager. Just read up on how to do the file association stuff for your version of ubuntu.
User avatar
iPoisonxL
Party member
Posts: 227
Joined: Wed Feb 06, 2013 3:53 am
Location: Australia
Contact:

Re: Running love files on Ubuntu

Post by iPoisonxL »

murks wrote:I can't tell you how ubuntu does this, but apparently ubuntu uses the file command to detect the type of file, so it sees the .love file as a zip file, and that's why it opens the archive manager. Just read up on how to do the file association stuff for your version of ubuntu.
Ok thank you, cheers

Code: Select all

      L
    L Ö
    Ö V
L Ö V E
Ö B E
V E
E Y
Website
User avatar
CrackedP0t
Citizen
Posts: 69
Joined: Wed May 07, 2014 4:01 am
Contact:

Re: Running love files on Ubuntu

Post by CrackedP0t »

Find the Love.desktop file in /usr/share/applications, and open it in a text editor.
Edit the "command" line to read "love %f" (without the quotes)
Right click on the .love file, select properties, and navigate to the "open with" tab.
Select LOVE.
Done!
/人 ◕‿‿◕ 人\
Here, have an umlaut. Ö
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Running love files on Ubuntu

Post by bartbes »

It seems newer versions of nautilus changed their behaviour wrt desktop files and file associations, I've modified it in the repo too, so next release it should be fixed.
User avatar
iPoisonxL
Party member
Posts: 227
Joined: Wed Feb 06, 2013 3:53 am
Location: Australia
Contact:

Re: Running love files on Ubuntu

Post by iPoisonxL »

I found a way to fix it, simply went into file association, found .love, and clicked "reset".

Code: Select all

      L
    L Ö
    Ö V
L Ö V E
Ö B E
V E
E Y
Website
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Running love files on Ubuntu

Post by bartbes »

The specific problem was love not showing up in the list, it's still set as a default association, but if you ever add another association you can't select love anymore. A bit awkward, to say the least. In any case, that should be fixed in the next release.
User avatar
iPoisonxL
Party member
Posts: 227
Joined: Wed Feb 06, 2013 3:53 am
Location: Australia
Contact:

Re: Running love files on Ubuntu

Post by iPoisonxL »

bartbes wrote:The specific problem was love not showing up in the list, it's still set as a default association, but if you ever add another association you can't select love anymore. A bit awkward, to say the least. In any case, that should be fixed in the next release.
OK thank you!

Code: Select all

      L
    L Ö
    Ö V
L Ö V E
Ö B E
V E
E Y
Website
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 66 guests