1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56: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:
David Rosca 2018-03-25 20:55:04 +02:00
parent 2eeee848b7
commit 7d210ecf31
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -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()) { if (isPortable()) {
std::cout << "Falkon: Running in Portable Mode." << std::endl; std::cout << "Falkon: Running in Portable Mode." << std::endl;
DataPaths::setPortableVersion(); DataPaths::setPortableVersion();