Aylur / ags

A customizable and extensible shell
GNU General Public License v3.0
2.1k stars 109 forks source link

ags does not exit subprocesses upon quitting #444

Open keifufu opened 3 months ago

keifufu commented 3 months ago

Given the following variable:

const track = Variable("", {
  listen: "wnpcli metadata -f '{{artist}} - {{title}}' -F",
});

when running ags --quit wnpcli remains running.

I know i can use track.stopListening() to exit the process but I could not find a way to hook/listen to --quit.

Aylur commented 3 months ago

subprocesses are definitely not left unhandled by glib are you sure the wnpcli process you is a child process of ags?

keifufu commented 3 months ago

This happens with playerctl or and process that keeps open and prints to stdout too