Skip to content
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

App refuses to launch from AppData #354

Open
Tails32 opened this issue Jan 29, 2023 · 0 comments
Open

App refuses to launch from AppData #354

Tails32 opened this issue Jan 29, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@Tails32
Copy link

Tails32 commented Jan 29, 2023

I just started playing again and noticed that the app refuses to launch if the path contains "appdata" in order to prevent launching it directly from a zip archive. To determine this behavior the following line is called:

.ContainsAny(new[] { "temp", "appdata" });

This test is not specific enough and causes a problem for me as I put the app in the path %localappdata%\Programs\HunterPie-v2 just as the installer of many other applications do when it is only supposed to be installed for a single user.
see also here: https://superuser.com/questions/1482669/what-exactly-is-c-users-myuser-appdata-local-programs

I would recommend to check against %temp% instead if possible as most archiving software unpacks there and it should also be more accurate than testing for specific words in a path. If there was a command line parameter for advanced users to skip the check would also be a welcomed alternative.

Thank you for reading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🔖Backlog
Development

No branches or pull requests

2 participants