aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LuminaSingleApplication.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-01-31 15:40:09 -0500
committerKen Moore <ken@ixsystems.com>2018-01-31 15:40:09 -0500
commit5a287a1132e787ded443c5fe954d7834447d705a (patch)
treead9afd9d7a144efd32c518ceaa46e1449dc56102 /src-qt5/core/libLumina/LuminaSingleApplication.cpp
parentGet a lot more cache system setup for OSInterface backend. (diff)
downloadlumina-5a287a1132e787ded443c5fe954d7834447d705a.tar.gz
lumina-5a287a1132e787ded443c5fe954d7834447d705a.tar.bz2
lumina-5a287a1132e787ded443c5fe954d7834447d705a.zip
Another large batch of work on Lumina 2.
1. Bypass a Qt bug in multi-session "DISPLAY" number detection 2. Start getting the system tray all setup. Not quite there yet (still some QML issues) 3. Convert all the Menu's to QtControls2 (actually works on multiple screens)
Diffstat (limited to 'src-qt5/core/libLumina/LuminaSingleApplication.cpp')
-rw-r--r--src-qt5/core/libLumina/LuminaSingleApplication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LuminaSingleApplication.cpp b/src-qt5/core/libLumina/LuminaSingleApplication.cpp
index 6107aff8..927815a2 100644
--- a/src-qt5/core/libLumina/LuminaSingleApplication.cpp
+++ b/src-qt5/core/libLumina/LuminaSingleApplication.cpp
@@ -22,7 +22,7 @@ LSingleApplication::LSingleApplication(int &argc, char **argv, QString appname)
QString username = QString::number(getuid());
//For locking the process use the official process name - not the user input (no masking)
appname = this->applicationName();
- cfile = cfile.arg( username, appname, QString::number(QX11Info::appScreen()) );
+ cfile = cfile.arg( username, appname, QString(getenv("DISPLAY")).replace(":","") );
lockfile = new QLockFile(cfile+"-lock");
lockfile->setStaleLockTime(0); //long-lived processes
for(int i=1; i<argc; i++){
bgstack15