[BUG] Waybar is started twice at login (autostart.lua + ml4w-wallpaper reload)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 75/100
調査の方向性
dotfiles/.config/hypr/conf/autostart.luaをml4w-autostartと、run_matugenおよびreload_waybarを呼び出すml4w-wallpaperのコードとあわせて読みます。両方の起動経路を追い、既存のログやテストがあれば確認します。テーマ設定後にWaybarが一度だけ起動するようにし、Waybarのデフォルトのログイン時に2回目の再起動が記録されず、バーもちらつかないことを確認します。
索引モデルが issue の本文から書いたものです。
説明
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).
- 主要言語
- QML
- スター
- 5.1k
- フォーク
- 386
- 平均マージ
- 16時間 45分
- マージ済み PR(30日)
- 14
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mylinuxforwork/dotfiles のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
mylinuxforwork/dotfiles#1829 ·
メンテナーはふだん 1 日以内に返信
-
enhancement solved
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
mylinuxforwork/dotfiles#1807 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
mylinuxforwork/dotfiles#1765 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[FEATURE] add keycap 1 app window over all windows対応中かも @mylinuxforwork が 1 日前に担当しました。 オープンenhancement
mylinuxforwork/dotfiles#1902 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] Install Fails on Debian Testing & Unstable対応中かも @mylinuxforwork が 11 日前に担当しました。 オープンbug
mylinuxforwork/dotfiles#1898 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
mylinuxforwork/dotfiles の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
Chat images never show without ImageMagick: ffprobe fallback uses an option string ffprobe 9 rejectsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
eliasstravik/herdr-projects#1011 ·
-
bug priority::low upstream
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100