LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Python warning:incomplete entry line 43 /etc/mailcap (http://www.linuxquestions.org/questions/debian-26/python-warning-incomplete-entry-line-43-etc-mailcap-515152/)

kinematic 12-31-2006 10:35 AM

Python warning:incomplete entry line 43 /etc/mailcap
 
Hi all.
For torrent downloading i use Bittornado-gui wich has never given me a problem until today.
I wanted to start a download and got this message:Python warning:incomplete entry line 43 /etc/mailcap ignored.
i took a look at it but i don't know what wrong with line 43.
this is the /etc/mailcap file so if anyone can take a look i would appreciate it.
Quote:

###############################################################################
#
# MIME types and programs that process those types
#
# Much of this file is generated automatically by the program "update-mime".
# Please see the "update-mime" man page for more information.
#
# Users can add their own rules if they wish by creating a ".mailcap"
# file in their home directory. Entries included there will take
# precedence over those listed here.
#
###############################################################################


###############################################################################
#
# User section follows: Any entries included in this section will take
# precedence over those created by "update-mime". DO NOT CHANGE the
# "User Section Begins" and "User Section Ends" lines, or anything outside
# of this section!
#

# ----- User Section Begins ----- #
# ----- User Section Ends ----- #

###############################################################################

text/plain; less '%s'; needsterminal
application/vnd.sun.xml.calc; soffice -calc '%s'; edit=soffice -calc '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Spreadsheet"; nametemplate=%s.sxc
application/vnd.sun.xml.calc.template; soffice -calc '%s'; edit=soffice -calc '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Spreadsheet Template"; nametemplate=%s.stc
application/vnd.sun.xml.draw; soffice -draw '%s'; edit=soffice -draw '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Drawing"; nametemplate=%s.sxd
application/vnd.sun.xml.draw.template; soffice -draw '%s'; edit=soffice -draw '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Drawing Template"; nametemplate=%s.std
application/vnd.sun.xml.impress; soffice -impress '%s'; edit=soffice -impress '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Presentation"; nametemplate=%s.sxi
application/vnd.sun.xml.impress.template; soffice -impress '%s'; edit=soffice -impress '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Presentation Template"; nametemplate=%s.sti
application/vnd.sun.xml.writer; soffice -writer '%s'; edit=soffice -writer '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Text Document"; nametemplate=%s.sxw
application/vnd.sun.xml.writer.global; soffice -writer '%s'; edit=soffice -writer '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Master Document"; nametemplate=%s.sxg
application/vnd.sun.xml.writer.template; soffice -writer '%s'; edit=soffice -writer '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Text Document Template"; nametemplate=%s.stw
video/mpeg; xine '%s'; description="MPEG Video"; test=test -n "$DISPLAY"
application/x-bittorrent; /usr/bin/btdownloadgui --responsefile '%s'; test=test -n "$DISPLAY"
application/x-bittorrent; /usr/bin/btdownloadcurses --responsefile '%s'; test=test -z "$DISPLAY"; needsterminal
application/x-bittorrent; /usr/bin/btdownloadcurses --responsefile '%s'; test=test -z "$DISPLAY"; needsterminal
application/x-emerald-theme
ext: emerald
application/pdf; evince '%s'; test=test -n "$DISPLAY" ; nametemplate=%s.pdf
application/postscript; evince '%s'; test=test -n "$DISPLAY" ; nametemplate=%s.ps
application/x-arj; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /usr/bin/arj
application/x-bzip; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY"
application/x-bzip-compressed-tar; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /usr/bin/bzip2
application/x-compress; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY"
application/x-compressed-tar; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY"
application/x-gzip; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY"
application/x-java-archive; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY"
application/x-lha; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /usr/bin/lha
application/x-lzop; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /bin/lzop
application/x-lzop-compressed-tar; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /bin/lzop
application/x-rar; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /usr/bin/unrar -o -e /usr/bin/rar
application/x-rar-compressed; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /usr/bin/unrar -o -e /usr/bin/rar
application/x-stuffit; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY"
application/x-tar; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY"
application/zip; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /usr/bin/unzip
application/x-zoo; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /usr/bin/zoo
text/html; /usr/bin/firefox '%s'; description=HTML Text; test=test -n "$DISPLAY"; nametemplate=%s.html
text/xml; /usr/bin/firefox '%s'; description=XML Text; test=test -n "$DISPLAY"; nametemplate=%s.xml
application/x-bittorrent; /usr/bin/gnome-btdownload '%s'; test=test -n "$DISPLAY"
application/x-troff-man; /usr/bin/nroff -mandoc -Tlatin1; copiousoutput; print=/usr/bin/nroff -mandoc -Tlatin1 | print text/plain:-
application/x-ogg; /usr/bin/gmplayer '%s'; description="OggVorbis Audio"
application/ogg; /usr/bin/gmplayer '%s'; description="OggVorbis Audio"
audio/mpeg; /usr/bin/gmplayer '%s'; description="MPEG Audio Format"
audio/x-mpegurl; /usr/bin/gmplayer '%s'; description="Icecast Playlists"
audio/x-ms-wax; /usr/bin/gmplayer '%s'; description="Audio Format"
audio/x-ms-wma; /usr/bin/gmplayer '%s'; description="Audio Format"
audio/x-pls; /usr/bin/gmplayer '%s'; description="MP3 ShoutCast/IceCast Playlist"
audio/x-scpls; /usr/bin/gmplayer '%s'; description="Shoutcast Playlists"
audio/x-wav; /usr/bin/gmplayer '%s'; description="Waveform Microsoft Wave/RIFF"
video/mpeg; /usr/bin/gmplayer '%s'; description="MPEG Video Format"; test=test -n "$DISPLAY"
video/quicktime; /usr/bin/gmplayer '%s'; description="Apple Quicktime Video"; test=test -n "$DISPLAY"
video/x-mpeg2; /usr/bin/gmplayer '%s'; description="MPEG Video"; test=test -n "$DISPLAY"
video/x-mpeg; /usr/bin/gmplayer '%s'; description="MPEG 2 Video"; test=test -n "$DISPLAY"
video/x-ms-afs; /usr/bin/gmplayer '%s'; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
video/x-ms-asf; /usr/bin/gmplayer '%s'; description="MS ASF video"; test=test -n "$DISPLAY"
video/x-msvideo; /usr/bin/gmplayer '%s'; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
video/x-ms-wma; /usr/bin/gmplayer '%s'; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
video/x-ms-wmv; /usr/bin/gmplayer '%s'; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
video/x-ms-wmx; /usr/bin/gmplayer '%s'; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
video/x-ms-wvx; /usr/bin/gmplayer '%s'; description="Audio Video Interleave - Microsoft"; test=test -n "$DISPLAY"
application/vnd.oasis.opendocument.database; soffice -base '%s'; edit=soffice -base '%s'; test=test "$DISPLAY" != "" ;description="OpenDocument Database"; nametemplate=%s.odb
application/vnd.oasis.opendocument.spreadsheet; soffice -calc '%s'; edit=soffice -calc '%s'; test=test "$DISPLAY" != "" ;description="OpenDocument Spreadsheet"; nametemplate=%s.ods
application/vnd.oasis.opendocument.spreadsheet-template; soffice -calc '%s'; edit=soffice -calc '%s'; test=test "$DISPLAY" != "" ;description="OpenDocument Spreadsheet Template"; nametemplate=%s.ots
application/vnd.oasis.opendocument.chart; soffice -calc '%s'; edit=soffice -calc '%s'; test=test "$DISPLAY" != "" ;description="OpenDocument Chart"; nametemplate=%s.odc
application/vnd.stardivision.calc; soffice -calc '%s';edit=soffice -calc '%s';test=test "$DISPLAY" != "" ;description="StarCalc 5.0"; nametemplate=%s.sdc
application/vnd.stardivision.chart; soffice -calc '%s'; edit=soffice -calc '%s'; test=test "$DISPLAY" != "" ; description="StarChart 5.0"; nametemplate=%s.sds
application/vnd.oasis.opendocument.graphics; soffice -draw '%s'; edit=soffice -draw '%s'; test=test "$DISPLAY" != "" ;description="OpenDocument Drawing"; nametemplate=%s.odg
application/vnd.oasis.opendocument.graphics-template; soffice -draw '%s'; edit=soffice -draw '%s'; test=test "$DISPLAY" != "" ;description="OpenDocument Drawing Template"; nametemplate=%s.otg
application/vnd.stardivision.draw; soffice -draw '%s'; edit=soffice -draw '%s'; test=test "$DISPLAY" != "" ; description="StarDraw 5.0"; nametemplate=%s.sda
application/vnd.oasis.opendocument.presentation; soffice -impress '%s'; edit=soffice -impress '%s'; test=test "$DISPLAY" != "" ;description="OpenDocument Presentation"; nametemplate=%s.odp
application/vnd.oasis.opendocument.presentation-template; soffice -impress '%s'; edit=soffice -impress '%s'; test=test "$DISPLAY" != "" ;description="OpenDocument Presentation Template"; nametemplate=%s.otp
application/vnd.stardivision.impress; soffice -impress '%s'; edit=soffice -impress '%s'; test=test "$DISPLAY" != "" ; description="StarImpress 5.0"; nametemplate=%s.sdd
application/vnd.oasis.opendocument.formula; soffice -math '%s'; edit=soffice -math '%s'; test=test "$DISPLAY" != "" ;description="OpenDocument Formula"; nametemplate=%s.odf
application/vnd.stardivision.math; soffice -math '%s'; edit=soffice -math '%s'; test=test "$DISPLAY" != "" ; description="StarMath 5.0"; nametemplate=%s.sdf
application/vnd.oasis.opendocument.text; soffice -writer '%s'; edit=soffice -writer '%s'; test=test "$DISPLAY" != "" ;description="OpenDocument Text"; nametemplate=%s.odt
application/vnd.oasis.opendocument.text-template; soffice -writer '%s'; edit=soffice -writer '%s'; test=test "$DISPLAY" != "" ;description="OpenDocument Text Template"; nametemplate=%s.ott
application/vnd.oasis.opendocument.text-web; ooweb '%s'; edit=ooweb '%s'; test=test "$DISPLAY" != "" ;description="OpenDocument HTML Document Template"; nametemplate=%s.oth
application/vnd.oasis.opendocument.text-master; soffice -writer '%s'; edit=soffice -writer '%s'; test=test "$DISPLAY" != "" ;description="OpenDocument Master Document"; nametemplate=%s.odm
application/vnd.stardivision.writer-global; soffice -writer '%s'; edit=soffice -writer '%s'; test=test "$DISPLAY" != "" ; description="StarWriter 5.0 Master Document"; nametemplate=%s.sgl
application/vnd.stardivision.writer; soffice -writer '%s'; edit=soffice -writer '%s'; test=test "$DISPLAY" != "" ; description="StarWriter 5.0"; nametemplate=%s.sdw
application/x-ogg; rhythmbox '%s'; description="Ogg Vorbis audio"; test=test -n "$DISPLAY"; nametemplate=%s.ogg
application/ogg; rhythmbox '%s'; description="Ogg Media"; test=test -n "$DISPLAY"
audio/x-mp3; rhythmbox '%s'; description="MP3 audio"; test=test -n "$DISPLAY"; nametemplate=%s.mp3
audio/x-scpls; rhythmbox '%s'; description="MP3 ShoutCast playlist"; test=test -n "$DISPLAY"; nametemplate=%s.pls
audio/x-mpeg; rhythmbox '%s'; description="MP3 audio"; test=test -n "$DISPLAY"
audio/mpeg; rhythmbox '%s'; description="MP3 audio"; test=test -n "$DISPLAY"
audio/x-mpegurl; rhythmbox '%s'; description="Playlist"; test=test -n "$DISPLAY"; nametemplate=%s.m3u
application/x-flac; rhythmbox '%s'; description="FLAC audio"; test=test -n "$DISPLAY"; nametemplate=%s.flac
application/x-tar; /bin/tar tvf -; print=/bin/tar tvf - | print text/plain:-; copiousoutput
application/x-gtar; /bin/tar tvzf -; print=/bin/tar tvzf - | print text/plain:-; copiousoutput
text/plain; more '%s'; needsterminal
text/plain; view '%s'; edit=vim '%s'; compose=vim '%s'; needsterminal
text/html; /usr/bin/w3m -T text/html '%s'; needsterminal; description=HTML Text; nametemplate=%s.html
video/mpeg; aaxine '%s'; needsterminal; description="MPEG Video"
video/x-msvideo; xine '%s'; description="MS Video (AVI)"; test=test -n "$DISPLAY"
video/x-ms-wmv; xine '%s'; description="MS Video (WMV)"; test=test -n "$DISPLAY"
video/quicktime; xine '%s'; description="Apple Quicktime Video"; test=test -n "$DISPLAY"
application/msexcel; soffice -calc '%s'; edit=soffice -calc '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.xls; description="Microsoft Excel Document"
application/vnd.ms-excel; soffice -calc '%s'; edit=soffice -calc '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.xls; description="Microsoft Excel Document"
application/x-msexcel; soffice -calc '%s'; edit=soffice -calc '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.xls; description="Microsoft Excel Document"
application/mspowerpoint; soffice -impress '%s'; edit=soffice -impress '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.ppt; description="Microsoft PowerPoint Document"
application/vnd.ms-powerpoint; soffice -impress '%s'; edit=soffice -impress '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.ppt; description="Microsoft PowerPoint Document"
application/x-mspowerpoint; soffice -impress '%s'; edit=soffice -impress '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.ppt; description="Microsoft PowerPoint Document"
application/msword; soffice -writer '%s'; edit=soffice -writer '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.doc; description="Microsoft Word Document"
application/vnd.ms-word; soffice -writer '%s'; edit=soffice -writer '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.doc; description="Microsoft Word Document"
application/rtf; soffice -writer '%s'; edit=soffice -writer '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.rtf; description="Rich Text Format"
text/rtf; soffice -writer '%s'; edit=soffice -writer '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.rtf; description="Rich Text Format"
application/x-msword; soffice -writer '%s'; edit=soffice -writer '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.doc; description="Microsoft Word Document"
application/wordperfect; soffice -writer '%s'; edit=soffice -writer '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.wpd; description="WordPerfect Document"
application/wordperfect5.1; soffice -writer '%s'; edit=soffice -writer '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.wpd; description="WordPerfect Document"
application/vnd.wordperfect; soffice -writer '%s'; edit=soffice -writer '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.wpd; description="WordPerfect Document"
text/html; /usr/bin/w3m -dump -T text/html '%s'; copiousoutput; description=HTML Text; nametemplate=%s.html
video/x-msvideo; aaxine '%s'; needsterminal; description="MS Video (AVI)"
video/x-ms-wmv; aaxine '%s'; needsterminal; description="MS Video (WMV)"
video/quicktime; aaxine '%s'; needsterminal; description="Apple Quicktime Video"
image/png; /usr/bin/firefox '%s'; description=PNG Image; test=test -n "$DISPLAY"; nametemplate=%s.png
image/jpeg; /usr/bin/firefox '%s'; description=JPEG Image; test=test -n "$DISPLAY"; nametemplate=%s.jpeg
image/gif; /usr/bin/firefox '%s'; description=GIF Image; test=test -n "$DISPLAY"; nametemplate=%s.gif
text/*; less '%s'; needsterminal
text/*; view '%s'; edit=vim '%s'; compose=vim '%s'; needsterminal
text/html; /usr/bin/sensible-browser '%s'; description=HTML Text; nametemplate=%s.html
text/*; more '%s'; needsterminal
application/x-debian-package; /usr/lib/mime/debian-view '%s'; needsterminal; description=Debian GNU/Linux Package; nametemplate=%s.deb
audio/basic; /usr/lib/mime/playaudio '%s'; description=Basic uLaw Audio; nametemplate=%s.au

bizzz 01-22-2007 02:56 AM

I have encountered a problem with wxDesigner as it relates to /etc/mailcap.
> In my case, a warning window popped up on startup that said:
>
> Mailcap file /etc/mailcap, line 45: incomplete entry ignored
>
> upon dismissing it, everything was fine until the next time.
>
> So, looking at /etc/mailcap, line 45, I noticed that the line
> was
>
> application/pdf: xpdf %s
>
> Mmm... All other lines have a ';' instead of the ':', so upon changing
> it, the warning went away. The interesting thing is that I never touched
> the /etc/mailcap file, so it must have come this way with the distribution.

----------------------------

sudo vim /etc/mailcap

42gg
application/x-emerald-theme --> application/x-emerald-theme;

43gg
ext: emerald --> ext; emerald -->


All times are GMT -5. The time now is 03:56 AM.