소스 검색

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

Donald Carr 6 년 전
부모
커밋
f5aa0aa5a6
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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