Skip to content

fix(doctor): correctly detect running Noctalia Shell - #135

Merged
VictorGSchneider merged 1 commit into
mainfrom
claude/doctor-noctalia-detect
Jun 7, 2026
Merged

fix(doctor): correctly detect running Noctalia Shell#135
VictorGSchneider merged 1 commit into
mainfrom
claude/doctor-noctalia-detect

Conversation

@VictorGSchneider

@VictorGSchneider VictorGSchneider commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Summary

Bug do PR #127. O check do Noctalia que adicionei no stoa-doctor nunca matchava o processo real, então toda hora aparecia [WARN] Noctalia Shell is not running — notifications won't show mesmo com o Noctalia em pé.

O stoa-bar sobe o shell como quickshell -c noctalia-shell. Meus padrões pgrep originais procuravam por:

  • pgrep -fx 'noctalia-shell' — exige que o argv[0] seja literalmente noctalia-shell. Não bate, o argv[0] é quickshell.
  • pgrep -f 'qs -c noctalia' — usaria qs, mas o stoa-bar chama quickshell. Também não bate.
  • pgrep -fx 'noctalia' — só matchava se o argv[0] fosse noctalia. Idem, não bate.

Substitui tudo por um único pgrep -f 'noctalia-shell' (substring no cmdline inteiro), que pega todas as três formas de lançamento:

quickshell -c noctalia-shell
qs -c noctalia-shell
noctalia-shell           # wrapper do AUR

Test plan

  • Com o Noctalia rodando: stoa-doctor → linha [OK] Noctalia Shell is running (notifications).
  • killall quickshell; stoa-doctor → linha [WARN] Noctalia Shell is not running ….

Generated by Claude Code

PR #127 introduced a Noctalia check that never matched the real
process: stoa-bar launches `quickshell -c noctalia-shell`, but the
pgrep patterns looked for argv[0] == 'noctalia-shell' / 'noctalia'
or cmdline containing 'qs -c noctalia' (note: 'qs', not 'quickshell').
Result: doctor printed "Noctalia Shell is not running — notifications
won't show" on every boot even though it was up.

Collapse to a single `pgrep -f 'noctalia-shell'` — substring match
over the cmdline catches all three launch shapes:
  quickshell -c noctalia-shell
  qs -c noctalia-shell
  noctalia-shell (AUR wrapper)
@VictorGSchneider VictorGSchneider self-assigned this Jun 7, 2026
@VictorGSchneider
VictorGSchneider merged commit 0f9f445 into main Jun 7, 2026
1 check passed
@VictorGSchneider
VictorGSchneider deleted the claude/doctor-noctalia-detect branch June 7, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants