tags 253153 patch
thanks

Package: alsaplayer-gtk
Version: 0.99.76-0.3
Severity: wishlist
Tags: patch

Hi!

I wanted to report this bug separatly for alsaplayer-gtk, but than I
noticed same report for alsaplayer-text, so adding more info to this bug
and not creating duplicate...

Request is simple: please add nametemplate entries to mailcap file for
alsaplayer-(gtk|text).

Reason: alsaplayer seems to only use filename extension to detect file
type.  It does not play file in supported format, if it has incorrect or no
extension.  Problem can occur, when you open/play file using run-mailcap
script (e.g. from mc).  If filename contains dangerous characters (e.g.
"'"), run-mailcap creates randomly-named symlink in /tmp pointing to
original file and uses that link as argument for started viewer/editor.
Since such symlink has no extension, alsaplayer refuses to play it.  If
nametemplate is provided in mailcap file, run-mailcap will add specified
extension to created symlink, which makes alsaplayer happy ;).

Attached updated mailcap file for alsaplayer-gtk.  Same changes can be
applied for alsaplayer-text.

th.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=sk_SK, LC_CTYPE=sk_SK (charmap=ISO-8859-2)

Versions of packages alsaplayer-gtk depends on:
ii  alsaplayer-common        0.99.76-0.3     PCM player designed for ALSA (comm
ii  libc6                    2.3.2.ds1-22    GNU C Library: Shared libraries an
ii  libgcc1                  1:3.4.3-13      GCC support library
ii  libglib1.2               1.2.10-9        The GLib library of C routines
ii  libgtk1.2                1.2.10-17       The GIMP Toolkit set of widgets fo
ii  libstdc++5               1:3.3.5-13      The GNU Standard C++ Library v3
ii  libx11-6                 4.3.0.dfsg.1-14 X Window System protocol client li
ii  libxext6                 4.3.0.dfsg.1-14 X Window System miscellaneous exte
ii  libxi6                   4.3.0.dfsg.1-14 X Window System Input extension li
ii  xlibmesa-gl [libgl1]     4.3.0.dfsg.1-14 Mesa 3D graphics library [XFree86]
ii  xlibs                    4.3.0.dfsg.1-14 X Keyboard Extension (XKB) configu

-- no debconf information

audio/mpeg; alsaplayer -i gtk '%s'; test=test "$DISPLAY" != ""; 
nametemplate=%s.mp3; priority=7
audio/mpegurl; alsaplayer -i gtk '%s'; test=test "$DISPLAY" != ""; 
nametemplate=%s.m3u; priority=7
audio/x-scpls; alsaplayer -i gtk '%s'; test=test "$DISPLAY" != ""; 
nametemplate=%s.pls; priority=7
audio/x-wav; alsaplayer -i gtk '%s'; test=test "$DISPLAY" != ""; 
nametemplate=%s.wav; priority=7
application/x-ogg; alsaplayer -i gtk '%s'; test=test "$DISPLAY" != ""; 
nametemplate=%s.ogg; priority=7
application/ogg; alsaplayer -i gtk '%s'; test=test "$DISPLAY" != ""; 
nametemplate=%s.ogg; priority=7
audio/x-flac; alsaplayer -i gtk '%s'; test=test "$DISPLAY" != ""; 
nametemplate=%s.flac; priority=7
application/x-flac; alsaplayer -i gtk '%s'; test=test "$DISPLAY" != ""; 
nametemplate=%s.flac; priority=7

Reply via email to