displaymanager: Run "sddm --example-config > /etc/sddm.conf" in a shell.

Otherwise, the output redirection cannot work (and the argument was also
misinterpreted as part of the command name).
displaymanager: Refactor the desktop environment detection to eliminate the copy&paste.

This also fixes some issues with the previous code:

* The code for LightDM only supported Xfce.

* The case where multiple desktop environments are installed was not
  handled in a good way.

* We now also check that the xsession definition actually exists. This
  allows handling the case where upstream changed the xsession
  definition's name without renaming the invoked binary.
displaymanager: Detect the KDE Plasma (5 and 4) and GNOME desktop environments.

Add them to the front of the list of desktop environments because users
are more likely to expect those as the default if they have them
installed.
displaymanager: Use a regex to match User= in sddm.conf.

This ensures we really only match the User= line and not the
RememberLastUser= one.
displaymanager: Set Session= for sddm autologin.

Detect the correct value using find_desktop_environment.
Automatic merge of Transifex translations
Merge pull request #139 from kkofler/fix-sddm-chroot-call

displaymanager: Run "sddm --example-config > /etc/sddm.conf" in a shell.
Merge pull request #140 from kkofler/detect-sddm-session-type

displaymanager: Detect SDDM session type
adjust LXDE startup scripts

- add LXQT support
- add LXDE 0.5 changes in Archlinux
Fix check in CMakeColors.
Make sure we also write to the /etc/hosts file
Merge pull request #142 from shadeslayer/github_master

Make sure we also write to the /etc/hosts file
Fix build, last merge was a bit broken
Fix rcc call for translation resources.
Newline.
Actually build translations qrc.
Fix colors test again.
Automatic merge of Transifex translations
Automatic merge of Transifex translations
Automatic merge of Transifex translations