Re: RFC: Sensible-editor sensible-utils alternative and update

2024-08-13 Thread Bastien Roucariès
Le lundi 12 août 2024, 21:05:17 UTC Richard Lewis a écrit : > Bastien Roucariès writes: > > >> b) but if im in a terminal (even if running in gnome) then i want a > >> terminal-based editor (based on what i installed) > > > > depends for me I prefer to run under emacsclient so you could do > > s

Re: RFC: Sensible-editor sensible-utils alternative and update

2024-08-12 Thread Richard Lewis
Bastien Roucariès writes: >> b) but if im in a terminal (even if running in gnome) then i want a >> terminal-based editor (based on what i installed) > > depends for me I prefer to run under emacsclient so you could do > something like > SENSIBLE_EDITOR='if [ -t 0 ]; then sensible-editor-GNOME ;

Re: RFC: Sensible-editor sensible-utils alternative and update

2024-08-12 Thread Bastien Roucariès
Le lundi 12 août 2024, 16:04:30 UTC Simon McVittie a écrit : > On Mon, 12 Aug 2024 at 08:44:51 -0700, Russ Allbery wrote: > > What this is telling me is that ideally someone should tighten the > > definition of EDITOR in Policy 11.4, which is the specification satisfied > > by sensible-editor, to m

Re: RFC: Sensible-editor sensible-utils alternative and update

2024-08-12 Thread Bastien Roucariès
Le lundi 12 août 2024, 15:44:51 UTC Russ Allbery a écrit : > Simon McVittie writes: > > > The approach to this that will work consistently is to launch the > > handler asynchronously (in the background), and not attempt to find out > > whether it has exited or not. So for example an interactive s

Re: RFC: Sensible-editor sensible-utils alternative and update

2024-08-12 Thread Simon McVittie
On Mon, 12 Aug 2024 at 08:44:51 -0700, Russ Allbery wrote: > What this is telling me is that ideally someone should tighten the > definition of EDITOR in Policy 11.4, which is the specification satisfied > by sensible-editor, to make it clear that GUI editors with these sorts of > properties are no

Re: RFC: Sensible-editor sensible-utils alternative and update

2024-08-12 Thread Russ Allbery
Simon McVittie writes: > The approach to this that will work consistently is to launch the > handler asynchronously (in the background), and not attempt to find out > whether it has exited or not. So for example an interactive shell script > might do something like this: > #!/bin/bash >

Re: RFC: Sensible-editor sensible-utils alternative and update

2024-08-12 Thread Bastien Roucariès
Le lundi 12 août 2024, 15:17:00 UTC Simon McVittie a écrit : > On Mon, 12 Aug 2024 at 14:23:51 +, Bastien Roucariès wrote: > > Yes I want sensible-editor to open kate on kde and gnome-editor on gnome. > > > > Thinks about running latex and typing e for editing, it should run the > > desktop e

Re: RFC: Sensible-editor sensible-utils alternative and update

2024-08-12 Thread Simon McVittie
On Mon, 12 Aug 2024 at 14:23:51 +, Bastien Roucariès wrote: > Yes I want sensible-editor to open kate on kde and gnome-editor on gnome. > > Thinks about running latex and typing e for editing, it should run the > desktop editor of choice. > > I do not want to change desktop user choice This

Re: RFC: Sensible-editor sensible-utils alternative and update

2024-08-12 Thread Bastien Roucariès
Le lundi 12 août 2024, 12:52:43 UTC Simon McVittie a écrit : > On Mon, 12 Aug 2024 at 12:36:37 +0100, Richard Lewis wrote: > > Bastien Roucariès writes: > > > Sensible-editor could now use EDITOR="emacsclient -n -c" and accept > > > that sh -c accept > > > > > > My goal is to create a sensible-edi

Re: RFC: Sensible-editor sensible-utils alternative and update

2024-08-12 Thread Bastien Roucariès
Le lundi 12 août 2024, 11:36:37 UTC Richard Lewis a écrit : > Bastien Roucariès writes: > > > Sensible-editor could now use EDITOR="emacsclient -n -c" and accept > > that sh -c accept > > > > My goal is to create a sensible-editor.desktop that will lauch by > > default the sensible-editor of choi

Re: RFC: Sensible-editor sensible-utils alternative and update

2024-08-12 Thread Simon McVittie
On Mon, 12 Aug 2024 at 12:36:37 +0100, Richard Lewis wrote: > Bastien Roucariès writes: > > Sensible-editor could now use EDITOR="emacsclient -n -c" and accept > > that sh -c accept > > > > My goal is to create a sensible-editor.desktop that will lauch by > > default the sensible-editor of choice

Re: RFC: Sensible-editor sensible-utils alternative and update

2024-08-12 Thread Richard Lewis
Bastien Roucariès writes: > Sensible-editor could now use EDITOR="emacsclient -n -c" and accept > that sh -c accept > > My goal is to create a sensible-editor.desktop that will lauch by > default the sensible-editor of choice > > For this I plan: > - to allow by alternative mechanism to have an s