Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-11 Thread Rick Johnson
Lawrence D’Oliveiro wrote: > Rick Johnson wrote: > > And it's not like we can just pick file up and shake > > it, in a crude attempt to intuit the contents. > > Yes we can! BO??? Is that you? -- https://mail.python.org/mailman/listinfo/python-list

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-10 Thread Chris Angelico
On Mon, Dec 11, 2017 at 2:35 PM, Steve D'Aprano wrote: > On Mon, 11 Dec 2017 11:29 am, Chris Angelico wrote: > >> On Mon, Dec 11, 2017 at 10:10 AM, Rick Johnson >> wrote: > >>> And it's not like we can just pick file up and shake >>> it, in a crude attempt to intuit the contents. >> >> No, but fo

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-10 Thread Steve D'Aprano
On Mon, 11 Dec 2017 11:29 am, Chris Angelico wrote: > On Mon, Dec 11, 2017 at 10:10 AM, Rick Johnson > wrote: >> And it's not like we can just pick file up and shake >> it, in a crude attempt to intuit the contents. > > No, but fortunately we have magic. And magic can tell us a lot about > what

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-10 Thread Chris Angelico
On Mon, Dec 11, 2017 at 10:10 AM, Rick Johnson wrote: > Rustom Mody wrote: > > [...] > >> Whether there was nothing wrong in what I did, the "wrong- >> right" was de facto, or de jure… I will leave to more wise >> persons than myself > > A file with no extension (regardless of the OS or desktop >

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-10 Thread Rick Johnson
Rustom Mody wrote: [...] > Whether there was nothing wrong in what I did, the "wrong- > right" was de facto, or de jure… I will leave to more wise > persons than myself A file with no extension (regardless of the OS or desktop enviroment that it was created on), is like a sealed box with no

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-10 Thread Thomas Jollans
On 10/12/17 07:01, Chris Angelico wrote: > On Sun, Dec 10, 2017 at 4:52 PM, Steve D'Aprano > wrote: >> On Sun, 10 Dec 2017 02:01 pm, Chris Angelico wrote: >> >>> On Sun, Dec 10, 2017 at 12:56 PM, Steve D'Aprano >>> wrote: Remember the context here: we're replying to a thread discussing someb

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-10 Thread Chris Green
Chris Angelico wrote: > On Sun, Dec 10, 2017 at 12:56 PM, Steve D'Aprano > wrote: > > Remember the context here: we're replying to a thread discussing somebody > > who > > is running Ubuntu with a GUI desktop environment. Of course there are *some* > > Linux systems which don't run a GUI at all,

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-10 Thread Rustom Mody
On Sunday, December 10, 2017 at 11:15:15 AM UTC+5:30, Frank Millman wrote: > "Rustom Mody" wrote in message > > > > I was sending some files to some students. > Since it was more than one, the natural choice was a tarball. > [I believe that since it was a very tiny total space I did not compre

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-09 Thread Chris Angelico
On Sun, Dec 10, 2017 at 4:52 PM, Steve D'Aprano wrote: > On Sun, 10 Dec 2017 02:01 pm, Chris Angelico wrote: > >> On Sun, Dec 10, 2017 at 12:56 PM, Steve D'Aprano >> wrote: >>> Remember the context here: we're replying to a thread discussing somebody >>> who is running Ubuntu with a GUI desktop e

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-09 Thread Steve D'Aprano
On Sun, 10 Dec 2017 02:01 pm, Chris Angelico wrote: > On Sun, Dec 10, 2017 at 12:56 PM, Steve D'Aprano > wrote: >> Remember the context here: we're replying to a thread discussing somebody >> who is running Ubuntu with a GUI desktop environment. Of course there are >> *some* Linux systems which d

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-09 Thread Frank Millman
"Rustom Mody" wrote in message news:4f25d0a9-64a5-4d36-b072-97e293a7c...@googlegroups.com... I was sending some files to some students. Since it was more than one, the natural choice was a tarball. [I believe that since it was a very tiny total space I did not compress the tarball… but I dont

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-09 Thread Rustom Mody
On Sunday, December 10, 2017 at 10:12:38 AM UTC+5:30, Rustom Mody wrote: > I was sending some files to some students. > Since it was more than one, the natural choice was a tarball. > [I believe that since it was a very tiny total space I did not compress the > tarball… but I dont remember this

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-09 Thread Rustom Mody
On Friday, December 8, 2017 at 6:40:17 AM UTC+5:30, Python wrote: > On Thu, Dec 07, 2017 at 01:29:11PM +1100, Steve D'Aprano wrote: > > On Thu, 7 Dec 2017 08:22 am, Python wrote: > > >> > Linux doesn’t do “OS file associations”. > > >> > > >> Then how does my Linux box know that when I double-clic

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-09 Thread Thomas Jollans
On 10/12/17 04:01, Chris Angelico wrote: > but is it really the case that you can't install Ubuntu without a GUI? Of course not. There are millions of people using Ubuntu on servers, without as much as a whiff of GUI. I'm rather sure that the server version of Ubuntu makes significantly more mone

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-09 Thread Chris Angelico
On Sun, Dec 10, 2017 at 2:39 PM, Michael Torrie wrote: > On 12/09/2017 08:01 PM, Chris Angelico wrote: >> Been a long time since I had an Ubuntu, but is it really the case that >> you can't install Ubuntu without a GUI? > > Of course not. Ubuntu is used in headless server situations all the time.

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-09 Thread Michael Torrie
On 12/09/2017 08:01 PM, Chris Angelico wrote: > Been a long time since I had an Ubuntu, but is it really the case that > you can't install Ubuntu without a GUI? Of course not. Ubuntu is used in headless server situations all the time. -- https://mail.python.org/mailman/listinfo/python-list

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-09 Thread Chris Angelico
On Sun, Dec 10, 2017 at 12:56 PM, Steve D'Aprano wrote: > Remember the context here: we're replying to a thread discussing somebody who > is running Ubuntu with a GUI desktop environment. Of course there are *some* > Linux systems which don't run a GUI at all, but you can't double-click on > files

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-09 Thread Steve D'Aprano
On Fri, 8 Dec 2017 12:08 pm, Python wrote: > But more importantly, practically speaking, it still doesn't really > provide much more help to the OP than Lawrence's answer. I wasn't responding to the OP, I was responding to Lawrence. If I had a solution for the OP beyond what others have already s

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-07 Thread Python
On Thu, Dec 07, 2017 at 01:29:11PM +1100, Steve D'Aprano wrote: > On Thu, 7 Dec 2017 08:22 am, Python wrote: > >> > Linux doesn’t do “OS file associations”. > >> > >> Then how does my Linux box know that when I double-click on a text file, it > >> launches kwrite rather than (say) the Gimp or Libr

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-07 Thread Rick Johnson
On Wednesday, December 6, 2017 at 8:29:23 PM UTC-6, Steve D'Aprano wrote: [...] > If the term "OS file associations" is ever so slightly > inaccurate (it's not the actual OS kernel that does the > associating, but the desktop environment), well, we can > probably say the same thing about Mac

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-06 Thread Karsten Hilbert
On Thu, Dec 07, 2017 at 01:29:11PM +1100, Steve D'Aprano wrote: > Actually, no, the answer to my question is very simple: Lawrence is mistaken > about Linux not doing file associations. It does -- it is merely handled by > the desktop environment (if there is one). We _can_ go one level below tha

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-06 Thread Steve D'Aprano
On Thu, 7 Dec 2017 08:22 am, Python wrote: > On Wed, Dec 06, 2017 at 10:35:58AM +1100, Steve D'Aprano wrote: >> On Tue, 5 Dec 2017 07:58 pm, Lawrence D’Oliveiro wrote: >> >> > On Tuesday, December 5, 2017 at 3:39:26 AM UTC+13, Rick Johnson wrote: >> >> >> >> Sounds like your OS file associations

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-06 Thread Python
On Wed, Dec 06, 2017 at 10:35:58AM +1100, Steve D'Aprano wrote: > On Tue, 5 Dec 2017 07:58 pm, Lawrence D’Oliveiro wrote: > > > On Tuesday, December 5, 2017 at 3:39:26 AM UTC+13, Rick Johnson wrote: > >> > >> Sounds like your OS file associations are all botched-up ... > > > > Linux doesn’t do “

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-05 Thread Steve D'Aprano
On Tue, 5 Dec 2017 07:58 pm, Lawrence D’Oliveiro wrote: > On Tuesday, December 5, 2017 at 3:39:26 AM UTC+13, Rick Johnson wrote: >> >> Sounds like your OS file associations are all botched-up ... > > Linux doesn’t do “OS file associations”. Then how does my Linux box know that when I double-cl

Re: Please tell me how to execute python file in Ubuntu by double clicking on file.

2017-12-05 Thread Jason
On Monday, December 4, 2017 at 4:49:11 AM UTC-5, dhananjays...@gmail.com wrote: > Respected Sir/Mam, > I am Dhananjay Singh,Student of IIIT Manipur. Sir/Mam when i am > double click in python program (Dhananjay.py),it is opening in Text Editor by > Default in Ubuntu.I want to run this pro

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-05 Thread Rick Johnson
On Tuesday, December 5, 2017 at 2:58:44 AM UTC-6, Lawrence D'Oliveiro wrote: > On Tuesday, December 5, 2017 at 3:39:26 AM UTC+13, Rick Johnson wrote: > > > > Sounds like your OS file associations are all botched-up ... > > Linux doesn't do "OS file associations". True. But i'm not convinced that f

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-05 Thread Rustom Mody
On Tuesday, December 5, 2017 at 2:28:44 PM UTC+5:30, Lawrence D’Oliveiro wrote: > On Tuesday, December 5, 2017 at 3:39:26 AM UTC+13, Rick Johnson wrote: > > > > Sounds like your OS file associations are all botched-up ... > > Linux doesn’t do “OS file associations”. From a strict pov thats right

Re: Please tell me how to execute python file in Ubuntu by double clicking on file.

2017-12-04 Thread Thomas Jollans
On 05/12/17 01:03, Michael Torrie wrote: > On 12/04/2017 04:49 AM, Thomas Jollans wrote: >> On 2017-12-04 10:48, dhananjaysingh091...@gmail.com wrote: >>> Respected Sir/Mam, >>> I am Dhananjay Singh,Student of IIIT Manipur. Sir/Mam when i am >>> double click in python program (Dhananjay.py

Re: Please tell me how to execute python file in Ubuntu by double clicking on file.

2017-12-04 Thread Michael Torrie
On 12/04/2017 04:49 AM, Thomas Jollans wrote: > On 2017-12-04 10:48, dhananjaysingh091...@gmail.com wrote: >> Respected Sir/Mam, >> I am Dhananjay Singh,Student of IIIT Manipur. Sir/Mam when i am >> double click in python program (Dhananjay.py),it is opening in Text Editor >> by Default i

Re: Please tell me how to execute python file in Ubuntu by double clicking on file.

2017-12-04 Thread Rick Johnson
On Monday, December 4, 2017 at 3:49:11 AM UTC-6, dhananjays...@gmail.com wrote: > I am Dhananjay Singh,Student of IIIT Manipur. Sir/Mam when > i am double click in python program (Dhananjay.py),it is > opening in Text Editor by Default in Ubuntu.I want to run > this program when i double click on i

Re: Please tell me how to execute python file in Ubuntu by double clicking on file.

2017-12-04 Thread Thomas Jollans
On 2017-12-04 10:48, dhananjaysingh091...@gmail.com wrote: > Respected Sir/Mam, > I am Dhananjay Singh,Student of IIIT Manipur. Sir/Mam when i am > double click in python program (Dhananjay.py),it is opening in Text Editor by > Default in Ubuntu.I want to run this program when i double cl

Please tell me how to execute python file in Ubuntu by double clicking on file.

2017-12-04 Thread dhananjaysingh091298
Respected Sir/Mam, I am Dhananjay Singh,Student of IIIT Manipur. Sir/Mam when i am double click in python program (Dhananjay.py),it is opening in Text Editor by Default in Ubuntu.I want to run this program when i double click on it as any *.Exe file executes as in Window. Sir please help