![](/img/trans.png)
[英]In a linux/gnome setting, how can I react to system wide events such as log offs and shut downs, before they conclude?
在我開發的應用程序中,當計算機即將關機、鎖定或掛起時,我希望它在這種情況發生之前執行某些任務。 目前,這只需要在 Linux gnome 上工作,但一旦成功,我將不得不擴展到 macOS。 這樣的東西看起來怎么樣? 我必須聽什么、在哪里以及如何聽? ...