From 12e23e23a324ace2fa693fda97e6edea09314f31 Mon Sep 17 00:00:00 2001 From: Kai Tao <69313318+vanzue@users.noreply.github.com> Date: Mon, 19 May 2025 09:12:23 +0800 Subject: [PATCH] workspaces: shell:appsfolder launch does not support the command line (#39433) shell:appsfolder launch does not respect the command line --- src/modules/Workspaces/WorkspacesLauncher/AppLauncher.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/Workspaces/WorkspacesLauncher/AppLauncher.cpp b/src/modules/Workspaces/WorkspacesLauncher/AppLauncher.cpp index 7075da2ea7..5cf36fc039 100644 --- a/src/modules/Workspaces/WorkspacesLauncher/AppLauncher.cpp +++ b/src/modules/Workspaces/WorkspacesLauncher/AppLauncher.cpp @@ -25,6 +25,7 @@ namespace AppLauncher const std::wstring ChromeFilename = L"chrome.exe"; const std::wstring ChromePwaFilename = L"chrome_proxy.exe"; const std::wstring PwaCommandLineAddition = L"--profile-directory=Default --app-id="; + const std::wstring SteamProtocolPrefix = L"steam:"; } Result LaunchApp(const std::wstring& appPath, const std::wstring& commandLineArgs, bool elevated) @@ -134,12 +135,11 @@ namespace AppLauncher } } - // win32 app with appUserModelId: - // usage example: steam games - if (!launched && !app.appUserModelId.empty()) + // protocol launch for steam + if (!launched && !app.appUserModelId.empty() && app.appUserModelId.contains(NonLocalizable::SteamProtocolPrefix)) { Logger::trace(L"Launching {} as {}", app.name, app.appUserModelId); - auto res = LaunchApp(L"shell:AppsFolder\\" + app.appUserModelId, app.commandLineArgs, app.isElevated); + auto res = LaunchApp(app.appUserModelId, app.commandLineArgs, app.isElevated); if (res.isOk()) { launched = true;