aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LuminaSingleApplication.cpp
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2018-01-02 20:53:45 +0000
committerWeblate <noreply@weblate.org>2018-01-02 20:53:45 +0000
commit42e4f35c9a2ea2689b62ef8c5461b14a2b820e4f (patch)
treea92f81f73b37b7de76cc5238f1ec393ae5a18ecd /src-qt5/core/libLumina/LuminaSingleApplication.cpp
parentTranslated using Weblate (Dutch) (diff)
parentUpdated project files for plugin system (diff)
downloadlumina-42e4f35c9a2ea2689b62ef8c5461b14a2b820e4f.tar.gz
lumina-42e4f35c9a2ea2689b62ef8c5461b14a2b820e4f.tar.bz2
lumina-42e4f35c9a2ea2689b62ef8c5461b14a2b820e4f.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core/libLumina/LuminaSingleApplication.cpp')
-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..6107aff8 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::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()) );
bgstack15