Your message dated Sun, 3 May 2026 15:35:17 +0200
with message-id
<CAOOnQAe9i1BnsNOTcBfFwk5=mbz5iydfppkq6qznkjrv35m...@mail.gmail.com>
and subject line closing resolved/invalid bugs
has caused the Debian Bug report #758228,
regarding please provide /usr/bin/visual
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
758228: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758228
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: kwrite
Severity: wishlist
Dear maintainer,
there already is,
- $EDITOR environment variable (honored by sensible-editor),
- as well as /usr/bin/editor (managed by debian alternatives) (honored
by sensible-editor).
- as well as /usr/bin/gnome-text-editor,
- as well as $VISUAL environment variable (honored by sensible-editor)
However, there is no,
- /usr/bin/visual (managed by debian alternatives) yet. (Hopefully in
future honored by sensible-editor.)
Please consider inclusion of the following debian/kwrite.prerm as well
as debian/kwrite.postinst, that would implement this.
You might be asking yourself, what would /usr/bin/visual be useful for?
Often Debian/Linux centric instructions to do X include "edit file
/etc/xyz with root rights". This is quite hard for newbies, because they
don't know the name of which (visual) editor came with their flavor of
Debian preinstalled.
Instead of using instructions:
sudo nano /etc/xyz
or:
kdesudo kwrite /etc/xyz
Ideally, instructions could use a generic:
sensible-su sensible-editor /etc/xyz
If the user was using a graphical environment, sensible-su would either
start gksu or kdesudo as well as whatever graphical text editor is
installed (such as kwrite). Or for non-graphical environments, it would
choose sudo as well as the installed non-visual editor (ex: nano).
I am planing on writing sensible-su as well as writing a small patch for
sensible-editor. But before, visual text editors need to provide
/usr/bin/visual.
Thank you for your consideration!
Cheers,
Patrick
-----
debian/kwrite.prerm
#!/bin/sh
set -e
case "$1" in
remove|upgrade|deconfigure)
update-alternatives --remove visual /usr/bin/kate
;;
esac
#DEBHELPER#
-----
debian/kwrite.postinst
#!/bin/sh
set -e
if [ "$1" = configure ]; then
update-alternatives \
--install /usr/bin/visual \
visual /usr/bin/kate 40 \
--slave /usr/share/man/man1/visual.1.gz \
visual.1.gz /usr/share/man/man1/kate.1.gz
fi
#DEBHELPER#
--- End Message ---
--- Begin Message ---
--
Salvo Tomaselli
I difensori della morale tradizionale sono raramente persone di cuore. Si è
tentati di pensare che essi si servano della morale come di legittimo sfogo
al loro desiderio di fare del male agli altri.
-- Bertrand Russell, Perché non sono cristiano. 1957
http://ltworf.github.io/
--- End Message ---