|
4 | 4 | # Desktop software and tweaks will only be installed if we're running Gnome
|
5 | 5 | RUNNING_GNOME=$([[ "$XDG_CURRENT_DESKTOP" == *"GNOME"* ]] && echo true || echo false)
|
6 | 6 |
|
| 7 | +# Check the distribution name and version and abort if incompatible |
| 8 | +source ~/.local/share/omakub/install/check-version.sh |
| 9 | + |
7 | 10 | if $RUNNING_GNOME; then
|
8 |
| - # Ensure computer doesn't go to sleep or lock while installing |
9 |
| - gsettings set org.gnome.desktop.screensaver lock-enabled false |
10 |
| - gsettings set org.gnome.desktop.session idle-delay 0 |
| 11 | + # Ensure computer doesn't go to sleep or lock while installing |
| 12 | + gsettings set org.gnome.desktop.screensaver lock-enabled false |
| 13 | + gsettings set org.gnome.desktop.session idle-delay 0 |
11 | 14 |
|
12 |
| - echo "Get ready to make a few choices..." |
13 |
| - source ~/.local/share/omakub/install/terminal/required/app-gum.sh >/dev/null |
14 |
| - source ~/.local/share/omakub/first_run_choices.sh |
| 15 | + echo "Get ready to make a few choices..." |
| 16 | + source ~/.local/share/omakub/install/terminal/required/app-gum.sh >/dev/null |
| 17 | + source ~/.local/share/omakub/install/first-run-choices.sh |
15 | 18 |
|
16 |
| - echo "Installing terminal and desktop tools.." |
| 19 | + echo "Installing terminal and desktop tools.." |
17 | 20 | else
|
18 |
| - echo "Only installing terminal tools..." |
| 21 | + echo "Only installing terminal tools..." |
19 | 22 | fi
|
20 | 23 |
|
21 | 24 | # Install terminal tools
|
22 | 25 | source ~/.local/share/omakub/install/terminal.sh
|
23 | 26 |
|
24 | 27 | if $RUNNING_GNOME; then
|
25 |
| - # Install desktop tools and tweaks |
26 |
| - source ~/.local/share/omakub/install/desktop.sh |
| 28 | + # Install desktop tools and tweaks |
| 29 | + source ~/.local/share/omakub/install/desktop.sh |
27 | 30 |
|
28 |
| - # Revert to normal idle and lock settings |
29 |
| - gsettings set org.gnome.desktop.screensaver lock-enabled true |
30 |
| - gsettings set org.gnome.desktop.session idle-delay 300 |
| 31 | + # Revert to normal idle and lock settings |
| 32 | + gsettings set org.gnome.desktop.screensaver lock-enabled true |
| 33 | + gsettings set org.gnome.desktop.session idle-delay 300 |
31 | 34 | fi
|
0 commit comments