--- data/CMakeLists.txt.orig 2025-10-13 17:56:58 UTC +++ data/CMakeLists.txt @@ -11,8 +11,10 @@ ecm_generate_dbus_service_file( DESTINATION ${KDE_INSTALL_DBUSSERVICEDIR} ) -if(DEFINED KDE_INSTALL_SYSTEMDUSERUNITDIR) - ecm_install_configured_files(INPUT kio-fuse.service.in DESTINATION ${KDE_INSTALL_SYSTEMDUSERUNITDIR}) -else() - ecm_install_configured_files(INPUT kio-fuse.service.in DESTINATION ${SYSTEMD_USER_UNIT_INSTALL_DIR}) +if(CMAKE_SYSTEM_NAME MATCHES "Linux") + if(DEFINED KDE_INSTALL_SYSTEMDUSERUNITDIR) + ecm_install_configured_files(INPUT kio-fuse.service.in DESTINATION ${KDE_INSTALL_SYSTEMDUSERUNITDIR}) + else() + ecm_install_configured_files(INPUT kio-fuse.service.in DESTINATION ${SYSTEMD_USER_UNIT_INSTALL_DIR}) + endif() endif()