Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old October 27th, 2004   #1
jdong
Ultimate Coffee Grinder
 
jdong's Avatar
 
Join Date: Oct 2004
Location: Cambridge. MA
Beans: 5,063
Ubuntu 8.10 Intrepid Ibex
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.
jdong is offline   Reply With Quote
Old October 29th, 2004   #2
drunken-wallaby
5 Cups of Ubuntu
 
Join Date: Oct 2004
Location: behind you
Beans: 43
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...
drunken-wallaby is offline   Reply With Quote
Old November 9th, 2004   #3
mr_ed
Gee! These Aren't Roasted!
 
Join Date: Nov 2004
Location: Ottawa, Canada
Beans: 130
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.
mr_ed is offline   Reply With Quote
Old November 9th, 2004   #4
jdong
Ultimate Coffee Grinder
 
jdong's Avatar
 
Join Date: Oct 2004
Location: Cambridge. MA
Beans: 5,063
Ubuntu 8.10 Intrepid Ibex
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!
jdong is offline   Reply With Quote
Old November 11th, 2004   #5
mr_ed
Gee! These Aren't Roasted!
 
Join Date: Nov 2004
Location: Ottawa, Canada
Beans: 130
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.
mr_ed is offline   Reply With Quote
Old November 12th, 2004   #6
jdong
Ultimate Coffee Grinder
 
jdong's Avatar
 
Join Date: Oct 2004
Location: Cambridge. MA
Beans: 5,063
Ubuntu 8.10 Intrepid Ibex
Re: HOWTO: kprinter style printing dialogs for GNOME

Please let us know if you do get those patches working!
jdong is offline   Reply With Quote
Old November 18th, 2004   #7
mr_ed
Gee! These Aren't Roasted!
 
Join Date: Nov 2004
Location: Ottawa, Canada
Beans: 130
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.
mr_ed is offline   Reply With Quote
Old November 24th, 2004   #8
mr_ed
Gee! These Aren't Roasted!
 
Join Date: Nov 2004
Location: Ottawa, Canada
Beans: 130
Ubuntu 7.10 Gutsy Gibbon
Re: HOWTO: kprinter style printing dialogs for GNOME

Ok, I have a patch that uses the new file selector. I've emailed the maintainer, so hopefully it'll show up in Debian Sid some time in the future.

Onto VFS, and drag and drop! (I have a feeling that those will be a lot harder)

Oh, also the bugs I discovered. I'll post them here so I don't forget.
If you start gtklp not from a terminal, the File tab doesn't show up.
If you click the "reset all" button, and you have files listed in the selection box above, then "remove all" gets ghosted out.
mr_ed is offline   Reply With Quote
Old April 23rd, 2007   #9
herror
First Cup of Ubuntu
 
Join Date: Apr 2007
Beans: 1
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!
herror is offline   Reply With Quote
Old May 21st, 2007   #10
xurizaemon
Just Give Me the Beans!
 
xurizaemon's Avatar
 
Join Date: Oct 2005
Location: Piha, Waitakere, NZ
Beans: 71
Ubuntu 8.10 Intrepid Ibex
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 21st, 2007 at 11:34 PM..
xurizaemon is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:29 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry