From 4628054547c32c6c099bd3f13e2bdb2ceae19836 Mon Sep 17 00:00:00 2001 From: JunjieBai Date: Mon, 8 Aug 2022 10:37:49 +0800 Subject: [PATCH] Make the appdb dbus autostart.Install the desktop file of app-data-service. --- .../conf/com.ukui.search.appdb.service | 3 +++ .../ukui-search-app-data-service.pro | 13 +++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 ukui-search-app-data-service/conf/com.ukui.search.appdb.service diff --git a/ukui-search-app-data-service/conf/com.ukui.search.appdb.service b/ukui-search-app-data-service/conf/com.ukui.search.appdb.service new file mode 100644 index 0000000..2b533d6 --- /dev/null +++ b/ukui-search-app-data-service/conf/com.ukui.search.appdb.service @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=com.ukui.search.appdb.service +Exec=/usr/bin/ukui-search-app-data-service diff --git a/ukui-search-app-data-service/ukui-search-app-data-service.pro b/ukui-search-app-data-service/ukui-search-app-data-service.pro index 82c6fe2..b3e7261 100644 --- a/ukui-search-app-data-service/ukui-search-app-data-service.pro +++ b/ukui-search-app-data-service/ukui-search-app-data-service.pro @@ -29,20 +29,25 @@ SOURCES += \ main.cpp \ convert-winid-to-desktop.cpp \ app-db-manager.cpp \ - pending-app-info-queue.cpp \ + pending-app-info-queue.cpp \ signal-transformer.cpp \ ukui-search-app-data-service.cpp \ HEADERS += \ convert-winid-to-desktop.h \ app-db-manager.h \ - pending-app-info-queue.h \ - pending-app-info.h \ + pending-app-info-queue.h \ + pending-app-info.h \ signal-transformer.h \ ukui-search-app-data-service.h \ +inst1.files += conf/com.ukui.search.appdb.service +inst1.path = /usr/share/dbus-1/services/ + target.path = /usr/bin -INSTALLS += target +INSTALLS += \ + target \ + inst1 desktop.path = /etc/xdg/autostart desktop.files += ../data/ukui-search-app-data-service.desktop