diff --git a/debian/changelog b/debian/changelog index 752ca69..0b4a70a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +nx-desktop-settings-legacy (5.4.8) nitrux; urgency=medium + + * Update install scripts for libreoffice and bauh. + + -- Uri Herrera Wed, 27 Aug 2024 20:39:00 -0500 + nx-desktop-settings-legacy (5.4.7) nitrux; urgency=medium * Add scripts to install Bauh and LibreOffice. diff --git a/etc/skel/.local/bin/install-bauh-appimage b/etc/skel/.local/bin/install-bauh-appimage index cde37db..58d419b 100755 --- a/etc/skel/.local/bin/install-bauh-appimage +++ b/etc/skel/.local/bin/install-bauh-appimage @@ -25,6 +25,26 @@ set -x +# -- Function to create directories if they don't exist +create_directories() { + if [ ! -d "/Applications" ]; then + echo "Creating directory: /Applications" + mkdir /Applications + else + echo "Directory already exists: /Applications" + fi + + if [ ! -d "/etc/skel/.local/bin" ]; then + echo "Creating directory: /etc/skel/.local/bin" + mkdir -p /etc/skel/.local/bin + else + echo "Directory already exists: /etc/skel/.local/bin" + fi +} + +create_directories + + # -- Function to download Appimage files. user_agent="BrightSign/8.2.55.5 (XT1144) Mozilla/5.0 (X11; Linux aarch64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.3 Chrome/69.0.3497.128 Safari/537.36" diff --git a/etc/skel/.local/bin/install-libreoffice-appimage b/etc/skel/.local/bin/install-libreoffice-appimage index ca57880..06dc37b 100755 --- a/etc/skel/.local/bin/install-libreoffice-appimage +++ b/etc/skel/.local/bin/install-libreoffice-appimage @@ -25,6 +25,26 @@ set -x +# -- Function to create directories if they don't exist +create_directories() { + if [ ! -d "/Applications" ]; then + echo "Creating directory: /Applications" + mkdir /Applications + else + echo "Directory already exists: /Applications" + fi + + if [ ! -d "/etc/skel/.local/bin" ]; then + echo "Creating directory: /etc/skel/.local/bin" + mkdir -p /etc/skel/.local/bin + else + echo "Directory already exists: /etc/skel/.local/bin" + fi +} + +create_directories + + # -- Function to download Appimage files. user_agent="BrightSign/8.2.55.5 (XT1144) Mozilla/5.0 (X11; Linux aarch64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.3 Chrome/69.0.3497.128 Safari/537.36"