From 9d7a666edc9409abdf85879deefede99d1939078 Mon Sep 17 00:00:00 2001 From: Fabien Chouteau Date: Thu, 8 Feb 2024 19:03:25 +0100 Subject: [PATCH] Remove blue background setting from Windows shortcut (#1555) 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. --- .../qt-ifw/packages/com.alire.root/meta/installscript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/installer/qt-ifw/packages/com.alire.root/meta/installscript.js b/scripts/installer/qt-ifw/packages/com.alire.root/meta/installscript.js index 10fa204a..a06cabc7 100644 --- a/scripts/installer/qt-ifw/packages/com.alire.root/meta/installscript.js +++ b/scripts/installer/qt-ifw/packages/com.alire.root/meta/installscript.js @@ -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"); -- 2.39.5