Install qml file to datadir
authorBastian Germann <bastiangermann@fishpost.de>
Sun, 23 Aug 2020 22:42:04 +0000 (00:42 +0200)
committerRoberto C. Sánchez <roberto@debian.org>
Sat, 14 Nov 2020 13:36:18 +0000 (13:36 +0000)
Gbp-Pq: Name Install-qml-file-to-datadir.patch

cmake/BTApplication.cmake
src/frontend/display/modelview/btquickwidget.cpp

index 9c5eaa69598c4ef682a9a4db730a369e6d3e18f2..4f3174b7b1ff8d87bafe2c73b9f4050c163221fa 100644 (file)
@@ -181,7 +181,7 @@ IF(APPLE)
         DESTINATION "${BT_BINDIR}/BibleTime.app/Contents/MacOS")
 ELSE()
     INSTALL(FILES "src/frontend/display/modelview/DisplayView.qml"
-        DESTINATION "${BT_BINDIR}/")
+        DESTINATION "${BT_DATADIR}/bibletime/")
 ENDIF()
 
 FILE(GLOB INSTALL_TMPL_LIST
index 5fe3b7e5f50fb7732b20c2f5223b9c284e4af9c0..850d2578b48a6e278844a507ccc52c407d0f7c0c 100644 (file)
@@ -36,7 +36,7 @@ BtQuickWidget::BtQuickWidget(BtQmlScrollView* parent)
     setAcceptDrops(true);
 
     namespace DU = util::directory;
-    QString qmlFile = QCoreApplication::applicationDirPath() + "/" + "DisplayView.qml";
+    QString qmlFile = "/usr/share/bibletime/DisplayView.qml";
     setSource(QUrl::fromLocalFile(qmlFile));
     setupScrollTimer();
 }