fix: config file location under Linux should contain app name
This commit is contained in:
		@ -106,9 +106,9 @@ Settings::Settings()
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
#endif // FLAG_PORTABLE_MODE_SUPPORT
 | 
					#endif // FLAG_PORTABLE_MODE_SUPPORT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // %LOCALAPPDATA% under Windows.
 | 
					 | 
				
			||||||
    if (configPath.isEmpty()) {
 | 
					    if (configPath.isEmpty()) {
 | 
				
			||||||
        configPath = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation);
 | 
					        // %LOCALAPPDATA%\<APPNAME> under Windows, ~/.config/<APPNAME> under Linux.
 | 
				
			||||||
 | 
					        configPath = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    m_qsettings = new QSettings(QDir(configPath).absoluteFilePath("config.ini"), QSettings::IniFormat, this);
 | 
					    m_qsettings = new QSettings(QDir(configPath).absoluteFilePath("config.ini"), QSettings::IniFormat, this);
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user