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.