mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Add support for setting portable mode from falkon.conf
[Config] Portable=true in falkon.conf in the same directory as executable will force running in portable mode.
This commit is contained in:
parent
2eeee848b7
commit
7d210ecf31
@ -205,6 +205,11 @@ MainApplication::MainApplication(int &argc, char** argv)
|
||||
}
|
||||
}
|
||||
|
||||
if (!isPortable()) {
|
||||
QSettings falkonConf(QSL("%1/falkon.conf").arg(applicationDirPath()), QSettings::IniFormat);
|
||||
m_isPortable = falkonConf.value(QSL("Config/Portable")).toBool();
|
||||
}
|
||||
|
||||
if (isPortable()) {
|
||||
std::cout << "Falkon: Running in Portable Mode." << std::endl;
|
||||
DataPaths::setPortableVersion();
|
||||
|
Loading…
Reference in New Issue
Block a user