From c5ee53b424454cabad186057bd0f379ecc8a6392 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Thu, 14 Jan 2016 19:02:54 +0100 Subject: [PATCH] Fix linux comp bug. --- src/miscellaneous/systemfactory.cpp | 4 ++-- src/miscellaneous/systemfactory.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/miscellaneous/systemfactory.cpp b/src/miscellaneous/systemfactory.cpp index b716f1863..5af31e2fe 100755 --- a/src/miscellaneous/systemfactory.cpp +++ b/src/miscellaneous/systemfactory.cpp @@ -69,7 +69,7 @@ SystemFactory::AutoStartStatus SystemFactory::getAutoStartStatus() const { // Use proper freedesktop.org way to auto-start the application on Linux. // INFO: http://standards.freedesktop.org/autostart-spec/latest/ #elif defined(Q_OS_LINUX) - const QString desktop_file_location = SystemFactory::getAutostartDesktopFileLocation(); + const QString desktop_file_location = getAutostartDesktopFileLocation(); // No correct path was found. if (desktop_file_location.isEmpty()) { @@ -92,7 +92,7 @@ SystemFactory::AutoStartStatus SystemFactory::getAutoStartStatus() const { } #if defined(Q_OS_LINUX) -QString SystemFactory::getAutostartDesktopFileLocation() { +QString SystemFactory::getAutostartDesktopFileLocation() const { const QString xdg_config_path(qgetenv("XDG_CONFIG_HOME")); QString desktop_file_location; diff --git a/src/miscellaneous/systemfactory.h b/src/miscellaneous/systemfactory.h index 354d17ab0..71abe9850 100755 --- a/src/miscellaneous/systemfactory.h +++ b/src/miscellaneous/systemfactory.h @@ -77,7 +77,7 @@ class SystemFactory : public QObject { #if defined(Q_OS_LINUX) // Returns standard location where auto-start .desktop files // should be placed. - QString getAutostartDesktopFileLocation(); + QString getAutostartDesktopFileLocation() const; #endif // Retrieves username of currently logged-in user.