diff options
author | Ken Moore <ken@pcbsd.org> | 2015-01-02 07:56:52 -0500 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-01-02 07:56:52 -0500 |
commit | a34c589d0a8733ca0869384b83515631774dd4f4 (patch) | |
tree | eed78607771938c0b8b072d15ef9f8bf9cca6132 /libLumina/LuminaSingleApplication.cpp | |
parent | Large update of XLib -> XCB usage (diff) | |
download | lumina-a34c589d0a8733ca0869384b83515631774dd4f4.tar.gz lumina-a34c589d0a8733ca0869384b83515631774dd4f4.tar.bz2 lumina-a34c589d0a8733ca0869384b83515631774dd4f4.zip |
Make sure that the system encoding is loaded with QTextCodec before doing any command-line argument parsing.
Diffstat (limited to 'libLumina/LuminaSingleApplication.cpp')
-rw-r--r-- | libLumina/LuminaSingleApplication.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libLumina/LuminaSingleApplication.cpp b/libLumina/LuminaSingleApplication.cpp index 32883036..2b3689d8 100644 --- a/libLumina/LuminaSingleApplication.cpp +++ b/libLumina/LuminaSingleApplication.cpp @@ -12,11 +12,14 @@ #include <unistd.h> //for getlogin() -LSingleApplication::LSingleApplication(int &argc, char **argv) : QApplication(argc, argv){ +LSingleApplication::LSingleApplication(int &argc, char **argv, QString appname) : QApplication(argc, argv){ + //Load the proper translation systems + LUtils::LoadTranslation(this, appname); //Initialize a couple convenience internal variables cfile = QDir::tempPath()+"/.LSingleApp-%1-%2"; QString username = QString(getlogin()); - QString appname = this->applicationName(); + //For locking the process use the official process name - not the user input (no masking) + appname = this->applicationName(); //Obscure the user/app in the filename (TO DO) //qDebug() << username << appname; //bool junk; |