Re: Auto shutdown
Lorenzo Sutton <[email protected]>
| Newsgroups | gmane.comp.audio.rosegarden.user |
|---|---|
| Message-ID | <[email protected]> |
On 02/09/2022 11:43, Will Godfrey wrote: > On Tue, 26 Jul 2022 23:18:12 -0400 > Ted Felix <ted-Ll1PANez7xxWk0Htik3J/[email protected]> wrote: > >> The standard way is to kill the process. This doesn't actually kill >> the process. It sends a SIGTERM (15) which politely asks the process to >> close. >> >> I have no idea how well rosegarden handles SIGTERM. But you can try >> it and open a bug report if you don't like the results. >> >> Ted. >> >> On 7/25/22 4:00 PM, Will Godfrey wrote: >>> Is there any way to externally tell Rosegarden to close files and cleanly shut >>> down? >>> > Took a while to get round to this - sorry. > > pidof rosegarden > followed by > kill nnnn > seems to give a clean shutdown, even of a running instance. So all I need to do > now is write a small program to combine those into a single command - might be > able to do that in python. > In bash you should be able to just do: kill $(pidof rosegarden) Hope this helps, Lorenzo