mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2026-01-04 19:49:02 +08:00
fix: Fix minor issue in admin permission handling
This commit is contained in:
parent
9671edb9d9
commit
ad8ad70bef
@ -397,7 +397,7 @@ namespace NekoGui {
|
||||
auto fn = QApplication::applicationDirPath() + "/nekobox_core";
|
||||
auto fi = QFileInfo(fn);
|
||||
if (fi.isSymLink()) return fi.symLinkTarget();
|
||||
return "'"+fn+"'";
|
||||
return fn;
|
||||
}
|
||||
|
||||
short isAdminCache = -1;
|
||||
|
||||
@ -61,10 +61,6 @@ int main(int argc, char* argv[]) {
|
||||
Windows_SetCrashHandler();
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
QApplication::addLibraryPath(QApplication::applicationDirPath() + "/usr/plugins");
|
||||
#endif
|
||||
|
||||
QApplication::setAttribute(Qt::AA_DontUseNativeDialogs);
|
||||
QApplication::setQuitOnLastWindowClosed(false);
|
||||
auto preQApp = new QApplication(argc, argv);
|
||||
@ -116,6 +112,10 @@ int main(int argc, char* argv[]) {
|
||||
delete preQApp;
|
||||
QApplication a(argc, argv);
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
QApplication::addLibraryPath(QApplication::applicationDirPath() + "/usr/plugins");
|
||||
#endif
|
||||
|
||||
// dispatchers
|
||||
DS_cores = new QThread;
|
||||
DS_cores->start();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user