Skip to content

Commit 15cc5ab

Browse files
committed
adapt to async ipc
1 parent 8ea2d11 commit 15cc5ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bridge/BridgeTransport.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
namespace 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) {

0 commit comments

Comments
 (0)