Im trying to make a .desktop file run a .sh which is stored in the same directory as the .desktop. The whole directory needs to be portable and moved from machine to machine.
Now I can get the current path for EXEC command using the method from :
Exec=bash -c '"$(dirname "$1")"/run.sh' dummy %k
But now I also want it to load icon from the same directory so that it becomes completely portable. But didn't get any success but using the approach as suggested for EXEC command.
This is what I tried:
Icon=bash -c '"$(dirname "$1")"/run.sh' dummy %k
Icon=bash -c '"$(pwd)"/data/planet_image_gray.png'
But none seem to work. I hope there is a solution to this.
Thanks in advance.