[GH-ISSUE #99] Path settings for portable or sandbox operation #91

Closed
opened 2026-02-27 15:48:14 +03:00 by kerem · 3 comments
Owner

Originally created by @just2cents on GitHub (Feb 5, 2024).
Original GitHub issue: https://github.com/Rafiuth/Soggfy/issues/99

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?

Originally created by @just2cents on GitHub (Feb 5, 2024). Original GitHub issue: https://github.com/Rafiuth/Soggfy/issues/99 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?
kerem closed this issue 2026-02-27 15:48:14 +03:00
Author
Owner

@Rafiuth commented on GitHub (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.

<!-- gh-comment-id:1935233679 --> @Rafiuth commented on GitHub (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.
Author
Owner

@SmilerRyan commented on GitHub (Feb 9, 2024):

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.

<!-- gh-comment-id:1935811094 --> @SmilerRyan commented on GitHub (Feb 9, 2024): 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.
Author
Owner

@Rafiuth commented on GitHub (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.

<!-- gh-comment-id:1947651275 --> @Rafiuth commented on GitHub (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.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Soggfy#91
No description provided.