fix: Fix minor issue in admin permission handling

This commit is contained in:
Nova 2024-10-11 02:17:08 +03:30
parent 9671edb9d9
commit ad8ad70bef
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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();