domsson / succade

Run, feed and style your Lemonbar with ease
Creative Commons Zero v1.0 Universal
55 stars 3 forks source link

Detect X Server shutdown or document how to end succade #14

Open domsson opened 5 years ago

domsson commented 5 years ago

Currently, without taking proper precautions, succade might keep on running even if the X Server is being shut down. We should research if there is a way to detect when X (or alternatively succade's parent process) is gone. If that's not reliably possible, we should document this somehow (for example, add an example that shows how to modify the sxhkd hotkeys to also shut down succade properly.

domsson commented 5 years ago

We might be able to use getenv("DISPLAY"), as $DISPLAY should not be set when X isn't running. Haven't looked into it in detail yet, though.