Browse Source

Only reach for qml under /usr/share when app is installed under /usr

Donald Carr 6 years ago
parent
commit
f5aa0aa5a6
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/main.cpp

+ 1 - 2
src/main.cpp

@@ -110,8 +110,7 @@ void ArtView::populateScreen(QScreen *screen)
 #ifdef COMPILED_RESOURCES
     qmlPath = "qrc:/qml";
 #else
-    qmlPath = QCoreApplication::applicationDirPath() % "/qml";
-    if (!QDir(qmlPath).exists()) {
+    if (QCoreApplication::applicationDirPath().startsWith("/usr")) {
         qmlPath = "/usr/share/" % qApp->applicationName() % "/qml";
     }
 #endif