From 4b3f8a734d9d1b3c12bc98e9e9c9a2787cad434c Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Fri, 10 May 2019 22:19:52 +0000 Subject: [PATCH] Install desktop file for kdeconnectd --- daemon/CMakeLists.txt | 3 +- daemon/kdeconnect.desktop | 91 ------------------- daemon/kdeconnectd.cpp | 1 + ...> org.kde.kdeconnect.daemon.desktop.cmake} | 3 +- 4 files changed, 5 insertions(+), 93 deletions(-) delete mode 100644 daemon/kdeconnect.desktop rename daemon/{kdeconnectd.desktop.cmake => org.kde.kdeconnect.daemon.desktop.cmake} (97%) diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt index ab0696bf0..5928b132b 100644 --- a/daemon/CMakeLists.txt +++ b/daemon/CMakeLists.txt @@ -11,7 +11,8 @@ ecm_mark_nongui_executable(kdeconnectd) configure_file(kdeconnectd.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/kdeconnectd.desktop) configure_file(org.kde.kdeconnect.service.in ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.service) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kdeconnectd.desktop DESTINATION ${AUTOSTART_INSTALL_DIR}) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.daemon.desktop DESTINATION ${AUTOSTART_INSTALL_DIR}) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.daemon.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.service DESTINATION ${DBUS_SERVICES_INSTALL_DIR}) install(TARGETS kdeconnectd DESTINATION ${LIBEXEC_INSTALL_DIR}) diff --git a/daemon/kdeconnect.desktop b/daemon/kdeconnect.desktop deleted file mode 100644 index 738c049be..000000000 --- a/daemon/kdeconnect.desktop +++ /dev/null @@ -1,91 +0,0 @@ -[Desktop Entry] -Type=Service -Icon=preferences-system-power-management -X-KDE-ServiceTypes=KDEDModule -X-KDE-Library=kdeconnect -X-DBUS-ServiceName=org.kde.kdeconnect -X-KDE-DBus-ModuleName=kdeconnect -X-KDE-Kded-autoload=true -X-KDE-Kded-load-on-demand=false -X-KDE-Kded-phase=1 - -Name=KDE Connect -Name[ar]=كدي المتّصل -Name[bg]=KDE Connect -Name[bs]=Konekcija KDE -Name[ca]=KDE Connect -Name[ca@valencia]=KDE Connect -Name[cs]=KDE Connect -Name[da]=KDE Connect -Name[de]=KDE-Connect -Name[el]=KDE Connect -Name[en_GB]=KDE Connect -Name[es]=KDE Connect -Name[et]=KDE Connect -Name[eu]=KDE Connect -Name[fi]=KDE Connect -Name[fr]=KDE Connect -Name[gl]=KDE Connect -Name[he]=KDE Connect -Name[hu]=KDE csatlakozás -Name[id]=KDE Connect -Name[it]=KDE Connect -Name[ko]=KDE Connect -Name[nl]=KDE Connect -Name[nn]=KDE Connect -Name[pl]=KDE Connect -Name[pt]=KDE Connect -Name[pt_BR]=KDE Connect -Name[ro]=KDE Connect -Name[ru]=KDE Connect -Name[sk]=KDE Connect -Name[sr]=КДЕ‑конекција -Name[sr@ijekavian]=КДЕ‑конекција -Name[sr@ijekavianlatin]=KDE‑konekcija -Name[sr@latin]=KDE‑konekcija -Name[sv]=KDE-anslut -Name[tr]=KDE Connect -Name[uk]=З’єднання KDE -Name[x-test]=xxKDE Connectxx -Name[zh_CN]=KDE Connect -Name[zh_TW]=KDE 連線 - -Comment=Connect KDE with your smartphone -Comment[ar]=أوصل كدي بهاتفك الذّكيّ -Comment[bg]=Свържете КДЕ с вашия смартфон -Comment[bs]=Konektujte se na KDE sa Vašim mobitelom -Comment[ca]=Connecta el KDE amb el vostre telèfon intel·ligent -Comment[ca@valencia]=Connecta el KDE amb el vostre telèfon intel·ligent -Comment[cs]=Propojte KDE s vaším telefonem -Comment[da]=Forbind KDE med din smartphone -Comment[de]=KDE mit Ihren Smartphone verbinden -Comment[el]=Σύνδεση του KDE με το έξυπνο τηλέφωνό σας -Comment[en_GB]=Connect KDE with your smartphone -Comment[es]=Conecte KDE con su teléfono móvil -Comment[et]=KDE ühendamine oma nutitelefoniga -Comment[eu]=Konektatu KDE zure mugikorrarekin -Comment[fi]=Yhdistä KDE älypuhelimeesi -Comment[fr]=Connectez KDE avec votre smartphone -Comment[gl]=Conectar KDE co seu teléfono móbil. -Comment[he]=חבר את KDE לפלאפון החכם שלך -Comment[hu]=A KDE csatlakoztatása az okostelefonnal -Comment[id]=Koneksikan KDE dengan smartphone-mu -Comment[it]=Connette KDE al tuo smartphone -Comment[ko]=내 스마트폰과 KDE 연결 -Comment[nl]=KDE met uw smartphone verbinden -Comment[nn]=Kopla KDE til smarttelefonen din -Comment[pl]=Podłącz swój smartfon do KDE -Comment[pt]=Ligue o KDE ao seu telemóvel -Comment[pt_BR]=Conecte o KDE ao seu celular -Comment[ru]=Подключайте смартфон к KDE -Comment[sk]=Prepojiť KDE s vašim smartfónom -Comment[sr]=Повежите КДЕ са својим паметним телефоном -Comment[sr@ijekavian]=Повежите КДЕ са својим паметним телефоном -Comment[sr@ijekavianlatin]=Povežite KDE sa svojim pametnim telefonom -Comment[sr@latin]=Povežite KDE sa svojim pametnim telefonom -Comment[sv]=Anslut KDE till din smartphone -Comment[tr]=KDE'yi akıllı telefonunuz ile bağlayın -Comment[uk]=З’єднання KDE з вашим смартфоном -Comment[x-test]=xxConnect KDE with your smartphonexx -Comment[zh_CN]=用您的智能手机连接到 KDE -Comment[zh_TW]=將您的智慧型手機與KDE連線 diff --git a/daemon/kdeconnectd.cpp b/daemon/kdeconnectd.cpp index dfcb3837e..5d622b66e 100644 --- a/daemon/kdeconnectd.cpp +++ b/daemon/kdeconnectd.cpp @@ -104,6 +104,7 @@ int main(int argc, char* argv[]) ); KAboutData::setApplicationData(aboutData); app.setQuitOnLastWindowClosed(false); + app.setDesktopFileName(QStringLiteral("org.kde.kdeconnect.daemon")); KDBusService dbusService(KDBusService::Unique); diff --git a/daemon/kdeconnectd.desktop.cmake b/daemon/org.kde.kdeconnect.daemon.desktop.cmake similarity index 97% rename from daemon/kdeconnectd.desktop.cmake rename to daemon/org.kde.kdeconnect.daemon.desktop.cmake index 885f75348..7f1b72311 100644 --- a/daemon/kdeconnectd.desktop.cmake +++ b/daemon/org.kde.kdeconnect.daemon.desktop.cmake @@ -6,8 +6,9 @@ X-KDE-autostart-phase=1 X-GNOME-Autostart-enabled=true OnlyShowIn=KDE;GNOME;Unity;XFCE; NoDisplay=true +Icon=kdeconnect -Name=KDEConnect daemon +Name=KDE Connect Name[ar]=عفريت KDEConnect Name[bg]=Услуга KDE Connect Name[ca]=Dimoni del KDEConnect