Bug#756708: mime-support: /usr/bin/edit should point to /etc/alternatives/editor

2014-07-31 Thread Kai-Martin Knaak
Package: mime-support
Version: 3.56
Severity: normal

Dear Maintainer,

the package mime-supports installs /usr/bin/edit as a symlink
to /usr/bin/run-mailcap . However, in many cases this does not open the
the application most probably desired by the user. E.g.:
  $ edit foobar.html
would open the sensible www-browser, most likely iceweasel. The
expected behaviour would be to open an editor instead.

Suggestion:
A better link target would be /etc/alternatives/editor

---)kaimartin(---
PS: Thank you Debian maintainers for your long term efforts!

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

mime-support depends on no packages.

Versions of packages mime-support recommends:
ii  file  1:5.19-1

mime-support suggests no packages.

-- no debconf information



-- 
Kai-Martin Knaak   kn...@iqo.uni-hannover.de
Universität Hannover, Inst. f. Quantenoptiktel: +49-511-762-2895
Welfengarten 1, 30167 Hannover fax: +49-511-762-2211
GPG key: http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmkop=get


signature.asc
Description: PGP signature


Bug#756708: mime-support: /usr/bin/edit should point to /etc/alternatives/editor

2014-07-31 Thread Charles Plessy
Control: tag -1 unreproducible

Le Fri, Aug 01, 2014 at 12:48:27AM +0200, Kai-Martin Knaak a écrit :
 
 the package mime-supports installs /usr/bin/edit as a symlink
 to /usr/bin/run-mailcap . However, in many cases this does not open the
 the application most probably desired by the user. E.g.:
   $ edit foobar.html
 would open the sensible www-browser, most likely iceweasel. The
 expected behaviour would be to open an editor instead.

Hello,

on my system, the ‘edit’ command does the right thing.  Can you run it on
your system with the ‘--debug’ option ?

$ edit --debug toto.html 
 - parsing parameter toto.html
 - Reading mime.types file /home/charles/.mime.types...
   could not read /home/charles/.mime.types -- Aucun fichier ou dossier de ce 
type
 - Reading mime.types file /usr/local/etc/mime.types...
   could not read /usr/local/etc/mime.types -- Aucun fichier ou dossier de ce 
type
 - Reading mime.types file /usr/share/etc/mime.types...
   could not read /usr/share/etc/mime.types -- Aucun fichier ou dossier de ce 
type
 - Reading mime.types file /etc/mime.types...
 - extension html maps to mime-type text/html
 - Reading mailcap file /home/charles/.mailcap...
   could not read /home/charles/.mailcap -- Aucun fichier ou dossier de ce 
type
 - Reading mailcap file /etc/mailcap...
 - Reading mailcap file /usr/local/etc/mailcap...
   could not read /usr/local/etc/mailcap -- Aucun fichier ou dossier de ce 
type
 - Reading mailcap file /usr/share/etc/mailcap...
   could not read /usr/share/etc/mailcap -- Aucun fichier ou dossier de ce 
type
 - Reading mailcap file /usr/etc/mailcap...
   could not read /usr/etc/mailcap -- Aucun fichier ou dossier de ce type
Processing file toto.html of type text/html (encoding=none)...
 - checking mailcap entry text/*; view %s; edit=vim %s; compose=vim %s; 
test=test -x /usr/bin/vim; needsterminal
 - program to execute: vim %s
 - needsterminal is satisfied by stdout
 - running test: test -x /usr/bin/vim  (result=0=true)
 - executing: vim toto.html

$ file toto.html 
toto.html: HTML document, ASCII text

Have a nice day,

-- 
Charles Plessy
Tsurumi, Kanagawa, Japan


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org