-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to setup sandbox on Windows when game has multiple launch actions #826
Comments
Ooh, good catch! Experienced it a while ago but forgot to file an issue. There's a bad fix and good fix and I'd rather do the good fix now. Currently there's no way to block on a modal's response, so the modal's action (for the action picker) is just So the bad fix is making sure they combine (but it'll still be a "workaround"), and the good fix is making it posisble to await the outcome of a modal, just like the Electron API allows (which we used to use, but doesn't offer as much flexibility). |
Hmm, it doesn't appear to be fixed for me. Now after "Install sandbox" popup itch just does nothing silently. It's neither installing sandbox nor launching Sample Evil App. I'm not sure if it's still the same bug, because I also have some problems with itch I run from git working directory (rather than itch/kitch installed via installers from itch.io) - in particular, it refuses to install some of my apps in the same silent manner. I'll investigate a bit more and report back. Here's the console output (looks like nothing interesting):
|
Interesting, I haven't had time to test properly myself yet |
@quyse can you link me to which apps in particular? |
@fasterthanlime This one: https://quyse.itch.io/flaw |
@quyse I'm able to install&run FLAW flawlessly, will try again with sandbox setup from scratch! |
@fasterthanlime Yeah, I'm not sure if it's an itch bug at all. I uninstalled release itch (installed via official installer) and deleted AppData...\itch folder completely, because before that I was unable to install any app at all using "git" itch. I thought maybe it's some difference in persistent data format between released and unreleased versions of itch. Now when there's only "git" itch, it seems itch doesn't want to install only FLAW, other apps get installed. I was hoping you can repro that, but if not here is the full log: https://gist.github.com/quyse/3390495979c2b1872037ca2b57e4344e I'm simply launching itch and immediately clicking Install for FLAW. The only thing I can see is something about undefined installer type and Reiterating to be clear, now I have two separate problems. First is that I cannot run Sample Evil App with sandbox (but can install), and second that I cannot install FLAW with "git" itch. The latter doesn't depend on "enable sandbox" setting, and just happened to be mentioned by me here, probably must be separate bug :) |
That was just fixed in 0f47ba0, thanks a lot for catching that.
I think the install of |
@quyse does removing all |
Works for me finally, thanks!
No, just tried it. itch redownloads file.exe and then fails again with the same error. |
@fasterthanlime Ok, looks like I found a problem. My git working directory where I type "npm start" is on disk D:, but my Users/AppData folders are on disk C:. It seems that
So that's what I see trying to run file manually:
itch probably uses relative path to bin directory when it specifies magicfile in Well, not sure what's exactly happening yet, but I just tried to make another git clone for itch on disk C:, and it works from there. |
That's good research! The sad thing about all this is: file doesn't actually return anything useful and then it falls back to naked .exe... |
Hmm, it seems itch uses the same full path to magic file in both cases. No idea then why it works from disk C:. Both cloned directories are the same except for disk drive they reside at (just did clean |
@quyse that's crazy, I was able to reproduce by cloning itch on my own |
@fasterthanlime Great, at least we know that's not my imaginary problem :) |
@quyse setting the working directory when launching file fixed it! |
Ok, full disclosure for the sake of completeness :) Apparently Windows treats paths starting with a backslash, i.e. It's not properly documented (the only mention of this I've found is here https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247#fully_qualified_vs._relative_paths), but apparently works everywhere in Windows, and not specific to Still, since |
Looks like if a game has multiple launch actions specified in itch manifest, some mistake in itch's logic prevents performing first-time sandbox setup during game launch. Repro:
Tried only on Windows yet.
The text was updated successfully, but these errors were encountered: