Skip to content

Commit

Permalink
Update Postinstallation
Browse files Browse the repository at this point in the history
  • Loading branch information
mylinuxforwork committed Aug 25, 2024
1 parent 8bee1d8 commit 2993c42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
23 changes: 1 addition & 22 deletions share/dotfiles/.config/ml4w/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if [[ $(_isInstalledPacman "xdg-desktop-portal-gtk") == 0 ]]; then
echo ":: xdg-desktop-portal-gtk already installed"
else
echo -e "${GREEN}"
figlet -f smslant "xdg-desktop-portal-gtk"
figlet -f smslant "Portal GTK"
echo -e "${NONE}"
echo "xdg-desktop-portal-gtk is required to use dark mode in GTK4 Apps."
echo
Expand All @@ -64,27 +64,6 @@ else
fi
fi

# Check for flatpak
if [[ $(_isInstalledPacman "flatpak") == 0 ]]; then
echo ":: Flatpak already installed"
else
clear
echo -e "${GREEN}"
figlet -f smslant "Flatpak"
echo -e "${NONE}"
echo "Flatpak is a framework for distributing desktop applications across various Linux distributions."
echo "Flatpak applications: these are the applications the user installs via the flatpak command"
echo
if gum confirm "Do you want to install flatpak?"; then
_installPackagesPacman "flatpak";
elif [ $? -eq 130 ]; then
echo ":: Installation canceled."
exit 130
else
echo ":: Installation of flatpak skipped."
fi
fi

# Select shell
source ~/.config/ml4w/scripts/shell.sh

Expand Down
1 change: 1 addition & 0 deletions share/packages/optional.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
optdepends=(
"firefox"
"nautilus"
"flatpak"
"gnome-text-editor"
"gnome-calculator"
"smile"
Expand Down

0 comments on commit 2993c42

Please sign in to comment.