erkyrath / lectrote

The IF interpreter in an Electron shell
Other
248 stars 28 forks source link

[Windows] Can't open two Lectrote instances #131

Closed tobiasvl closed 2 years ago

tobiasvl commented 3 years ago

If Lectrote is running and I try to launch another instance of it, I just get the following error message:

image

At first I thought it was because Lectrote was trying to load the same game file as I had loaded in the first instance (but it was locked or something), but it happens even if the first instance is on the splash screen with no game file loaded.

erkyrath commented 3 years ago

The app is set up to redirect new launches to the original app. (That is, the first-launched app will just open a new window.) This is an error which occurs during that process.

I've checked in a change that should prevent this error. (The argument list now ignores any argument that starts with a dash.)