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:
		| @@ -94,6 +94,16 @@ case "$DISTRO" in | ||||
|         ;; | ||||
| 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 | ||||
| echo -e "${CYAN}⬇️ Downloading Qortal Core...${NC}" | ||||
| cd "$HOME" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user