Remove lock file for now
This commit is contained in:
parent
e9ccbc6c43
commit
567135d0ec
@ -3,7 +3,6 @@
|
|||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QCommandLineParser>
|
#include <QCommandLineParser>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QLockFile>
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QScreen>
|
#include <QScreen>
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
@ -83,11 +82,6 @@ int main(int argc, char *argv[]) {
|
|||||||
a.setOrganizationName("ArsenArsen");
|
a.setOrganizationName("ArsenArsen");
|
||||||
a.setApplicationVersion("4.1");
|
a.setApplicationVersion("4.1");
|
||||||
|
|
||||||
QLockFile lockFile(QDir::temp().absoluteFilePath("com.arsenarsen.kshare.lock"));
|
|
||||||
if(!lockFile.tryLock(100))
|
|
||||||
return 1;
|
|
||||||
else lockFile.lock();
|
|
||||||
|
|
||||||
QString locale = QLocale::system().name();
|
QString locale = QLocale::system().name();
|
||||||
if (locale != "en_US") loadTranslation(locale);
|
if (locale != "en_US") loadTranslation(locale);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user