I'm trying to create a desktop shortcut which launches a terminal app with commandline arguments which contains a path to a file with a randomly generated number in the filename.
I've tried everything i could think of but have not been able to find anything that works.
This is what the Exec line looks like now:
Exec=sudo nwipe --logfile=/home/admin/Documents/nwipe/Certificate{$((1 + $RANDOM % 99999))}.pdf
That line seems to work fine directly in a terminal window, but not when i'm trying to launch the desktop shortcut.
I'm not very familiar with terminal and bash, but in PowerShell i would do something like below:
sudo nwipe --logfile=/home/admin/Documents/nwipe/Certificate$(Get-Random -Maximum 99999).pdf