fix(waybar/autostart): empêcher le double démarrage via flock

Sur Pop!_OS 24.04, systemd-xdg-autostart-generator et cosmic-session
traitent tous deux ~/.config/autostart/ → deux instances waybar.
Utilise flock sur un fichier verrou /tmp pour n'en démarrer qu'une.
This commit is contained in:
Tetardtek
2026-02-23 22:14:51 +01:00
parent 2f3fc71ab7
commit 1690ec5eb4

View File

@@ -2,7 +2,7 @@
Name=Waybar Name=Waybar
Comment=violet-chaton status bar Comment=violet-chaton status bar
Type=Application Type=Application
Exec=waybar Exec=bash -c "exec 9>/tmp/waybar-start.lock; flock -n 9 || exit 0; exec waybar"
Hidden=false Hidden=false
NoDisplay=false NoDisplay=false
X-GNOME-Autostart-enabled=true X-GNOME-Autostart-enabled=true