Running a .love file in Ubuntu 11.10

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
karlexceed
Prole
Posts: 3
Joined: Thu Mar 15, 2012 8:41 pm

Running a .love file in Ubuntu 11.10

Post by karlexceed »

I have been using love on windows for a while, and well, I love love. Trouble is, I also love ubuntu.

I just installed 0.7.2 using synaptic. The main executable runs fine - integration into unity is fine...

My trouble is, when I double click on a .love file, I get the same window as if I were to run the main love executable alone. So, the spinning love logo...

What's the issue here? It's the same also if I try to do this from the terminal, with or without a sudo.

In this specific case, I'm trying to run In Your Face City Trains, or iyfct.love. Nothing fancy or silly.

Help?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Running a .love file in Ubuntu 11.10

Post by bartbes »

It seems you need to edit /usr/share/applications/love.desktop, specifically the Exec line.

Code: Select all

Exec=/usr/bin/love
should be

Code: Select all

Exec=/usr/bin/love %U
Apparently, some desktops don't do this by default (and this may very well be according to the specifications), and this should be fixed for the next release.
karlexceed
Prole
Posts: 3
Joined: Thu Mar 15, 2012 8:41 pm

Re: Running a .love file in Ubuntu 11.10

Post by karlexceed »

You're correct in that the Exec line was missing the %U, but this did not solve the problem.

I have changed that line, restarted my computer, and verified that the change stuck. But still, from the desktop or command line, I still only see the basic spinning LOVE logo.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Running a .love file in Ubuntu 11.10

Post by Robin »

Could you give us more information about what you have and what you do? Some screenshots for example?

I don't think anyone of us can find the solution with the information we have now.
Help us help you: attach a .love.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Running a .love file in Ubuntu 11.10

Post by Nixola »

Did you try to run it from the terminal? (command 'love path/of/file.love')
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Running a .love file in Ubuntu 11.10

Post by bartbes »

I know older versions (amongst which most probably 0.7.2) can be affected by a folder named 'love' in the working directory. Maybe the launcher runs it from a path that has a folder like that?
karlexceed
Prole
Posts: 3
Joined: Thu Mar 15, 2012 8:41 pm

Re: Running a .love file in Ubuntu 11.10

Post by karlexceed »

My desktop:
Image

When I double click an a .love file:
Image

When I run from terminal:
Image

When I run from terminal with full path:
Image

The Exec line of /usr/share/applications/LOVE:
Image

As I said, Ubuntu 11.10, LOVE 0.7.2 installed via Synaptic.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 2 guests