By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,401 Members | 1,375 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,401 IT Pros & Developers. It's quick & easy.

Desktop icon

P: 2
Hi,
I want to create a desktop shortcut/icon for python file. How to make this?
Aug 20 '20 #1
Share this Question
Share on Google+
5 Replies

dev7060
Expert 100+
P: 335
Right click on desktop -> New -> Shortcut

Create a shortcut of a batch file instead if things need to be automated.
Aug 20 '20 #2

P: 2
Can you provide, for ubuntu
Aug 20 '20 #3

100+
P: 305
Right click on desktop -> New -> Shortcut

Create a shortcut of a py file instead if things need to be automated.You can also put it to the taskbar for quick access.

Let me know if this doesnt help.
Aug 20 '20 #4

dev7060
Expert 100+
P: 335
Can you provide, for ubuntu
I'm afraid I don't work with this OS.

Right click on desktop -> New -> Shortcut

Create a shortcut of a py file instead if things need to be automated.You can also put it to the taskbar for quick access.

Let me know if this doesnt help.
Nice copy paste. But it sure didn't help.
Aug 20 '20 #5

P: 37
Following Steps are useful for create a desktop shortcut/icon for python file in Ubuntu OS :

1. Right click on your desktop and create a new empty document.
2. Set the document file type by Renaming the document that ends with .desktop
3. Drag the document into a text editor and edit the document with the example code below

Expand|Select|Wrap|Line Numbers
  1. [Desktop Entry]
  2. Name=Pupil Capture
  3. Version=v0.8.5
  4. Icon=pupil-capture
  5. X-Icon-Path=/path/to/icon/file/
  6. Exec=python /path/to/py/file/main.py
  7. Terminal=false
  8. Type=Application
  9.  
Aug 21 '20 #6

Post your reply

Sign in to post your reply or Sign up for a free account.