summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/main.cpp b/app/main.cpp
index a8c32d7..8ad7b7f 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -90,8 +90,11 @@ int main(int argc, char *argv[])
#if defined(HAVE_DBUS)
DbusService dbus_service;
context->setContextProperty("dbus", &dbus_service);
+#endif
engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml")));
+
+#if defined(HAVE_DBUS)
#if defined(HAVE_LIGHTMEDIASCANNER)
if (!dbus_service.enableLMS())
qWarning() << "Cannot run enableLMS";