Gnome Desktop Shortcut

GNOME Desktop Shortcut

Just another note about this. See previous also.

Create in user Desktop folder

$ cat crypto-report.desktop 
[Desktop Entry]
Version=1.0
Exec=/home/rrosso/scripts/crypto-report.sh
Name=crypto-report
GenericName=crypto-report
Comment=run crypto-report script
Encoding=UTF-8
Terminal=true
Type=Application
Categories=Application;Network;

Script

$ cat ~/scripts/crypto-report.sh 
#!/bin/bash

commands () {
    cd /TANK/DATA/MySrc/crypto-totals-api
    python3 consolidated-crypto-report.py
    $SHELL # keep the terminal open after the previous commands are executed
}

export -f commands

gnome-terminal --profile=crypto-report -- bash -c "commands"

NOTE: May have to right click on shortcut on the desktup and allow to tun.

admin

Bio Info for Riaan