Improve data path handling
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 8 Feb 2015 18:52:55 +0000 (19:52 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 8 Feb 2015 18:55:54 +0000 (19:55 +0100)
commita8841ac148d14a676d1beb93d3c43a7e8473f72b
tree53444ca5619f58e05a9a75bd3134467ca72e6279
parent2ac71ab56f56ceeebe572f7e656b9ea7dd1c88d5
Improve data path handling

Originally I intended to switch to QStandardPaths for Qt5, however this
would also require migration code. We'll postpone this until we can
get rid of Qt4 and KDE4, so there are less combinations to handle properly.

Instead, this commit improves the handling of data paths in general by
fixing search order, supporting XDG_DATA_HOME, and sanitizing the paths
properly. Also KDE builds now check their own install prefix, in case
Quassel is installed in a non-standard location.
src/common/quassel.cpp
src/qtui/qtuiapplication.cpp