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

Path settings for portable or sandbox operation #99

Closed
just2cents opened this issue Feb 5, 2024 · 3 comments
Closed

Path settings for portable or sandbox operation #99

just2cents opened this issue Feb 5, 2024 · 3 comments

Comments

@just2cents
Copy link

in release 2.5.0, config.json (and log.txt) were in the same directory as injector.exe. This way, I could run a semi-portable installation by copying just the Spotify prefs and user credentials to %appdata% and run Spotify from any directory, e.g. a shared directory in a Windows sandbox.

Release 2.7.1 seems to read/write config.json only from %localappdata%\Soggfy so I have to deal also with this configuration file.

Is there an way to have at least the Soggfy config.json in a user definable directory?

@Rafiuth
Copy link
Owner

Rafiuth commented Feb 9, 2024

Nope, this behavior is hardcoded as of now.

I take you're using the injector rather than copying the dlls to the spotify folder? If so I think having it search for config.json in the soggfy folder before localappdata could work, but I'm open to better ideas.

@SmilerRyan
Copy link

For me I like the simple idea of checking the current directory for a config. For the injector and dll method, if the config doesen't exist in the current directory it should use appdata.

@Rafiuth
Copy link
Owner

Rafiuth commented Feb 16, 2024

I've implemented a heuristic in the latest release that will pick the directory containing SpotifyOggDumper.dll if config.json already exists there or if %localappdata%/Soggfy doesn't exist and the DLL was loaded by the injector.

@Rafiuth Rafiuth closed this as completed Feb 16, 2024
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

3 participants