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 @clean {{g.app.homeDir}}{{sep}}tmp{{sep}}test_leo.py 2) the contents of that node are: #! /bin/env python3 print("Hello Leo shell world") 3) I save my Leo file and get the .py file created (I checked) 4) when I have tree focus on that node and press the x-run-ext button, I see in the log: exception executing script ValueError: 'bash' is not in list only 6 lines -------------------- line 214: * line 215: shell_index = words.index(shell_name) line 216: term = words[shell_index - 1] line 217: return term This is with Leo invoked via a desktop shortcut HTH, Jon N On Monday, February 20, 2023 at 1:09:22 PM UTC 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 mean here, @SegundoBob. > > Your "execute external script" is invoked while running Leo-Editor. If > you start Leo-Editor from a terminal command line, your "execute > external script" works as intended. If you start Leo-Editor by > selecting a Leo-Editor file with a browser, then your "execute external > script" does NOT work as intended. The difference is probably that > Leo-Editor does NOT have a terminal in the non-working case. > -- > Segundo Bob > segun...@gmail.com > > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/7dbbac73-9498-409d-ad0e-f3ca7085251bn%40googlegroups.com.