Skip to content

Commit

Permalink
Remove blue background setting from Windows shortcut
Browse files Browse the repository at this point in the history
The shortcut from the Windows installer was setting a background color for PowerShell command prompt. The idea was to match the look of the PowerShell you would normally start, and avoid confusion with the CMD prompt which has a black background. But that didn't work very well as the background color just disappeared when running commands. Also it seems like Windows now uses a black background for the PowerShell anyway.
  • Loading branch information
Fabien-Chouteau authored Feb 3, 2024
1 parent f850edd commit 3d98a12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function createShortcuts()
var shortcuts = ["@StartMenuDir@/Alire.lnk", "@DesktopDir@/Alire.lnk"];
for (shortcut of shortcuts) {
component.addOperation("CreateShortcut", "powershell", shortcut,
"-NoExit -Command \"$env:Path += \"\"\";@TargetDir@\\bin\"\"\"; \"$host.UI.RawUI.BackgroundColor = \"\"\"DarkBlue\"\"\"; clear-host\"",
"-NoExit -Command \"$env:Path += \"\"\";@TargetDir@\\bin\"\"\"; clear-host\"",
"workingDirectory=@HomeDir@",
"iconPath=@TargetDir@/share/alire/alr_icon.ico",
"description=Start App");
Expand Down

0 comments on commit 3d98a12

Please sign in to comment.