" 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. The intended use is to select - within Leo - a node in an external file, and have it run in (or get launched by) a terminal. How does the file browser fit into this? Would you explain it for me with some more detail?
To launch a file with some processor like say Ruby or Python, and have the terminal stay open after the program finishes, the only reliable way I have found so in Linux far is to open a terminal with a command that will open a shell which in turn will launch the program and wait for user input (so the terminal will stay open). If you are trying to include a third program (the file browser) in that chain, I suppose I'm not surprised if it won't work. The command line to be passed to the terminal would probably need to be pretty complicated (with respect to quoting especially. On Sunday, February 19, 2023 at 8:02:47 PM UTC-5 [email protected] wrote: > > > On Sun, Feb 19, 2023, 17:02 SegundoBob <[email protected]> wrote: > >> Your "Execute script" code works well for me when I use it from a >> Leo-Editor file that I open from a terminal, but it does not work when I >> use the file browser Thunar to open the Leo-editor file. >> >> When I invoke your script from a Leo-Editor file opened by Thunar, I get >> this error message even when the script is not a Bash script: >> > > My first feeling here is that there are some commands or variables that > would be populated in an interactive shell session's environment but do not > exist in a non-interactive shell session. > > I will take time tonight to try this out myself. I haven't had a need to > use Leo in a long time but to help debug this issue I will make that > change. I'm not great at Python, but I do understand some of the > complexities of making things work on Linux. > > Mike > >> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/44d79280-0672-40e5-81c6-28c92df38e09n%40googlegroups.com.
