#!/bin/bash echo ------------------------------------- echo installing... echo ------------------------------------- #current path SCRIPT=$(realpath $0) SCRIPT_FOLDER=$(dirname $SCRIPT) echo 'current script path is' $SCRIPT_FOLDER #get desktop folder DESKTOP_FOLDER=$(xdg-user-dir DESKTOP) echo 'desktop folder is' $DESKTOP_FOLDER #get os arch MACHINE_TYPE=$(uname -m) echo 'architecture is' $MACHINE_TYPE FILE=$SCRIPT_FOLDER/linux if [ -f "$FILE" ]; then chmod +x $SCRIPT_FOLDER/linux echo create desktop shotcut cat > $DESKTOP_FOLDER/session.desktop <<- EOM [Desktop Entry] Version=1.0 Name=Session Comment=Session is a private messenger offering privacy, anonymity, and security. Exec=$SCRIPT_FOLDER/linux Path=$SCRIPT_FOLDER/ Icon=$SCRIPT_FOLDER/session.png Terminal=false Type=Application Categories=Network;GTK; EOM chmod +x $DESKTOP_FOLDER/session.desktop fi