Commit 0b39ed0d authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Allow KDEV_DEFAULT_INSTALL_PREFIX specify a default install prefix

This way we can teach KDevelop where we should be installing our builds
parent da4e28ba
......@@ -74,6 +74,11 @@ CMakeBuildDirChooser::CMakeBuildDirChooser(QWidget* parent)
connect(m_chooserUi->availableBuildDirs, QOverload<int>::of(&QComboBox::currentIndexChanged),
this, &CMakeBuildDirChooser::adoptPreviousBuildDirectory);
const auto defaultInstallPrefix = ICore::self()->runtimeController()->currentRuntime()->getenv("KDEV_DEFAULT_INSTALL_PREFIX");
if (!defaultInstallPrefix.isEmpty()) {
......@@ -227,5 +227,7 @@ Path FlatpakRuntime::pathInRuntime(const KDevelop::Path& localPath) const
QByteArray FlatpakRuntime::getenv(const QByteArray& varname) const
return "/app";
return qgetenv(varname.constData());
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment