[GH-ISSUE #35] Allow Injector to search current directory for spotify. #33

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

Originally created by @SmilerRyan on GitHub (Jun 10, 2022).
Original GitHub issue: https://github.com/Rafiuth/Soggfy/issues/35

it would be quite nice if the injector could also search the current directory for a copy of Spotify to launch+Inject into.
Knowing that Spotify likes to force-update their software to %AppData%, that could also save some update issues.
Regarding settings (%AppData%\Soggfy and %LocalAppData%\Spotify), I believe they're fine to stay there.

This option would be great as it would allow users with a already-setup folder to simply copy + run.
The spotify folder would be as it is in AppData, so it would launch Soggfy/spotify/Spotify.exe.

I've just tried building the injector myself with the relative path, and it does work as expected.
Regarding adding both paths (.\spotify and %AppData%\Spotify), I wasn't sure how, sorry.

image

Originally created by @SmilerRyan on GitHub (Jun 10, 2022). Original GitHub issue: https://github.com/Rafiuth/Soggfy/issues/35 it would be quite nice if the injector could also search the current directory for a copy of Spotify to launch+Inject into. Knowing that Spotify likes to force-update their software to ``%AppData%``, that could also save some update issues. Regarding settings (``%AppData%\Soggfy`` and ``%LocalAppData%\Spotify``), I believe they're fine to stay there. This option would be great as it would allow users with a already-setup folder to simply copy + run. The ``spotify`` folder would be as it is in AppData, so it would launch ``Soggfy/spotify/Spotify.exe``. I've just tried building the injector myself with the relative path, and it does work as expected. Regarding adding both paths (``.\spotify`` and ``%AppData%\Spotify``), I wasn't sure how, sorry. ![image](https://user-images.githubusercontent.com/14893385/173086546-24858eb5-6fbe-481e-8279-763d1633ace0.png)
kerem closed this issue 2026-02-27 15:48:00 +03:00
Author
Owner

@Rafiuth commented on GitHub (Jun 11, 2022):

I didn't know you could disable Spotify updates with a local copy like that. It would be interesting to have soggfy automatically install the latest supported version locally instead of using the version in AppData (it would effectively eliminate the need to patch hooks every couple updates).

It was intended for the injector to pickup Spotify.exe if it was on the same directory, but the code is wrong:

github.com/Rafiuth/Soggfy@729348dac5/Injector/Injector.cpp (L141-L144)

It doesn't work because exePath is empty when the if executes.

I'll certainly look into this soon.

<!-- gh-comment-id:1152848090 --> @Rafiuth commented on GitHub (Jun 11, 2022): I didn't know you could disable Spotify updates with a local copy like that. It would be interesting to have soggfy automatically install the latest supported version locally instead of using the version in AppData (it would effectively eliminate the need to patch hooks every couple updates). It was intended for the injector to pickup Spotify.exe if it was on the same directory, but the code is wrong: https://github.com/Rafiuth/Soggfy/blob/729348dac59fa98180678300ac46da6b903ef0e4/Injector/Injector.cpp#L141-L144 It doesn't work because `exePath` is empty when the if executes. I'll certainly look into this soon.
Author
Owner

@Rafiuth commented on GitHub (Jul 21, 2022):

Implemented in https://github.com/Rafiuth/Soggfy/releases/tag/v2.3.0

<!-- gh-comment-id:1191004490 --> @Rafiuth commented on GitHub (Jul 21, 2022): Implemented in https://github.com/Rafiuth/Soggfy/releases/tag/v2.3.0
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#33
No description provided.