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

Portable/usb stick mode? #113

Closed
thequver opened this issue Dec 24, 2023 · 5 comments
Closed

Portable/usb stick mode? #113

thequver opened this issue Dec 24, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request released

Comments

@thequver
Copy link

Consider adding portable/usb stick mode to ecode. Currently (on Windows) it creates a folder in C:/Users/USER/AppData/Roaming/ecode, would be good if there was an option so the program stores everything it needs in the same folder as the main exe file

@SpartanJ
Copy link
Owner

Hi! Yes, it should be pretty easy with a command line flag, but I don't want to maintain two different packages because it adds more work to the releases. So what we can do is add a command line option ecode.exe --portable and add a shortcut access for the portable version.

@thequver
Copy link
Author

Also some apps do it by checking if there is a file named portable near the exe so this is another way of doing it

@SpartanJ SpartanJ self-assigned this Dec 26, 2023
@SpartanJ SpartanJ added the enhancement New feature or request label Dec 26, 2023
@SpartanJ
Copy link
Owner

Can you give me a precise example or app example so I can see if it's worth copying that method? Thank

@thequver
Copy link
Author

This 2 i'm aware of:
OBS studio https://github.com/obsproject/obs-studio
https://obsproject.com/forum/resources/obs-and-obs-studio-portable-mode-on-windows.359/

Chainner https://github.com/chaiNNer-org/chaiNNer

@SpartanJ
Copy link
Owner

Added support for portable mode, it will be part of the next release (0.5.1), changes here.
It can be invoked the same way than obs-studio:
by command line argument with --portable or -p and by creating a file besides the ecode binary called portable_mode.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

No branches or pull requests

2 participants