Package: mime-support Version: 3.51-1 Severity: wishlist When the user runs a text program that uses the mailcap system (e.g. Mutt) in GNU Screen, it is not possible to run as X11 program via the mailcap system after the X11 session has changed, because the value of $XAUTHORITY has changed. Using a fixed symlink (in a private directory, for more security) to the real X authority file, possibly depending only on the screen session, and updated via a screen wrapper, might work as a work around, but has some limitations (e.g. because several screens could be used on several displays) compared to the following suggestion.
It should be possible that the program specified in the mailcap configuration be run by a user-provided shell, typically using the $SHELL environment variable, without modifying the mailcap configuration (because this configuration may already be provided by the system, here Debian). For instance, with zsh, the .zshenv file is always sourced and could do the necessary to fix the environment. Though this is up to the various programs to do that, the mailcap specification should allow them to do that. The mailcap(5) man page currently says: The "command" field is any UNIX command ("cat %s" in the above example), and is used to specify the interpreter for the given type of message. It will be passed to the shell via the system(3) facility. but system(3) specifies that /bin/sh -c is used to run the command. The mailcap(5) man page should say: It will be executed either with the user's shell or with the system(3) facility. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.38-2-amd64 (SMP w/2 CPU cores) Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash mime-support depends on no packages. Versions of packages mime-support recommends: ii file 5.04-5+b1 Determines file type using "magic" mime-support suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org