Re: Command To Run External File

2023-02-20 Thread Thomas Passin
That's a good idea! I think a setting would be the Leonine way to do it. When I convert this into a Leo command, I'll look at making it happen. On Monday, February 20, 2023 at 7:06:26 PM UTC-5 SegundoBob wrote: > Thomas Passin, > > Your fix passes all my tests. > > You say that you may not alw

Re: Command To Run External File

2023-02-20 Thread SegundoBob
Thomas Passin, Your fix passes all my tests. You say that you may not always be able to find the terminal program the user wants you to use. Maybe when you fail to find any suitable terminal program, you should report this to the user and ask him to enter the pathname to the terminal program

Re: Command To Run External File

2023-02-20 Thread Thomas Passin
@mike, that was a good diagnosis. When Leo is not run from a terminal (in Linux), the process space does not include a terminal and the shell may not even be the same shell (e.g., *sh* instead of *bash*) as one might expect. I have revised the terminal-finding code for Linux to try several heu

Re: Command To Run External File

2023-02-20 Thread Thomas Passin
Oh, I understand now. Thank you. I'll see what can be done. On Monday, February 20, 2023 at 8:09:22 AM UTC-5 SegundoBob wrote: > On 2/19/23 18:25, Thomas Passin wrote: > > " but it does not work when I use the file browser Thunar to open the > > Leo-editor file". I don't understand what you m

Re: Command To Run External File

2023-02-20 Thread jkn
I am seeing something similar to SegundoBob. I also tried it with a trivial python script. To spell out the details: (I run Kubuntu Linux) Leo Log Window Leo 6.7.2-devel, devel branch, build 4e9b1569de 2023-01-25 08:35:46 -0600 Python 3.10.6, PyQt version 5.15.3 linux 1) I make a node @cl

Re: Command To Run External File

2023-02-20 Thread Segundo Bob
On 2/19/23 18:25, Thomas Passin wrote: " but it does not work when I use the file browser Thunar to open the Leo-editor file".  I don't understand what you mean here, @SegundoBob. Your "execute external script" is invoked while running Leo-Editor. If you start Leo-Editor from a terminal comma