Automatic merge of Transifex translations
Rename pkexec policy file to .policy extension.

Rename com.github.calamares.calamares.bin to
com.github.calamares.calamares.policy. This matches how other policy
files in the same directory are named.
CMakeColors.cmake: Use colors only if stderr is an interactive terminal.

In particular, do not write ugly escape sequences to log files.

Fixes #124.
Missing define, check_chroot_call replaced

not really needed here, subprocess.call well tested
add the define
Merge pull request #136 from kkofler/pkexec-policy-file-name

Rename pkexec policy file to .policy extension.
Merge pull request #137 from kkofler/fix-issue-124

CMakeColors.cmake: Use colors only if stderr is an interactive terminal.
Automatic merge of Transifex translations
Fix displaymanager sddm config call.
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