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

Check if the Data folder (portable mode) exist at launch. #510

Open
hellishvictor opened this issue Mar 31, 2024 · 0 comments
Open

Check if the Data folder (portable mode) exist at launch. #510

hellishvictor opened this issue Mar 31, 2024 · 0 comments

Comments

@hellishvictor
Copy link

Hi, I need to launch the program as portable, so I use a batch with the option --portable (and it stores all the config files on the "Data" folder on the same location where the program is, which is great), but at restart the program after of uninstall a plugin or selecting the options "Restart MD" from the taskbar icon, the batch closes and then it launch as not portable creating files on %AppData%\Macro Deck.

There should be a portable.dat file or check if the Data folder already exist on the same location where the program is at launch, and in such case, run it as portable, and if not, then it will create the %AppData%\Macro Deck. Many programs out there (like OBS, CCleaner, Moonlight, etc) uses behaviour like this and works great.

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant