qt: Try harder to find out whether we are running in a GUI session
* qt/main.cpp (main): Check more environment variables on Unix systems.
QGuiApplication checks all of those environment variables to figure out
whether it is running under X11 or Wayland.
- GnuPG-bug-id: T3659