From cb8b120a2b0d2525baf57ccde39fffa0d1396e68 Mon Sep 17 00:00:00 2001 From: reionwong Date: Mon, 28 Sep 2026 07:23:45 +0800 Subject: [PATCH] fix(dm): keep the greeter user from starting PipeWire and WirePlumber --- CMakeLists.txt | 6 ++++++ data/no-greeter-audio.conf | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 data/no-greeter-audio.conf diff --git a/CMakeLists.txt b/CMakeLists.txt index 415964e..0ab5435 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,6 +56,12 @@ install(FILES data/cutefish-dm-greeter.pam DESTINATION ${CMAKE_INSTALL_FULL_SYSC RENAME cutefish-dm-greeter) install(FILES data/com.cutefish.DisplayManager.conf DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/dbus-1/system.d) +foreach(unit pipewire.socket pipewire.service pipewire-pulse.socket pipewire-pulse.service + wireplumber.service filter-chain.service) + install(FILES data/no-greeter-audio.conf + DESTINATION /usr/lib/systemd/user/${unit}.d + RENAME cutefish-dm.conf) +endforeach() if(BUILD_TESTING) add_subdirectory(tests) diff --git a/data/no-greeter-audio.conf b/data/no-greeter-audio.conf new file mode 100644 index 0000000..3487765 --- /dev/null +++ b/data/no-greeter-audio.conf @@ -0,0 +1,4 @@ +[Unit] +# The login screen plays no sound. Its own WirePlumber would set the shared +# ALSA mixer to its default volume, which the user's session then adopts. +ConditionUser=!cutefish-greeter