[Bastille-linux-discuss] Patch #3: Check if $DISPLAY is set before attempting the use of the X GUI
This tool locks down Linux and UNIX systems.
Brought to you by:
jay
From: Javier <jf...@co...> - 2006-06-28 00:38:24
|
This patch stems from several Debian bugs, since many users are installing Bastille without the "Recommended" (but not needed) packages and end up having just the text-only GUI. The related debian/changelog entries are: * Modified bastille so that the user is warned to use 'bastille -c' if he cannot run the (default) X11 interface due to missing libraries. Also, if no DISPLAY is defined the Curses interface is used unless specified differently in the command line. (Closes: #274464) This patch modifies: * bin/bastille: - sets 'needx' to 'no' if $DISPLAY is not set - adds a message relate to the X11 interface and available frontends. * InteractiveBastille: - prints the usage when it cannot use DISPLAY Comments? Javier |