diff --git a/debian/dde-shell.install b/debian/dde-shell.install index 62683587a..228149a31 100644 --- a/debian/dde-shell.install +++ b/debian/dde-shell.install @@ -13,6 +13,7 @@ usr/lib/*/qt6/qml/org/deepin/ds/notification/* usr/lib/*/qt6/qml/org/deepin/ds/notificationcenter/* usr/lib/systemd/*/dde-shell*.service usr/lib/systemd/*/dde-shell-plugin*.service +usr/share/applications/* usr/share/dde-dock/icons/dcc-setting/*.dci usr/share/dde-shell/*/translations usr/share/dde-shell/org.deepin.ds.dde-am*/ diff --git a/misc/org.deepin.dde-shell.desktop b/misc/org.deepin.dde-shell.desktop new file mode 100644 index 000000000..a7d9a6bca --- /dev/null +++ b/misc/org.deepin.dde-shell.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Type=Application +Name=Deepin Desktop Shell +Comment=Deepin desktop shell service +Icon=dde-shell +Exec=/bin/false +TryExec=/bin/false +DBusActivatable=true +NoDisplay=true +Terminal=false +StartupNotify=false +Categories=System; diff --git a/shell/CMakeLists.txt b/shell/CMakeLists.txt index cb8e3cdd4..5156e980b 100644 --- a/shell/CMakeLists.txt +++ b/shell/CMakeLists.txt @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. +# SPDX-FileCopyrightText: 2023 - 2026 UnionTech Software Technology Co., Ltd. # # SPDX-License-Identifier: CC0-1.0 @@ -59,6 +59,8 @@ install(FILES ${CMAKE_SOURCE_DIR}/misc/deepin-debug-config/org.deepin.dde.shell. DESTINATION ${CMAKE_INSTALL_DATADIR}/deepin-debug-config/deepin-debug-config.d) install(FILES ${CMAKE_SOURCE_DIR}/misc/deepin-log-config/org.deepin.dde.shell.json DESTINATION ${CMAKE_INSTALL_DATADIR}/deepin-log-viewer/deepin-log.conf.d) +install(FILES ${CMAKE_SOURCE_DIR}/misc/org.deepin.dde-shell.desktop + DESTINATION ${CMAKE_INSTALL_DATADIR}/applications) install(TARGETS dde-shell DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) diff --git a/shell/main.cpp b/shell/main.cpp index 94ecb508d..eebd0069c 100644 --- a/shell/main.cpp +++ b/shell/main.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2023 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -107,6 +107,7 @@ int main(int argc, char *argv[]) QQuickWindow::setTextRenderType(QQuickWindow::NativeTextRendering); a.setOrganizationName("deepin"); a.setApplicationName("org.deepin.dde-shell"); + a.setDesktopFileName(QStringLiteral("org.deepin.dde-shell")); a.setApplicationVersion(QT_STRINGIFY(DS_VERSION)); QCommandLineParser parser;