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# -- To UNSUBSCRIBE, email to debian-qt-kde-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/53ee252d.3060...@riseup.net