Desktop icon

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sadash
    New Member
    • Aug 2020
    • 2

    Desktop icon

    Hi,
    I want to create a desktop shortcut/icon for python file. How to make this?
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 655

    #2
    Right click on desktop -> New -> Shortcut

    Create a shortcut of a batch file instead if things need to be automated.

    Comment

    • sadash
      New Member
      • Aug 2020
      • 2

      #3
      Can you provide, for ubuntu

      Comment

      • madankarmukta
        Contributor
        • Apr 2008
        • 308

        #4
        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.

        Comment

        • dev7060
          Recognized Expert Contributor
          • Mar 2017
          • 655

          #5
          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.

          Comment

          • Ishan Shah
            New Member
            • Jan 2020
            • 47

            #6
            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

            Code:
            [Desktop Entry]
            Name=Pupil Capture
            Version=v0.8.5
            Icon=pupil-capture
            X-Icon-Path=/path/to/icon/file/
            Exec=python /path/to/py/file/main.py
            Terminal=false
            Type=Application

            Comment

            Working...