[BUG] Waybar is started twice at login (autostart.lua + ml4w-wallpaper reload)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 75/100
Hướng nghiên cứu
Đọc dotfiles/.config/hypr/conf/autostart.lua cùng với ml4w-autostart và mã ml4w-wallpaper gọi run_matugen và reload_waybar. Theo dõi cả hai luồng khởi động và kiểm tra nhật ký hoặc bài kiểm thử hiện có, nếu có. Đảm bảo Waybar khởi chạy một lần sau khi áp dụng giao diện, rồi xác nhận rằng lần đăng nhập Waybar mặc định không ghi nhật ký lần khởi động lại thứ hai và thanh không nhấp nháy.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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).
- Ngôn ngữ chính
- QML
- Star
- 5.1k
- Fork
- 386
- Merge trung bình
- 16 giờ 45 phút
- Pull request đã merge (30 ngày)
- 14
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của mylinuxforwork/dotfiles
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
mylinuxforwork/dotfiles#1829 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement solved
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
mylinuxforwork/dotfiles#1807 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
mylinuxforwork/dotfiles#1765 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[FEATURE] add keycap 1 app window over all windowsCó thể đã có người làm @mylinuxforwork đã nhận 1 ngày trước. Đang mởenhancement
mylinuxforwork/dotfiles#1902 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] Install Fails on Debian Testing & UnstableCó thể đã có người làm @mylinuxforwork đã nhận 11 ngày trước. Đang mởbug
mylinuxforwork/dotfiles#1898 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của mylinuxforwork/dotfiles
Issue tương tự
-
can't see cursor under wayfireĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Chat images never show without ImageMagick: ffprobe fallback uses an option string ffprobe 9 rejectsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
eliasstravik/herdr-projects#1011 ·
-
bug priority::low upstream
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100