Bug: Die Poll-Loop bricht nach 0.2s ab, weil > die ACTION_FILE sofort als leere Datei erstellt. [ -f ] trifft sofort zu → grep cancel findet nichts → break → mpv läuft unbeaufsichtigt weiter.
Fix: [ -f ] → [ -s ] (non-empty check). Die Datei wird erst befüllt, wenn der User auf "Abbrechen" klickt.
Der Fix war ursprünglich auf feat/talk-package gepusht, aber PR #18 wurde vorher gemerged.
Bug: Die Poll-Loop bricht nach 0.2s ab, weil `>` die ACTION_FILE sofort als leere Datei erstellt. `[ -f ]` trifft sofort zu → `grep cancel` findet nichts → `break` → mpv läuft unbeaufsichtigt weiter.
Fix: `[ -f ]` → `[ -s ]` (non-empty check). Die Datei wird erst befüllt, wenn der User auf "Abbrechen" klickt.
Der Fix war ursprünglich auf feat/talk-package gepusht, aber PR #18 wurde vorher gemerged.
The shell '>' redirect creates ACTION_FILE immediately as an empty file.
The poll loop checked [ -f ] (exists) instead of [ -s ] (non-empty),
so it matched on the first 0.2s iteration, found no 'cancel' string,
and broke out of the loop — leaving mpv running with no listener.
[ -s ] only returns true once notify-send writes 'cancel' to the file
(i.e. when the user actually clicks the Abbrechen action).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bug: Die Poll-Loop bricht nach 0.2s ab, weil
>die ACTION_FILE sofort als leere Datei erstellt.[ -f ]trifft sofort zu →grep cancelfindet nichts →break→ mpv läuft unbeaufsichtigt weiter.Fix:
[ -f ]→[ -s ](non-empty check). Die Datei wird erst befüllt, wenn der User auf "Abbrechen" klickt.Der Fix war ursprünglich auf feat/talk-package gepusht, aber PR #18 wurde vorher gemerged.