File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3737namespace fs = std::filesystem;
3838
3939#define WINDOWS_PIPE_NAME " \\\\ .\\ pipe\\ SlimeVRDriver"
40- #define UNIX_XDG_DATA_DIR_DEFAULT " .local/share/"
41- #define UNIX_SLIMEVR_DIR " slimevr"
40+ #define UNIX_XDG_DATA_HOME_DEFAULT " .local/share/"
41+ #define UNIX_SLIMEVR_DIR " dev. slimevr.SlimeVR "
4242#define UNIX_TMP_DIR " /tmp"
4343#define UNIX_SOCKET_NAME " SlimeVRDriver"
4444
@@ -126,14 +126,14 @@ class BridgeTransport {
126126 paths.push_back ((xdg_runtime / UNIX_SOCKET_NAME).string ());
127127 }
128128
129- if (const char * ptr = std::getenv (" XDG_DATA_DIR " )) {
129+ if (const char * ptr = std::getenv (" XDG_DATA_HOME " )) {
130130 const fs::path xdg_data = ptr;
131131 paths.push_back ((xdg_data / UNIX_SLIMEVR_DIR / UNIX_SOCKET_NAME).string ());
132132 }
133133
134134 if (const char * ptr = std::getenv (" HOME" )) {
135135 const fs::path home = ptr;
136- paths.push_back ((home / UNIX_XDG_DATA_DIR_DEFAULT / UNIX_SLIMEVR_DIR / UNIX_SOCKET_NAME).string ());
136+ paths.push_back ((home / UNIX_XDG_DATA_HOME_DEFAULT / UNIX_SLIMEVR_DIR / UNIX_SOCKET_NAME).string ());
137137 }
138138
139139 for (auto path : paths) {
You can’t perform that action at this time.
0 commit comments