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() }
In reply to Re: how to detect gtk installed or not
by Anonymous Monk
in thread how to detect gtk installed or not
by sdetweil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |