From 5ca74821d49d549abec4cb68af53278cdd6d832a Mon Sep 17 00:00:00 2001 From: Pierre Olivier Martel Date: Fri, 10 Apr 2026 06:24:30 -0400 Subject: [PATCH] Fix Fcitx5 icon showing up in the waybar (again!) (#5263) * Update Fcitx5 autostart handling * Restart xcompose to apply the changes --- config/autostart/org.fcitx.Fcitx5.desktop | 2 ++ install/config/all.sh | 1 - install/config/remove-fcitx5-autostart.sh | 1 - migrations/1772120972.sh | 3 --- migrations/1775691486.sh | 6 ++++++ 5 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 config/autostart/org.fcitx.Fcitx5.desktop delete mode 100644 install/config/remove-fcitx5-autostart.sh delete mode 100644 migrations/1772120972.sh create mode 100644 migrations/1775691486.sh diff --git a/config/autostart/org.fcitx.Fcitx5.desktop b/config/autostart/org.fcitx.Fcitx5.desktop new file mode 100644 index 00000000..e1e3e173 --- /dev/null +++ b/config/autostart/org.fcitx.Fcitx5.desktop @@ -0,0 +1,2 @@ +[Desktop Entry] +Hidden=true diff --git a/install/config/all.sh b/install/config/all.sh index 37554d42..e7c962be 100644 --- a/install/config/all.sh +++ b/install/config/all.sh @@ -15,7 +15,6 @@ run_logged $OMARCHY_INSTALL/config/fix-powerprofilesctl-shebang.sh run_logged $OMARCHY_INSTALL/config/docker.sh run_logged $OMARCHY_INSTALL/config/mimetypes.sh run_logged $OMARCHY_INSTALL/config/nautilus-python.sh -run_logged $OMARCHY_INSTALL/config/remove-fcitx5-autostart.sh run_logged $OMARCHY_INSTALL/config/localdb.sh run_logged $OMARCHY_INSTALL/config/walker-elephant.sh run_logged $OMARCHY_INSTALL/config/fast-shutdown.sh diff --git a/install/config/remove-fcitx5-autostart.sh b/install/config/remove-fcitx5-autostart.sh deleted file mode 100644 index 62cc1790..00000000 --- a/install/config/remove-fcitx5-autostart.sh +++ /dev/null @@ -1 +0,0 @@ -sudo rm -f /etc/xdg/autostart/org.fcitx.Fcitx5.desktop diff --git a/migrations/1772120972.sh b/migrations/1772120972.sh deleted file mode 100644 index 7ef79f37..00000000 --- a/migrations/1772120972.sh +++ /dev/null @@ -1,3 +0,0 @@ -echo "Remove Fcitx5 XDG autostart desktop entry" - -source $OMARCHY_PATH/install/config/remove-fcitx5-autostart.sh diff --git a/migrations/1775691486.sh b/migrations/1775691486.sh new file mode 100644 index 00000000..e6fdf909 --- /dev/null +++ b/migrations/1775691486.sh @@ -0,0 +1,6 @@ +echo "Copy Fcitx5 autostart desktop file to ~/.config/autostart" + +mkdir -p ~/.config/autostart/ +cp "$OMARCHY_PATH/config/autostart/org.fcitx.Fcitx5.desktop" ~/.config/autostart/ + +omarchy-restart-xcompose