in reply to how to detect gtk installed or not
This doesn't directly answer your question, but the standard way of telling whether the user wants (or even can run) a GUI or not is checking whether the $DISPLAY environment variable is set. So just if ($ENV{DISPLAY}) { try_start_gui() }
|
|---|