I'm created a .desktop file in ubuntu 12.04LTS to run my shell script in terminal directly. Its working fine, but I'm facing a problem, "/openlypsaa/" as username here, I want to capture home username and assign to path for "Exec" as dynamically. How can I handle this path dynamically with a variable or any another method? Please help me to solve this issue.
Here is my .desktop file content
[Desktop Entry]
Version=1.0
Name=openLypsaa Installation Script
Comment=Installation script for openLypsaa software.
Exec=/home/openlypsaa/Desktop/ol_install_script/install.sh
Path=/home/openlypsaa/Desktop/ol_install_script/
Icon=/usr/share/icons/Humanity/apps/32/access.svg
Terminal=true
Type=Application
Categories=Utility;Application;Development;