aboutsummaryrefslogtreecommitdiff
path: root/src/ui/version.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/version.h')
-rw-r--r--src/ui/version.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/version.h b/src/ui/version.h
index 6eaa365d2..a2933b31a 100644
--- a/src/ui/version.h
+++ b/src/ui/version.h
@@ -10,6 +10,5 @@
#endif
#define LISTEN_PORT_BASE 33000
-#define UDS_PATH strcat(strdup("/tmp/qmmp.sock."), cuserid(0))
-
+#define UDS_PATH QString("/tmp/qmmp.sock.%1").arg(getuid()).toAscii().constData()
#endif