python - Set Path of .desktop file to run a executable in same directory -


i trying create .desktop file running python script. current code,

[desktop entry]   version=1.0   name=aronzsmartbell   comment=this comment   exec= python /home/arun/pycharmprojects/smartbell/jojulogin_mod.py   path=/home/arun/pycharmprojects/smartbell/   terminal=false   type=application   categories=utility;application;   

in above code need specify full path of python file in exec statement like
exec= python /home/arun/pycharmprojects/smartbell/jojulogin_mod.py.in case python file , .desktop file in same directory.so there way specify exec path directory .desktop file placed??

as mentioned here, if python file (.py) in same directory .desktop file, use relative paths shown below:

exec= python ./jojulogin_mod.py 

Comments