Commit 4b889f3b authored by Dimitris Kardarakos's avatar Dimitris Kardarakos

Make D-Bus service of calindac work on flatpak build

parent 9d7d88f9
Pipeline #6112 passed with stage
in 11 minutes and 3 seconds
......@@ -13,7 +13,7 @@ set(calindac_SRCS
notificationhandler.cpp
)
qt5_add_dbus_adaptor(calindac_SRCS org.kde.phone.calindac.xml calalarmclient.h CalAlarmClient)
qt5_add_dbus_adaptor(calindac_SRCS org.kde.calindac.xml calalarmclient.h CalAlarmClient)
add_executable(calindac ${calindac_SRCS} ${RESOURCES})
......@@ -31,13 +31,13 @@ install(TARGETS
)
install(FILES
org.kde.phone.calindac.desktop
org.kde.calindac.desktop
DESTINATION ${KDE_INSTALL_AUTOSTARTDIR}
)
install(FILES
org.kde.phone.calindac.xml
org.kde.calindac.xml
DESTINATION ${DBUS_INTERFACES_INSTALL_DIR}
)
......
......@@ -36,7 +36,7 @@ class NotificationHandler;
class CalAlarmClient : public QObject
{
Q_OBJECT
Q_CLASSINFO( "D-Bus Interface", "org.kde.phone.calindac" )
Q_CLASSINFO( "D-Bus Interface", "org.kde.calindac" )
public:
explicit CalAlarmClient(QObject* parent = nullptr);
......
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<interface name="org.kde.phone.calindac">
<interface name="org.kde.calindac">
<method name="quit">
</method>
<method name="forceAlarmCheck">
......
......@@ -13,7 +13,8 @@
"--socket=wayland",
"--device=dri",
"--filesystem=home",
"--talk-name=org.freedesktop.Notifications"
"--talk-name=org.freedesktop.Notifications",
"--own-name=org.kde.calindac"
],
"separate-locales": false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment