I have created an application shortcut in Ubuntu like this:
[Desktop Entry]
Encoding=UTF-8
Type=Application
Exec=bash -c 'echo $PATH;$SHELL'
Icon=/home/mani/Desktop/omnetpp-5.0/ide/icon.png
Terminal=true
Name=Sample Application
Categories=Development;Application
I saved it with sampleApp.desktop
name. Double clicking on the shortcut shows me this:
But, the actual value of $PATH is this:
My guess is that, double clicking on the shortcut, runs the application in a non-interactive shell and the content of my .bashrc will not be parsed. How can I print the full $PATH using desktop shortcut?