LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to lunch a python file from desktop (https://www.linuxquestions.org/questions/linux-general-1/how-to-lunch-a-python-file-from-desktop-4175675664/)

hnasr2001 05-21-2020 11:34 AM

How to lunch a python file from desktop
 
Hello;

I have an application written in python. I can execute this file by using the following command;

python3 /path/python.py

I want to create an icon in the desktop to do this.
I made a .dektop file with the following contents and have it on the ~/.local/application directory but no icon appeared on the desktop.

Name=backup
Exec=python3 /path/python.py
Icon=/usr/share/pixmaps/jawas.png
Path=/path
Terminal=false
Type=Application
StartupNotify=true

I am getting lunching on the application if I click on the file.

Would you please guide me on what changes do I need to make?

shruggy 05-21-2020 04:00 PM

You probably misspelled the icon name: is it javaws.png?

jefro 05-25-2020 03:02 PM

https://askubuntu.com/questions/3429...-python-script

https://webcache.googleusercontent.c...=firefox-b-1-d


All times are GMT -5. The time now is 03:23 AM.