Skip to content

Commit 536e9b6

Browse files
authored
Updated spotify version # (#1824)
1 parent 4a4c5bb commit 536e9b6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dotnet/autoShell/AutoShell.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static AutoShell()
6969
{ "paint 3d", "C:\\Program Files\\WindowsApps\\Microsoft.MSPaint_10.1807.18022.0_x64__8wekyb3d8bbwe\\"},
7070
{ "m365 copilot", "C:\\Program Files\\WindowsApps\\Microsoft.MicrosoftOfficeHub_19.2512.45041.0_x64__8wekyb3d8bbwe\\M365Copilot.exe" },
7171
{ "copilot", "C:\\Program Files\\WindowsApps\\Microsoft.MicrosoftOfficeHub_19.2512.45041.0_x64__8wekyb3d8bbwe\\M365Copilot.exe" },
72-
{ "spotify", "C:\\Program Files\\WindowsApps\\SpotifyAB.SpotifyMusic_1.278.418.0_x64__zpdnekdrzrea0\\spotify.exe" },
72+
{ "spotify", "C:\\Program Files\\WindowsApps\\SpotifyAB.SpotifyMusic_1.279.427.0_x64__zpdnekdrzrea0\\spotify.exe" },
7373
};
7474

7575
// add the entries to the hashtable
@@ -532,7 +532,11 @@ static void OpenApplication(string friendlyName)
532532
{
533533
Process.Start(path);
534534
}
535-
catch { }
535+
catch (System.ComponentModel.Win32Exception)
536+
{
537+
// alternate start method
538+
Process.Start(friendlyName);
539+
}
536540
}
537541
else
538542
{

0 commit comments

Comments
 (0)