diff --git a/src/plugins/coreplugin/coreplugin.cpp b/src/plugins/coreplugin/coreplugin.cpp index dd99f474503..0777bd20422 100644 --- a/src/plugins/coreplugin/coreplugin.cpp +++ b/src/plugins/coreplugin/coreplugin.cpp @@ -251,6 +251,9 @@ bool CorePlugin::initialize(const QStringList &arguments, QString *errorMessage) expander->registerVariable("HostOs:ExecutableSuffix", Tr::tr("The platform executable suffix."), [] { return QString(Utils::HostOsInfo::withExecutableSuffix("")); }); + expander->registerFileVariables("IDE:Executable", + Tr::tr("The path to the running %1 itself.").arg(QGuiApplication::applicationDisplayName()), + []() { return FilePath::fromUserInput(QCoreApplication::applicationFilePath()); }); expander->registerVariable("IDE:ResourcePath", Tr::tr("The directory where %1 finds its pre-installed resources.") .arg(QGuiApplication::applicationDisplayName()),