Fix linux comp bug.
This commit is contained in:
parent
e3c28f4681
commit
c5ee53b424
@ -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;
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user