Fix log_level check
Fix getting the X11 display with the Qt ui