Skip to content

Commit 12e23e2

Browse files
authored
workspaces: shell:appsfolder launch does not support the command line (#39433)
shell:appsfolder launch does not respect the command line
1 parent c965675 commit 12e23e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/modules/Workspaces/WorkspacesLauncher/AppLauncher.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ namespace AppLauncher
2525
const std::wstring ChromeFilename = L"chrome.exe";
2626
const std::wstring ChromePwaFilename = L"chrome_proxy.exe";
2727
const std::wstring PwaCommandLineAddition = L"--profile-directory=Default --app-id=";
28+
const std::wstring SteamProtocolPrefix = L"steam:";
2829
}
2930

3031
Result<SHELLEXECUTEINFO, std::wstring> LaunchApp(const std::wstring& appPath, const std::wstring& commandLineArgs, bool elevated)
@@ -134,12 +135,11 @@ namespace AppLauncher
134135
}
135136
}
136137

137-
// win32 app with appUserModelId:
138-
// usage example: steam games
139-
if (!launched && !app.appUserModelId.empty())
138+
// protocol launch for steam
139+
if (!launched && !app.appUserModelId.empty() && app.appUserModelId.contains(NonLocalizable::SteamProtocolPrefix))
140140
{
141141
Logger::trace(L"Launching {} as {}", app.name, app.appUserModelId);
142-
auto res = LaunchApp(L"shell:AppsFolder\\" + app.appUserModelId, app.commandLineArgs, app.isElevated);
142+
auto res = LaunchApp(app.appUserModelId, app.commandLineArgs, app.isElevated);
143143
if (res.isOk())
144144
{
145145
launched = true;

0 commit comments

Comments
 (0)