diff --git a/fcitx5.spec b/fcitx5.spec index 7b35ffc..3e296e9 100644 --- a/fcitx5.spec +++ b/fcitx5.spec @@ -221,7 +221,7 @@ fi %preun if [ $1 -eq 0 -a -x /usr/bin/systemctl ]; then - /usr/bin/systemctl --global disable %{?*} || : + /usr/bin/systemctl --global disable %{name}.service || : fi %endif