Fix linux comp bug.

This commit is contained in:
Martin Rotter 2016-01-14 19:02:54 +01:00
parent e3c28f4681
commit c5ee53b424
2 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ SystemFactory::AutoStartStatus SystemFactory::getAutoStartStatus() const {
// Use proper freedesktop.org way to auto-start the application on Linux. // Use proper freedesktop.org way to auto-start the application on Linux.
// INFO: http://standards.freedesktop.org/autostart-spec/latest/ // INFO: http://standards.freedesktop.org/autostart-spec/latest/
#elif defined(Q_OS_LINUX) #elif defined(Q_OS_LINUX)
const QString desktop_file_location = SystemFactory::getAutostartDesktopFileLocation(); const QString desktop_file_location = getAutostartDesktopFileLocation();
// No correct path was found. // No correct path was found.
if (desktop_file_location.isEmpty()) { if (desktop_file_location.isEmpty()) {
@ -92,7 +92,7 @@ SystemFactory::AutoStartStatus SystemFactory::getAutoStartStatus() const {
} }
#if defined(Q_OS_LINUX) #if defined(Q_OS_LINUX)
QString SystemFactory::getAutostartDesktopFileLocation() { QString SystemFactory::getAutostartDesktopFileLocation() const {
const QString xdg_config_path(qgetenv("XDG_CONFIG_HOME")); const QString xdg_config_path(qgetenv("XDG_CONFIG_HOME"));
QString desktop_file_location; QString desktop_file_location;

View File

@ -77,7 +77,7 @@ class SystemFactory : public QObject {
#if defined(Q_OS_LINUX) #if defined(Q_OS_LINUX)
// Returns standard location where auto-start .desktop files // Returns standard location where auto-start .desktop files
// should be placed. // should be placed.
QString getAutostartDesktopFileLocation(); QString getAutostartDesktopFileLocation() const;
#endif #endif
// Retrieves username of currently logged-in user. // Retrieves username of currently logged-in user.