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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user