Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python icons in Ubuntu
#1
I have some Python files that run when I double click on them, but I have others that have a different icon and they won't run when I double click on them. What is the difference in these files? I'm running Ubuntu on a Raspberry 4.
Reply
#2
The ones you can't run by clicking don't contain a shebang. Lookup Python shebang.
Gribouillis likes this post
Reply
#3
(Aug-12-2022, 01:42 AM)deanhystad Wrote: The ones you can't run by clicking don't contain a shebang. Lookup Python shebang.

Thank you!!! Going to look that up now.
Reply
#4
(Aug-12-2022, 01:42 AM)deanhystad Wrote: The ones you can't run by clicking don't contain a shebang. Lookup Python shebang.

That worked. I spent quite a bit of time trying to figure that out before posting here in desperation. Thank you!!!
Reply
#5
You may also need to chmod 700 the file, or use the GUI to set the 'executable' flag.
Sig:
>>> import this

The UNIX philosophy: "Do one thing, and do it well."

"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse

"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python in Singularity Container on Ubuntu erdemath 0 912 Aug-31-2022, 02:17 PM
Last Post: erdemath
  file icons have Firefox icon Ricvourn 4 1,450 Mar-31-2022, 11:40 PM
Last Post: Ricvourn
  Python 3.8 on Ubuntu 20.04 erdemath 1 1,372 Mar-07-2022, 09:31 PM
Last Post: Larz60+
  Python script in Ubuntu core Nithin_Kumar 1 3,378 May-11-2021, 01:14 AM
Last Post: Skaperen
  Python Program running a lot slower after change to Ubuntu hubenhau 1 2,906 Mar-02-2021, 05:01 PM
Last Post: Serafim
  Change icons of system rizzla 1 1,925 Jan-28-2021, 03:30 PM
Last Post: Marbelous
  Can't install pip for Python 3.7.4 in Ubuntu virtual OS netbids 9 6,294 Dec-31-2019, 04:42 AM
Last Post: netbids
  Python to .so library in Ubuntu for web server danowitz 0 2,082 Dec-20-2019, 06:42 AM
Last Post: danowitz
  (python-)rtmidi/Ubuntu Spiekes 1 2,387 Oct-09-2019, 10:27 PM
Last Post: metulburr
  Python and Ubuntu newbieAuggie2019 8 4,312 Sep-24-2019, 02:37 PM
Last Post: perfringo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020