1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-27 05:25:19 -04:00

core: improve how DMS handles multiple-sessions under the same user

This commit is contained in:
bbedward
2026-06-26 10:09:00 -04:00
parent 0bc89429bc
commit 03d86f78f4
5 changed files with 168 additions and 17 deletions
+7
View File
@@ -101,6 +101,13 @@ func getServerSocketPath() string {
runtimeDir = os.TempDir()
}
if parentPID, ok := sessionParentPID(os.Getenv("WAYLAND_DISPLAY")); ok {
sessionSock := filepath.Join(runtimeDir, fmt.Sprintf("danklinux-%d.sock", parentPID))
if _, err := os.Stat(sessionSock); err == nil {
return sessionSock
}
}
entries, err := os.ReadDir(runtimeDir)
if err != nil {
return filepath.Join(runtimeDir, "danklinux.sock")