love.system.openURL not opening directories [0.9.2 x86]

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
TurtleP
Party member
Posts: 147
Joined: Thu Mar 22, 2012 9:20 pm
Contact:

love.system.openURL not opening directories [0.9.2 x86]

Post by TurtleP »

Hi all,

Recently, I replaced os.execute in my error handler custom code to use love.system.openURL. It's supposed to be able to get to the directory of the error log and allow a user to send it to me for debugging purposes. However, I can't seem to open the directory. I do have "file://" as the first part then love.filesystem.getSaveDirectory() concatenated to that. When executed, it locks up Love and won't open the directory. I have tried the example on the wiki, and that also doesn't work.

I also do have 961 log files https://love2d.org/imgmirrur/2JfZVjQ.png and the error handler writes the file before you even click the "button" to open the path. The funny thing is, it WILL open an actual file (such as reading the error log by opening it in Sublime or Notepad). Any ideas on what's wrong?
bobbyjones
Party member
Posts: 730
Joined: Sat Apr 26, 2014 7:46 pm

Re: love.system.openURL not opening directories [0.9.2 x86]

Post by bobbyjones »

Can your game use one log file? Deleting old data? If I see 900 logs on my pc I would be a little annoyed especially if I wasn't a programmer or any good with PCs lol.
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: love.system.openURL not opening directories [0.9.2 x86]

Post by s-ol »

TurtleP wrote:Hi all,

Recently, I replaced os.execute in my error handler custom code to use love.system.openURL. It's supposed to be able to get to the directory of the error log and allow a user to send it to me for debugging purposes. However, I can't seem to open the directory. I do have "file://" as the first part then love.filesystem.getSaveDirectory() concatenated to that. When executed, it locks up Love and won't open the directory. I have tried the example on the wiki, and that also doesn't work.

I also do have 961 log files https://love2d.org/imgmirrur/2JfZVjQ.png and the error handler writes the file before you even click the "button" to open the path. The funny thing is, it WILL open an actual file (such as reading the error log by opening it in Sublime or Notepad). Any ideas on what's wrong?
Does your error handler handle events? If it doesn't, LÖVE locking up is expected. Error handlers need to implement their own event loop, similar to love.run.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
User avatar
TurtleP
Party member
Posts: 147
Joined: Thu Mar 22, 2012 9:20 pm
Contact:

Re: love.system.openURL not opening directories [0.9.2 x86]

Post by TurtleP »

S0lll0s wrote:
TurtleP wrote:Hi all,

Recently, I replaced os.execute in my error handler custom code to use love.system.openURL. It's supposed to be able to get to the directory of the error log and allow a user to send it to me for debugging purposes. However, I can't seem to open the directory. I do have "file://" as the first part then love.filesystem.getSaveDirectory() concatenated to that. When executed, it locks up Love and won't open the directory. I have tried the example on the wiki, and that also doesn't work.

I also do have 961 log files https://love2d.org/imgmirrur/2JfZVjQ.png and the error handler writes the file before you even click the "button" to open the path. The funny thing is, it WILL open an actual file (such as reading the error log by opening it in Sublime or Notepad). Any ideas on what's wrong?
Does your error handler handle events? If it doesn't, LÖVE locking up is expected. Error handlers need to implement their own event loop, similar to love.run.
https://love2d.org/imgmirrur/QFaaxuH.png

This is what it handles. Not sure if I'm missing anything :|

openURL opens a .txt log just fine though when you click on the button to open it, however.
Post Reply

Who is online

Users browsing this forum: No registered users and 197 guests