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?
love.system.openURL not opening directories [0.9.2 x86]
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: love.system.openURL not opening directories [0.9.2 x86]
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.
Re: love.system.openURL not opening directories [0.9.2 x86]
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.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?
Re: love.system.openURL not opening directories [0.9.2 x86]
https://love2d.org/imgmirrur/QFaaxuH.pngS0lll0s wrote: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.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?
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.
Who is online
Users browsing this forum: No registered users and 197 guests