Skip to content

Commit 8cd1cc5

Browse files
authored
Start desktop-app in background (#845)
1 parent 058bc6e commit 8cd1cc5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/install.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ CLI_NAME="Q CLI"
1212
COMMAND_NAME="q"
1313
BASE_URL="https://desktop-release.q.us-east-1.amazonaws.com"
1414
MANIFEST_URL="${BASE_URL}/latest/manifest.json"
15+
MACOS_FILENAME="Amazon Q.dmg"
16+
MACOS_FILENAME_ESCAPED="Amazon%20Q.dmg"
1517

1618
# Installation directories
1719
MACOS_APP_DIR="/Applications"
@@ -358,9 +360,7 @@ install_macos() {
358360
mkdir -p "$HOME/.local/bin"
359361
local macos_bin="$MACOS_APP_DIR/$app_name/Contents/MacOS"
360362

361-
create_symlink "$macos_bin/q" "$HOME/.local/bin/q"
362-
create_symlink "$macos_bin/qchat" "$HOME/.local/bin/qchat"
363-
create_symlink "$macos_bin/qterm" "$HOME/.local/bin/qterm"
363+
"$macos_bin/q_desktop" --no-dashboard > /dev/null 2>&1 &
364364
}
365365

366366
# Install on Linux
@@ -437,8 +437,8 @@ main() {
437437
# Get download information
438438
local download_url filename
439439
if [[ "$os" == "darwin" ]]; then
440-
filename="Amazon Q.dmg"
441-
download_url="${BASE_URL}/latest/Amazon%20Q.dmg"
440+
filename="$MACOS_FILENAME"
441+
download_url="${BASE_URL}/latest/${MACOS_FILENAME_ESCAPED}"
442442
else
443443
# Linux
444444
if [[ "$use_musl" == "true" ]]; then

0 commit comments

Comments
 (0)