[BUG] Waybar is started twice at login (autostart.lua + ml4w-wallpaper reload)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 75/100
Línea de trabajo
Lee dotfiles/.config/hypr/conf/autostart.lua junto con ml4w-autostart y el código de ml4w-wallpaper que llama a run_matugen y reload_waybar. Sigue ambas rutas de inicio y revisa los registros o las pruebas existentes, si los hay. Haz que Waybar se inicie una vez después de aplicar el tema y confirma que el inicio de sesión predeterminado de Waybar ya no registra un segundo reinicio ni muestra parpadeos en la barra.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
On every login Waybar is started twice. The first instance shows up with the previous colors and some modules not ready yet. It is then killed and a second instance is started a moment later, so the bar visibly disappears and comes back.
There are two launches:
dotfiles/.config/hypr/conf/autostart.luastarts Waybar directly:-- Start waybar hl.exec_cmd(HOME .. "/.config/waybar/launch.sh")- A few seconds later
ml4w-autostartrunsml4w-wallpaper "<cache>" --skip-wallpaper, which callsrun_matugenand thenreload_waybar. That function doeskillall waybarand runslaunch.shagain.
Looking at the history, this looks like an overlap between two changes made two days apart:
- c470e824 (Jun 23) added the Waybar launch to
autostart.lua. At that pointml4w-wallpaperwas skipped entirely when the awww cache existed, so the bar had to be started from somewhere else. - a4a1bebd (Jun 25) changed
ml4w-autostartto always runml4w-wallpaper ... --skip-wallpaperfor theming. Since then Waybar is also (re)started byreload_waybar, so the launch inautostart.luais redundant. - 0d676f10 (Jul 14) changed
reload_waybarfrompkill -SIGUSR2 waybartokillall waybar, which makes the restart visible as a flicker.
The issue is present from 2.14.0 up to 2.17.
Steps to reproduce
- Use Waybar as the status bar (
~/.config/ml4w/settings/statusbar=waybar) with the default autostart. - Make sure the awww cache exists (any normal login after the first one).
- Log in to Hyprland.
- Waybar appears, disappears for a moment and then appears again. The autostart log in
~/.local/state/ml4w-os-hyprland/showsWaybar is currently running.followed byWaybar restarted.
Expected behavior
Waybar should start only once at login, already themed by matugen.
A possible fix is to drop the launch from autostart.lua and let ml4w-wallpaper start Waybar after matugen. Another option is to keep it there and have reload_waybar skip the kill and relaunch when it is called from ml4w-autostart.
Distribution
Arch Linux
Additional context
ML4W dotfiles 2.17 (stable), Hyprland with Lua config, wallpaper-app = quickshell. The installed files are identical to the ones in the repo (no local changes).
- Lenguaje dominante
- QML
- Estrellas
- 5.1k
- Forks
- 386
- Merge medio
- 16 h 45 min
- PR fusionados (30 d)
- 14
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de mylinuxforwork/dotfiles
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
mylinuxforwork/dotfiles#1829 ·
Los mantenedores suelen responder en 1 día
-
enhancement solved
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
mylinuxforwork/dotfiles#1807 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
mylinuxforwork/dotfiles#1765 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[FEATURE] add keycap 1 app window over all windowsPosiblemente ocupada @mylinuxforwork la tomó hace 1 día. Abiertoenhancement
mylinuxforwork/dotfiles#1902 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[BUG] Install Fails on Debian Testing & UnstablePosiblemente ocupada @mylinuxforwork la tomó hace 11 días. Abiertobug
mylinuxforwork/dotfiles#1898 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de mylinuxforwork/dotfiles
Issues similares
-
can't see cursor under wayfireAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Chat images never show without ImageMagick: ffprobe fallback uses an option string ffprobe 9 rejectsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
eliasstravik/herdr-projects#1011 ·
-
bug priority::low upstream
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100