Results 1 to 10 of 10

Thread: HOWTO: kprinter style printing dialogs for GNOME

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    HOWTO: kprinter style printing dialogs for GNOME

    Q: How do I get a nice printing dialog for non-GNOME applications?

    A: Yeah, it is annoying figuring out a good way to print from like Firefox or xpdf. They have super-primitive printing systems, no way to configure printer properties, etc. KDE has a program called kprinter, which you can tell other apps to print with. Programs like firefox are configured to send kprinter its print jobs, and kprinter presents you with a cool dialog that you can configure # copies, printer settings, etc. GNOME currently has no such feature, but they're working on such a system for the next GNOME release.

    Though GNOME has no built-in printing managers (unlike KDE with kprinter), you have a few choices:


    1. install kprinter from KDE.
    Simply install kdeprint with apt or synaptic. Instruct your program to issue the command kprinter to print. I do not recommend this solution because you need to initialize KDE libs every time you print, which could be time-consuming on older systems.

    2. Use the X Printing Panel.
    Use apt or synaptic to install xpp. This is non-desktop-environment specific, and therefore looks plain and ugly inside GNOME. Nevertheless, it's a great printing program. Use in the same fashion as kprinter: set it as the printing command.

    3. Use gtklp.
    Use apt or synaptic to install gtklp. This is a GTK program, so it'll "fit in" with the rest of your GNOME. I recommend this program. Use in same fashion as others.

  2. #2
    Join Date
    Oct 2004
    Location
    behind you
    Beans
    43
    Distro
    Edgy Eft Testing

    Re: HOWTO: kprinter style printing dialogs for GNOME

    hello jdong. thanks for this perfect howto. everything now works fine. i found a little typo though. one has to install the package kdeprint, not kde-print
    ...teaching statistics to kangaroos...

  3. #3
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: kprinter style printing dialogs for GNOME

    Quote Originally Posted by drunken-wallaby
    hello jdong. thanks for this perfect howto. everything now works fine. i found a little typo though. one has to install the package kdeprint, not kde-print
    Oops! Sorry! Gentoo, Fedora, and SuSE (the distros I "grew up" with) have a lot of memories still burned into me. It'll take me a while to get over that!
    Quote Originally Posted by tuxradar
    Linux's audio architecture is more like the layers of the Earth's crust than the network model, with lower levels occasionally erupting on to the surface, causing confusion and distress, and upper layers moving to displace the underlying technology that was originally hidden

  4. #4
    Join Date
    Nov 2004
    Location
    Ottawa, Canada
    Beans
    130
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: kprinter style printing dialogs for GNOME

    gtklp worked for me! Thanks very much!

    Now all I have to do is change the source code so that it has the GNOME 2.6+ file dialog. Oh, and drag and drop. And GnomeVFS.

    All the previous file selectors are butt-ugly.

  5. #5
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: kprinter style printing dialogs for GNOME

    Please let us know if you do get those patches working!
    Quote Originally Posted by tuxradar
    Linux's audio architecture is more like the layers of the Earth's crust than the network model, with lower levels occasionally erupting on to the surface, causing confusion and distress, and upper layers moving to displace the underlying technology that was originally hidden

  6. #6
    Join Date
    Nov 2004
    Location
    Ottawa, Canada
    Beans
    130
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: kprinter style printing dialogs for GNOME

    Well... it's a bit slow going.

    I've never coded before with GTK+, or used Anjuta, or ever done development on Free software before for that matter, so there's a bit of learning taking place.
    Now that I've discovered DevHelp, I'm a lot happier.

    Also, it looks like they've simpified the interface a LOT with GTK+ 2.4.0.
    For the block of code that I'm currently working on, 11 gtk_blah_blah_blah commands have been reduced to 3, while providing the same functionality.

  7. #7
    Join Date
    Nov 2004
    Location
    Ottawa, Canada
    Beans
    130
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: kprinter style printing dialogs for GNOME

    If this works (it looks promising) I'll buy you a beer or something, jdong! Do you have a PayPal account?

    I've caused myself much grief last night looking for something to print 4x6 colour photos with my HP PSC 1210.
    Gimp-print does nothing at all (turns out the PSC 1210 isn't supported -- the bar goes across the screen, status changes to "sending 24125435 bytes..." and then switches to 0 jobs), and everything else leaves huge borders, when I want NO border (or very little, at most)!

    It's frustrating to the point where we're going to re-install Windows if it doesn't work -- as a dual-boot, of course.

  8. #8

    Re: HOWTO: kprinter style printing dialogs for GNOME

    I have problems installing a HP Z11 printer and a Creative Audigy 2 soundcard. Do you knot where to look for answers? Thanks!

  9. #9
    Join Date
    Oct 2005
    Location
    Aotearoa
    Beans
    75
    Distro
    Ubuntu Development Release

    Re: HOWTO: kprinter style printing dialogs for GNOME

    thanks for this howto. I was delighted to get a nice print dialog out of Xemacs with this:

    Code:
    (custom-set-variables
     '(lpr-command "gtklp")
     '(ps-lpr-command "gtklp")
    )
    krpinter was very slow compared - it would keep xemacs tied up until the print job was finished.

    @herror: that's not the delicate odour of linkspam i detect, is it?
    Last edited by xurizaemon; May 22nd, 2007 at 04:34 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •