aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-12-05 08:00:27 -0500
committerKen Moore <ken@ixsystems.com>2017-12-05 08:00:27 -0500
commite277e0d62ed039783f1e6dec1a921e7f0abaaa0b (patch)
treeb916eb67dcfea4f61d8096dcca2d1f4da925476b /src-qt5/core/libLumina
parentOops - fix a typo in the ExternalProcess change. (diff)
downloadlumina-e277e0d62ed039783f1e6dec1a921e7f0abaaa0b.tar.gz
lumina-e277e0d62ed039783f1e6dec1a921e7f0abaaa0b.tar.bz2
lumina-e277e0d62ed039783f1e6dec1a921e7f0abaaa0b.zip
Fix up the number->string conversion of UID in single application instance
Diffstat (limited to 'src-qt5/core/libLumina')
-rw-r--r--src-qt5/core/libLumina/LuminaSingleApplication.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/LuminaSingleApplication.cpp b/src-qt5/core/libLumina/LuminaSingleApplication.cpp
index 5d276805..f328be36 100644
--- a/src-qt5/core/libLumina/LuminaSingleApplication.cpp
+++ b/src-qt5/core/libLumina/LuminaSingleApplication.cpp
@@ -11,7 +11,7 @@
#include <QDebug>
#include <QX11Info>
-#include <unistd.h> //for getlogin()
+#include <unistd.h> //for getuid()
LSingleApplication::LSingleApplication(int &argc, char **argv, QString appname) : QApplication(argc, argv){
//Load the proper translation systems
@@ -19,7 +19,7 @@ LSingleApplication::LSingleApplication(int &argc, char **argv, QString appname)
if(appname!="lumina-desktop"){ cTrans = LUtils::LoadTranslation(this, appname); }//save the translator for later
//Initialize a couple convenience internal variables
cfile = QDir::tempPath()+"/.LSingleApp-%1-%2-%3";
- QString username = QString(getuid());
+ QString username = QString::fromNumber(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()) );
bgstack15