reduce ecm usage

This commit is contained in:
2025-12-25 15:28:30 +08:00
parent 93daa1af0f
commit 16c90b6d25
2 changed files with 1 additions and 16 deletions

View File

@@ -11,10 +11,8 @@ find_package(ECM REQUIRED NO_MODULE)
find_package(PkgConfig REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include(KDEInstallDirs)
include(ECMConfiguredInstall)
find_package(KF6 6.6 REQUIRED COMPONENTS
WindowSystem)
find_package(KF6WindowSystem 6.6 REQUIRED)
pkg_check_modules(X11 REQUIRED IMPORTED_TARGET x11 xcb xcb-image xcb-damage xcb-composite xcb-xfixes xcb-util xcb-shape xtst xcb-xtest xcb-res xcb-ewmh)
@@ -49,5 +47,3 @@ target_link_libraries(xembed-traymanager-proxy
install(TARGETS xembed-traymanager-proxy ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES xembedsniproxy.desktop DESTINATION ${KDE_INSTALL_AUTOSTARTDIR})
ecm_install_configured_files(INPUT plasma-xembedsniproxy.service.in @ONLY DESTINATION ${KDE_INSTALL_SYSTEMDUSERUNITDIR})

View File

@@ -1,11 +0,0 @@
[Unit]
Description=Handle legacy xembed system tray icons
PartOf=graphical-session.target
After=plasma-core.target
[Service]
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/xembedsniproxy
Restart=on-failure
Type=simple
Slice=background.slice
TimeoutSec=5sec