File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ Standard: Cpp11
41
41
IndentWidth : 4
42
42
TabWidth : 4
43
43
UseTab : Never
44
+ LineEnding : LF
44
45
BreakBeforeBraces : Attach
45
46
SpacesInParentheses : false
46
47
SpacesInAngles : false
Original file line number Diff line number Diff line change @@ -223,6 +223,10 @@ class StandardPathPrivate {
223
223
dir = stringutils::joinPath (*home, defaultPath);
224
224
} else {
225
225
if (env && strcmp (env, " XDG_RUNTIME_DIR" ) == 0 ) {
226
+ #ifdef _WIN32
227
+ dir = stringutils::joinPath (
228
+ defaultPath, stringutils::concat (" fcitx-runtime" ));
229
+ #else
226
230
dir = stringutils::joinPath (
227
231
defaultPath,
228
232
stringutils::concat (" fcitx-runtime-" , geteuid ()));
@@ -231,19 +235,22 @@ class StandardPathPrivate {
231
235
return {};
232
236
}
233
237
}
238
+ #endif
234
239
} else {
235
240
dir = defaultPath;
236
241
}
237
242
}
238
243
}
239
244
245
+ #ifndef _WIN32
240
246
if (!dir.empty () && env && strcmp (env, " XDG_RUNTIME_DIR" ) == 0 ) {
241
247
struct stat buf;
242
248
if (stat (dir.c_str (), &buf) != 0 || buf.st_uid != geteuid () ||
243
249
(buf.st_mode & 0777 ) != S_IRWXU) {
244
250
return {};
245
251
}
246
252
}
253
+ #endif
247
254
return dir;
248
255
}
249
256
You can’t perform that action at this time.
0 commit comments