Skip to content

Commit afd6201

Browse files
committed
Login: define XDG_RUNTIME_DIR to enable sound in user session.
1 parent 69239d3 commit afd6201

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Applications/Login/UserSession.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ - (BOOL)_setUserEnvironment
103103
setenv("LC_CTYPE", "en_US.UTF-8", 1);
104104
setenv("DISPLAY", ":0", 1);
105105

106+
setenv("XDG_RUNTIME_DIR", [[NSString stringWithFormat:@"/run/user/%i", user->pw_uid] cString], 1);
106107
setenv(
107108
"PATH",
108109
[[NSString

0 commit comments

Comments
 (0)