From aabc3792fe70cd58353bcc02ca57f1d7daadd156 Mon Sep 17 00:00:00 2001 From: winnerym Date: Thu, 13 Apr 2023 17:55:03 +0800 Subject: [PATCH] fix(windowicon): fix wayland env can't show windowicon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description: 修复wayland环境下无法显示标题栏图标 Log: I643GT 【提权】授权窗口无图标 --- debian/ukui-polkit.install | 1 + polkit-agent/CMakeLists.txt | 2 ++ polkit-agent/data/polkit-ukui-authentication-agent-1.desktop.in | 1 + 3 files changed, 4 insertions(+) diff --git a/debian/ukui-polkit.install b/debian/ukui-polkit.install index 0f930a8..e6f5054 100644 --- a/debian/ukui-polkit.install +++ b/debian/ukui-polkit.install @@ -1,3 +1,4 @@ /etc/xdg/* +/usr/share/applications/* /usr/lib/* /usr/share/ukui-biometric/i18n_qm/polkit/*.qm diff --git a/polkit-agent/CMakeLists.txt b/polkit-agent/CMakeLists.txt index bdfcbf4..a44cd23 100644 --- a/polkit-agent/CMakeLists.txt +++ b/polkit-agent/CMakeLists.txt @@ -72,3 +72,5 @@ add_dependencies(polkit-ukui-authentication-agent-1 polkit_i18n) install(FILES ${qm_files} DESTINATION ${UKUI_BIOMETRIC_DIR}/i18n_qm/polkit) install(FILES ${PROJECT_BINARY_DIR}/data/polkit-ukui-authentication-agent-1.desktop DESTINATION /etc/xdg/autostart) +install(FILES ${PROJECT_BINARY_DIR}/data/polkit-ukui-authentication-agent-1.desktop + DESTINATION /usr/share/applications) diff --git a/polkit-agent/data/polkit-ukui-authentication-agent-1.desktop.in b/polkit-agent/data/polkit-ukui-authentication-agent-1.desktop.in index c48db74..9c6af37 100644 --- a/polkit-agent/data/polkit-ukui-authentication-agent-1.desktop.in +++ b/polkit-agent/data/polkit-ukui-authentication-agent-1.desktop.in @@ -87,3 +87,4 @@ X-DBUS-StartupType=Unique X-MATE-Autostart-Phase=Initialization X-MATE-StartupNotify=false X-MATE-AutoRestart=true +X-KDE-Wayland-Interfaces=org_kde_plasma_window_management,org_kde_kwin_keystate