Bug#619569: libreoffice: add print command to mime entries
Package: libreoffice
Version: 1:3.3.2-1
Severity: wishlist
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
printing office documents from the commandline is convenient for me,
and LibreOffice supports it with the "-p" option.
Please consider adding a "print" command to all mime entries in
/etc/mailcap. Then it is possible to type "print <office-filename>"
on the commandline to print the document.
Attached is a small patch adding a print command for LibreOffice
spreadsheets. It can be used as an example for the other office document
types.
Thanks,
Bastian
- -- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.38grog1 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libreoffice depends on:
ii liblucene2-java 2.9.3+ds1-1 Full-text search engine library fo
ii libreoffice-base 1:3.3.2-1 office productivity suite -- datab
ii libreoffice-calc 1:3.3.2-1 office productivity suite -- sprea
ii libreoffice-core 1:3.3.2-1 office productivity suite -- arch-
ii libreoffice-draw 1:3.3.2-1 office productivity suite -- drawi
ii libreoffice-filter-mobiledev 1:3.3.2-1 office productivity suite -- mobil
ii libreoffice-impress 1:3.3.2-1 office productivity suite -- prese
ii libreoffice-java-common 1:3.3.2-1 office productivity suite -- arch-
ii libreoffice-math 1:3.3.2-1 office productivity suite -- equat
ii libreoffice-report-builder-b 1:3.3.2-1 LibreOffice extension for building
ii libreoffice-writer 1:3.3.2-1 office productivity suite -- word
ii ttf-dejavu 2.33-1 Metapackage to pull in ttf-dejavu-
ii ttf-sil-gentium-basic 1.1-2 smart Unicode font families (Basic
Versions of packages libreoffice recommends:
ii ttf-liberation 1.06.0.20100721-1 Fonts with the same metrics as Tim
Versions of packages libreoffice suggests:
ii cups-bsd 1.4.6-3 Common UNIX Printing System(tm) -
ii default-jre [java5-runtime] 1:1.6-40 Standard Java or Java compatible R
ii gcj-4.4-jre [java5-runtime] 4.4.5-14 Java runtime environment using GIJ
ii gcj-jre [java5-runtime] 4:4.4.5-4 Java runtime environment using GIJ
pn gstreamer0.10-ffmpeg <none> (no description available)
pn gstreamer0.10-plugins-bad <none> (no description available)
ii gstreamer0.10-plugins-base 0.10.32-2 GStreamer plugins from the "base"
ii gstreamer0.10-plugins-good 0.10.28-2 GStreamer plugins from the "good"
pn gstreamer0.10-plugins-ugly <none> (no description available)
ii hunspell-de-de [hunspell-di 20100727-1 German dictionary for hunspell
ii hyphen-de [hyphen-hyphenati 1:3.3.0-3 German hyphenation patterns for Li
ii iceweasel 3.5.18-1 Web browser based on Firefox
ii imagemagick 8:6.6.0.4-3 image manipulation programs
ii libgl1-mesa-glx [libgl1] 7.10-4 A free implementation of the OpenG
ii libldap-2.4-2 2.4.23-7 OpenLDAP libraries
ii libpaper-utils 1.1.24 library for handling paper charact
ii libreoffice-filter-binfilte 1:3.3.2-1 office productivity suite -- legac
ii libreoffice-help-de [libreo 1:3.3.2-1 office productivity suite -- Germa
ii libreoffice-help-en-us [lib 1:3.3.2-1 office productivity suite -- Engli
ii libreoffice-kde 1:3.3.2-1 office productivity suite -- KDE i
ii libreoffice-l10n-de [libreo 1:3.3.2-1 office productivity suite -- Germa
pn libreoffice-officebean <none> (no description available)
ii libsane 1.0.22-2 API library for scanners
ii libxrender1 1:0.9.6-1 X Rendering Extension client libra
ii menu 2.1.45 generates programs menu for all me
ii myspell-en-us [myspell-dict 1:3.3.0-3 English_american dictionary for my
pn mythes-thesaurus <none> (no description available)
pn openclipart-libreoffice <none> (no description available)
ii openjdk-6-jre [java5-runtim 6b18-1.8.7-2 OpenJDK Java runtime, using Hotspo
pn pstoedit <none> (no description available)
ii sun-java6-jre [java5-runtim 6.24-1 Sun Java(TM) Runtime Environment (
ii unixodbc 2.2.14p2-2 ODBC tools libraries
Versions of packages libreoffice-core depends on:
ii fontconfig 2.8.0-2.1 generic font configuration library
ii libatk1.0-0 1.32.0-1+sid1 The ATK accessibility toolkit
ii libc6 2.11.2-13 Embedded GNU C Library: Shared lib
ii libcairo2 1.10.2-4 The Cairo 2D vector graphics libra
ii libcurl3-gnutls 7.21.4-1 Multi-protocol file transfer libra
ii libdb5.1 5.1.25-1 Berkeley v5.1 Database Libraries [
ii libexpat1 2.0.1-7 XML parsing C library - runtime li
ii libfontconfig1 2.8.0-2.1 generic font configuration library
ii libfreetype6 2.4.4-1 FreeType 2 font engine, shared lib
ii libgcc1 1:4.5.2-7 GCC support library
ii libgdk-pixbuf2.0 2.22.1-1+sid1 GDK Pixbuf library
ii libglib2.0-0 2.28.2-1 The GLib library of C routines
ii libgraphite3 1:2.3.1-0.2 SILGraphite - a "smart font" rende
ii libgstreamer-plu 0.10.32-2 GStreamer libraries from the "base
ii libgstreamer0.10 0.10.32-6 Core GStreamer libraries and eleme
ii libgtk2.0-0 2.24.3-1~sid1 The GTK+ graphical user interface
ii libhunspell-1.2- 1.2.14-4 spell checker and morphological an
ii libhyphen0 2.7.1-4 ALTLinux hyphenation library - sha
ii libice6 2:1.0.7-1 X11 Inter-Client Exchange library
ii libicu44 4.4.2-2 International Components for Unico
ii libjpeg62 6b1-1 The Independent JPEG Group's JPEG
ii libmythes-1.2-0 2:1.2.1-1 simple thesaurus library
ii libneon27-gnutls 0.29.5-3 An HTTP and WebDAV client library
ii libnspr4-0d 4.8.7-2 NetScape Portable Runtime Library
ii libnss3-1d 3.12.9.with.ckbi.1.82-1 Network Security Service libraries
ii libpango1.0-0 1.28.3-2~sid1 Layout and rendering of internatio
ii libpng12-0 1.2.44-2 PNG library - runtime
ii librdf0 1.0.13-2 Redland Resource Description Frame
ii libreoffice-comm 1:3.3.2-1 office productivity suite -- arch-
ii libsm6 2:1.2.0-1 X11 Session Management library
ii libssl0.9.8 0.9.8o-5 SSL shared libraries
ii libstdc++6 4.5.2-7 The GNU Standard C++ Library v3
ii libtextcat0 2.2-9 Language detection library
ii libx11-6 2:1.4.1-5 X11 client-side library
ii libxaw7 2:1.0.9-2 X11 Athena Widget library
ii libxext6 2:1.2.0-2 X11 miscellaneous extension librar
ii libxinerama1 2:1.1.1-1 X11 Xinerama extension library
ii libxml2 2.7.8.dfsg-2 GNOME XML library
ii libxrandr2 2:1.3.1-1 X11 RandR extension library
ii libxrender1 1:0.9.6-1 X Rendering Extension client libra
ii libxslt1.1 1.1.26-7 XSLT 1.0 processing library - runt
ii libxt6 1:1.1.1-1 X11 toolkit intrinsics library
ii ttf-opensymbol 2:2.4.3+LibO3.3.2-1 OpenSymbol TrueType font
ii ure 1.7.0+LibO3.3.2-1 LibreOffice UNO runtime environmen
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages libreoffice-writer depends on:
ii libc6 2.11.2-13 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.5.2-7 GCC support library
ii libicu44 4.4.2-2 International Components for Unico
ii libreoffice-base-core 1:3.3.2-1 office productivity suite -- share
ii libreoffice-core 1:3.3.2-1 office productivity suite -- arch-
ii libstdc++6 4.5.2-7 The GNU Standard C++ Library v3
ii libwpd-0.9-9 0.9.1-2 Library for handling WordPerfect d
ii libwpg-0.2-2 0.2.0-4 WordPerfect graphics import/conver
ii libwps-0.2-2 0.2.0-3 Works text file format import filt
ii ure 1.7.0+LibO3.3.2-1 LibreOffice UNO runtime environmen
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages libreoffice-writer recommends:
ii default-jre [java5-runtime] 1:1.6-40 Standard Java or Java compatible R
ii gcj-4.4-jre [java5-runtime] 4.4.5-14 Java runtime environment using GIJ
ii gcj-jre [java5-runtime] 4:4.4.5-4 Java runtime environment using GIJ
ii libreoffice-emailmerge 1:3.3.2-1 office productivity suite -- email
ii libreoffice-filter-binfilte 1:3.3.2-1 office productivity suite -- legac
ii libreoffice-java-common 1:3.3.2-1 office productivity suite -- arch-
ii libreoffice-math 1:3.3.2-1 office productivity suite -- equat
ii openjdk-6-jre [java5-runtim 6b18-1.8.7-2 OpenJDK Java runtime, using Hotspo
ii sun-java6-jre [java5-runtim 6.24-1 Sun Java(TM) Runtime Environment (
Versions of packages libreoffice-writer suggests:
ii libreoffice-base 1:3.3.2-1 office productivity suite -- datab
pn libreoffice-gcj <none> (no description available)
Versions of packages libreoffice-calc depends on:
ii libc6 2.11.2-13 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.5.2-7 GCC support library
ii libreoffice-base-core 1:3.3.2-1 office productivity suite -- share
ii libreoffice-core 1:3.3.2-1 office productivity suite -- arch-
ii libstdc++6 4.5.2-7 The GNU Standard C++ Library v3
ii lp-solve 5.5.0.13-7 Solve (mixed integer) linear progr
ii ure 1.7.0+LibO3.3.2-1 LibreOffice UNO runtime environmen
Versions of packages libreoffice-base depends on:
ii default-jre [java5-run 1:1.6-40 Standard Java or Java compatible R
ii gcj-4.4-jre [java5-run 4.4.5-14 Java runtime environment using GIJ
ii gcj-jre [java5-runtime 4:4.4.5-4 Java runtime environment using GIJ
ii libc6 2.11.2-13 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.5.2-7 GCC support library
ii libhsqldb-java 1.8.0.10-9 Java SQL database engine
ii libreoffice-base-core 1:3.3.2-1 office productivity suite -- share
ii libreoffice-core 1:3.3.2-1 office productivity suite -- arch-
ii libreoffice-java-commo 1:3.3.2-1 office productivity suite -- arch-
ii libstdc++6 4.5.2-7 The GNU Standard C++ Library v3
ii openjdk-6-jre [java5-r 6b18-1.8.7-2 OpenJDK Java runtime, using Hotspo
ii sun-java6-jre [java5-r 6.24-1 Sun Java(TM) Runtime Environment (
ii ure 1.7.0+LibO3.3.2-1 LibreOffice UNO runtime environmen
Versions of packages libreoffice-base suggests:
pn libmyodbc | odbc-pos <none> (no description available)
pn libmysql-java | libp <none> (no description available)
pn libreoffice-gcj <none> (no description available)
ii libreoffice-report-b 1:1.2.1+LibO3.3.2-1 LibreOffice extension for building
ii unixodbc 2.2.14p2-2 ODBC tools libraries
Versions of packages libreoffice-impress depends on:
ii libc6 2.11.2-13 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.5.2-7 GCC support library
ii libreoffice-core 1:3.3.2-1 office productivity suite -- arch-
ii libreoffice-draw 1:3.3.2-1 office productivity suite -- drawi
ii libstdc++6 4.5.2-7 The GNU Standard C++ Library v3
ii ure 1.7.0+LibO3.3.2-1 LibreOffice UNO runtime environmen
Versions of packages libreoffice-math depends on:
ii libc6 2.11.2-13 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.5.2-7 GCC support library
ii libreoffice-core 1:3.3.2-1 office productivity suite -- arch-
ii libstdc++6 4.5.2-7 The GNU Standard C++ Library v3
ii ttf-opensymbol 2:2.4.3+LibO3.3.2-1 OpenSymbol TrueType font
ii ure 1.7.0+LibO3.3.2-1 LibreOffice UNO runtime environmen
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk2MWOQACgkQeBwlBDLsbz7SFgCggM8s53CUJqcZinrMJzzpLMEy
+tEAn3qV/Av9I0s7U19oh6HWxdURcMbF
=5xTh
-----END PGP SIGNATURE-----
--- libreoffice-calc.mime.orig 2011-03-25 09:35:03.134077881 +0100
+++ libreoffice-calc.mime 2011-03-25 09:50:07.679231471 +0100
@@ -25,7 +25,7 @@
# OASIS OpenDocument Format
application/vnd.oasis.opendocument.chart; soffice -no-oosplash -calc '%s'; edit=soffice -no-oosplash -calc '%s'; test=test -n "$DISPLAY"; description="OpenDocument Chart"; nametemplate=%s.odc; priority=9
-application/vnd.oasis.opendocument.spreadsheet; soffice -no-oosplash -calc '%s'; edit=soffice -no-oosplash -calc '%s'; test=test -n "$DISPLAY"; description="OpenDocument Spreadsheet"; nametemplate=%s.ods; priority=9
+application/vnd.oasis.opendocument.spreadsheet; soffice -no-oosplash -calc '%s'; edit=soffice -no-oosplash -calc '%s'; print=soffice -no-oosplash -calc -p '%s'; test=test -n "$DISPLAY"; description="OpenDocument Spreadsheet"; nametemplate=%s.ods; priority=9
application/vnd.oasis.opendocument.spreadsheet-template; soffice -no-oosplash -calc '%s'; edit=soffice -no-oosplash -calc '%s'; test=test -n "$DISPLAY"; description="OpenDocument Spreadsheet Template"; nametemplate=%s.ots; priority=9
# LibreOffice 1.0
Reply to: