#!/bin/sh
# Creates an "Install Debian" icon on the live session tested with:
# Xfce, LXDE, LXqt, Gnome, KDE, Mate, Cinnamon


# Create ~/Desktop just in case this runs before the xdg folder
# creation script.
mkdir -p ~/Escritorio
cp /usr/share/applications/install-huayra.desktop ~/Escritorio
# Xfce needs this executable otherwise it complains, everything
# else doesn't seem to care either way.
chmod +x ~/Escritorio/install-huayra.desktop

# Set desktop launcher as trusted under gnome/xfce (See: #1037299)
    gio set --type=string ~/Escritorio/install-huayra.desktop \
        metadata::trusted true
    gio set --type=string ~/Escritorio/install-huayra.desktop \
        metadata::xfce-exe-checksum \
        "$(sha256sum ~/Escritorio/install-huayra.desktop | cut -f1 -d' ')"
    touch ~/Escritorio/install-huayra.desktop
