From 284ad179d796e565b28bd600d5e8d030682f34f8 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Tue, 30 Apr 2024 16:09:19 -0600 Subject: [PATCH] Don't auto-start during install flow --- script/install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/script/install.sh b/script/install.sh index cd8030d06c7..e20661f0114 100755 --- a/script/install.sh +++ b/script/install.sh @@ -60,14 +60,15 @@ linux() { sed -i "s|Icon=zed|Icon=$HOME/.local/zed$suffix.app/share/icons/hicolor/512x512/apps/zed.png|g" ~/.local/share/applications/zed$suffix.desktop sed -i "s|Exec=zed|Exec=$HOME/.local/zed$suffix.app/bin/zed|g" ~/.local/share/applications/zed.desktop - if ! which zed >/dev/null 2>&1; then + if which zed >/dev/null 2>&1; then + echo "zed successfully installed. You can run it with 'zed'" + else echo "To run zed from your terminal, you must add ~/.local/bin to your PATH" echo "Run:" echo " echo 'export PATH=\$HOME/.local/bin:\$PATH' >> ~/.bashrc" echo " source ~/.bashrc" + echo "Otherwise run '~/.local/bin/zed'" fi - - ~/.local/bin/zed } macos() { @@ -82,7 +83,7 @@ macos() { fi ditto -v "$temp/mount/$app" "/Applications/$app" hdiutil detach -quiet "$temp/mount" - open "/Applications/$app" + echo "Zed is installed. You can run it with 'open /Applications/$app'" } main "$@"