ensure that the Qortal catetory in menu is actually created if system has a desktop environment. Create both system-wide and user-only location to ensure this happens. AT start of script since sudo is required.

This commit is contained in:
crowetic 2025-07-18 10:16:30 -07:00
parent 81be9b845c
commit 9a1317fda9

View File

@ -94,6 +94,16 @@ case "$DISTRO" in
;; ;;
esac esac
if [ -n "$DISPLAY" ] || [ -n "$WAYLAND_DISPLAY" ] || [ -n "$XDG_CURRENT_DESKTOP" ] || [ -d "${HOME}/Desktop" ]; then
if [ ! -f /usr/share/desktop-directories/Qortal.directory ]; then
echo -e "${CYAN}📁 Installing system-wide Qortal.directory category...${NC}"
echo "[Desktop Entry]
Name=Qortal
Icon=qortal-logo
Type=Directory" | sudo tee /usr/share/desktop-directories/Qortal.directory > /dev/null
fi
fi
# Download and Install Qortal Core # Download and Install Qortal Core
echo -e "${CYAN}⬇️ Downloading Qortal Core...${NC}" echo -e "${CYAN}⬇️ Downloading Qortal Core...${NC}"
cd "$HOME" cd "$HOME"