Skip to content

Commit 25cc43a

Browse files
author
David Heinemeier Hansson
committed
Ask for default apps on terminal mode too (closes #308)
Coauthor: @gtkatakura
1 parent 1dfafd7 commit 25cc43a

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

install.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@ set -e
44
# Check the distribution name and version and abort if incompatible
55
source ~/.local/share/omakub/install/check-version.sh
66

7+
# Ask for app choices
8+
echo "Get ready to make a few choices..."
9+
source ~/.local/share/omakub/install/terminal/required/app-gum.sh >/dev/null
10+
source ~/.local/share/omakub/install/first-run-choices.sh
11+
712
# Desktop software and tweaks will only be installed if we're running Gnome
813
if [[ "$XDG_CURRENT_DESKTOP" == *"GNOME"* ]]; then
914
# Ensure computer doesn't go to sleep or lock while installing
1015
gsettings set org.gnome.desktop.screensaver lock-enabled false
1116
gsettings set org.gnome.desktop.session idle-delay 0
1217

13-
echo "Get ready to make a few choices..."
14-
source ~/.local/share/omakub/install/terminal/required/app-gum.sh >/dev/null
15-
source ~/.local/share/omakub/install/first-run-choices.sh
16-
1718
echo "Installing terminal and desktop tools..."
1819

1920
# Install terminal tools

install/first-run-choices.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
OPTIONAL_APPS=("1password" "Spotify" "Zoom" "Dropbox")
2-
DEFAULT_OPTIONAL_APPS='1password,Spotify,Zoom'
3-
export OMAKUB_FIRST_RUN_OPTIONAL_APPS=$(gum choose "${OPTIONAL_APPS[@]}" --no-limit --selected $DEFAULT_OPTIONAL_APPS --height 7 --header "Select optional apps" | tr ' ' '-')
1+
# Only ask for default desktop app choices when running Gnome
2+
if [[ "$XDG_CURRENT_DESKTOP" == *"GNOME"* ]]; then
3+
OPTIONAL_APPS=("1password" "Spotify" "Zoom" "Dropbox")
4+
DEFAULT_OPTIONAL_APPS='1password,Spotify,Zoom'
5+
export OMAKUB_FIRST_RUN_OPTIONAL_APPS=$(gum choose "${OPTIONAL_APPS[@]}" --no-limit --selected $DEFAULT_OPTIONAL_APPS --height 7 --header "Select optional apps" | tr ' ' '-')
6+
fi
47

58
AVAILABLE_LANGUAGES=("Ruby on Rails" "Node.js" "Go" "PHP" "Python" "Elixir" "Rust" "Java")
69
SELECTED_LANGUAGES="Ruby on Rails","Node.js"

0 commit comments

Comments
 (0)