[Upstream] gtkprint/kprinter not used when running under Gtk/KDE

Bug #47658 reported by Jimmy Kloss
84
This bug affects 7 people
Affects Status Importance Assigned to Milestone
LibreOffice
Fix Released
Medium
OpenOffice
Invalid
Unknown
libreoffice (Fedora)
Won't Fix
Medium
libreoffice (Ubuntu)
Won't Fix
Wishlist
Unassigned
openoffice.org (Ubuntu)
Won't Fix
Wishlist
Unassigned

Bug Description

KDE is Kubuntu's desktop therefore all applications which want print should use 'kprinter' to do so, but OpenOffice doesn't.

AFAIK my Dapper installation is up to date (31.05.2006 at ~ 12:00).

Note: the original reporter indicated the bug was in package 'openoffice'; however, that package was not published in Ubuntu.

Revision history for this message
Manuel López-Ibáñez (manuellopezibanez) wrote :

As far as I know, this is hard to accomplish, since OpenOffice has its own printing dialogs. It neither uses gnomeprint in GNOME.

Perhaps, DBUS or project Portland can help on this. You may join them. Also, you may join the OpenOffice community and promote this idea (which I am very much in favour). Meanwhile, the Ubuntu community cannot do anything about this, so I will reject the bug.

Revision history for this message
Jimmy Kloss (phorsyon) wrote : Re: [Bug 47658] Re: OpenOffice doesn't use kprinter in Kubuntu

On Wednesday 07 June 2006 13:49, manu wrote:
> As far as I know, this is hard to accomplish, since OpenOffice has its
> own printing dialogs. It neither uses gnomeprint in GNOME.
>
> Perhaps, DBUS or project Portland can help on this. You may join them.
> Also, you may join the OpenOffice community and promote this idea (which
> I am very much in favour). Meanwhile, the Ubuntu community cannot do
> anything about this, so I will reject the bug.
>
> ** Changed in: Ubuntu
> Sourcepackagename: None => openoffice.org
> Status: Unconfirmed => Rejected

On Gentoo OOo comes with a printer setup tool called 'oopadmin'. It allows
e.g. to switch the command from the 'Generic Printer' from 'lpr'
to 'kprinter'.

This can also be done in Kubuntu by editing '/etc/openoffice/psprint.conf'.

Just add 'kprinter' to line 83

before:
83: Command=

after:
83: Command=kprinter

It isn't the 100% integration but it makes OOo work with 'kprinter' instead
of ''. ;-)

Revision history for this message
Manuel López-Ibáñez (manuellopezibanez) wrote : Re: OpenOffice doesn't use kprinter in Kubuntu

Then I reopen it and, please, excuse my ignorance. You will have to wait until someone more expert could give you a proper answer.

Changed in openoffice.org:
status: Rejected → Unconfirmed
Matthias Klose (doko)
Changed in openoffice.org:
importance: Medium → Wishlist
status: Unconfirmed → Confirmed
description: updated
Revision history for this message
Matthew Flaschen (matthew-flaschen) wrote :

I got it to work using the spadmin program. Follow the instructions at http://gentoo-wiki.com/HOWTO_OpenOffice_with_KDE , but just use /usr/bin/kprinter for the command.

Revision history for this message
Jimmy Kloss (phorsyon) wrote :

Well, I mentioned that printer admin tool OOo ships, but Kubuntu doesn't come with it by default. Anyway it's not needed. My solution, as mentioned above, goes like this:

1. Open this file '/etc/openoffice/psprint.conf' with your editor of choice (needs root).
2. Jump to line 83
3. Read the line like this: "Command="
4. Add the string 'kprinter' to the line
5. Now read the line like this: "Command=kprinter"
6. Save the file
7. Try to (directly) Print in OpenOffice and realize how easy that actually was

I don't know why this so hard to fix this for the Kubuntu guys. I recently installed Kubuntu 7.04 on my Laptop, which was still running 6.06.1 LTS, It had the same issue, which I just fixed with my solution from 2006.06.07.

I've added a diff now.
Maybe somebody can tell me what else I can to do to get this fixed in Kubuntu 7.10.

Revision history for this message
Matthew Flaschen (matthew-flaschen) wrote :

I think it does come with spadmin, because I didn't install it separately. It's at /usr/lib/openoffice/program/spadmin .

Revision history for this message
René Vangsgaard (rene-vangsgaard) wrote :

Matthews (https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/47658/comments/4) workaround works for me on Kubuntu 7.10.

I just installed Kubuntu 7.10, and the kprinter dialog was the dialog shown when activating print. Then i had problems opening a Word-document, that a friend easily could open in OO on Windows. So I used adept to reinstall OO, and then the kprinter integration didn't work.

The fix from Jimmy Kloss (https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/47658/comments/5) didn't work for me - no kprinter dialog appeared. So I followed Matthews workaround, and it works fine.

PS. I still cannot open the Word-document, that made me reinstall OO :-/

Revision history for this message
Antonio Costantino (anto-costantino) wrote :

Easy and handy! Jimmy Kloss' fix (https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/47658/comments/5) works fine for me on kubuntu 7.10 and Oo 2.3.0.

Many thanks.

Revision history for this message
Chris Cheney (ccheney) wrote : Re: [Ubuntu] [hardy] OpenOffice doesn't use kprinter in Kubuntu

FWIW, it doesn't use gtkprint in Gnome either.

Changed in openoffice.org:
status: Confirmed → In Progress
JLR (artirj)
Changed in openoffice.org:
status: In Progress → Fix Released
Revision history for this message
Chris Cheney (ccheney) wrote :

I'm not sure why someone marked this bug as Fix Released... Don't abuse launchpad, if a bug isn't Fixed then don't close it as Fix Released, or state why you think it is Fixed at minimum.

Thanks,

Chris Cheney

Changed in openoffice.org:
status: Fix Released → In Progress
Revision history for this message
FriedChicken (domlyons) wrote :
Revision history for this message
Chris Cheney (ccheney) wrote :

There is a blueprint for using a different print dialog from openaccessibility but I don't know if it will make it time for Intrepid.

Changed in openoffice.org:
status: In Progress → Triaged
Revision history for this message
Philipp Schlesinger (philipp-sadleder) wrote :
Revision history for this message
In , Chris Cheney (ccheney) wrote :

When OOo detects that it is running under either Gtk/Gnome or KDE it should use integrated printing dialog, the gtkprint dialog for Gtk/Gnome and kprinter under KDE. There is already a patch for gtkprint available in Fedora.

Changed in openoffice:
status: Unknown → Confirmed
Revision history for this message
In , Rodo (rodo) wrote :

Jan, I hope it is OK to reassign to you, as it is general UI related.

Revision history for this message
In , Horst (horst-redhat-bugs) wrote :

Description of problem:
The help tells me to go to File --> Print, and select Handout in the "Content listbox". There just isn't any "Content listbox"in the print menu.

Version-Release number of selected component (if applicable):
openoffice.org-impress-3.0.1-13.1.fc11.x86_64

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:

Expected results:

Additional info:

Revision history for this message
In , Caolan (caolan-redhat-bugs) wrote :

*** This bug has been marked as a duplicate of bug 476037 ***

Revision history for this message
In , Horst (horst-redhat-bugs) wrote :

This is certainly a completely different matter (ooimpress has no way to select handout printing) than 476037 (ooimpress crash closing window while printing)

Revision history for this message
In , Caolan (caolan-redhat-bugs) wrote :

Toggle on the alternative dialog, i.e.
tools->options->general and tick on "use openoffice.org dialogs"

Need a way to get the system dialog to be able to show the extended non-system features.

Revision history for this message
In , Caolan (caolan-redhat-bugs) wrote :

This sort of thing *used* to be in the options... dialog, but some of them have gotten moved around, which complicates matters

Revision history for this message
In , Horst (horst-redhat-bugs) wrote :

Re #3: There is no mention of this in the documentation... one of the things that did make me go to MSFT Office was precisely that I could not find a way to print presentations.

Thanks!

Revision history for this message
In , Nicola (nicola-redhat-bugs) wrote :

I had the same problem: I wanted to print just the notes of an Impress presentation, found in the Guide the part about "Content", but that dialog was missing. The workaround suggested by Caolan in comment #3 solved the issue, but certainly this regression should be fixed.

Revision history for this message
In , William (william-redhat-bugs) wrote :

"use openoffice.org dialogs" actually spells out (Load/Save) and makes
no mention of Print (which it modifies). Right now File - Print dialog
'Option' button no longer includes Content (Drawing|Notes|Handouts|Outline)
leaving the user entirely confused until they trip across THIS bug report.

Thank you for the hint, please restore the regression of the Content Dialog
choices under the Options pane.

Revision history for this message
In , Caolan (caolan-redhat-bugs) wrote :

*** Bug 484856 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Caolan (caolan-redhat-bugs) wrote :

I'm going to revert to the built-in dialog for now, see https://www.redhat.com/archives/fedora-desktop-list/2009-March/msg00044.html for some details.

Would be a good bit easier with a "selection" option, and "printer changed" signal as part of the standard base gtk print dialog

Revision history for this message
Michael Nagel (nailor) wrote : Re: [ooo-build] OpenOffice doesn't use gtkprint/kprinter when running under Gtk/KDE

i just checked and the fedora guys definitely use the default gnome printing dialog in open office. so one could perhaps have a look at their patches and try to include them into ubuntu.

Revision history for this message
In , David (david-redhat-bugs) wrote :

*** Bug 506182 has been marked as a duplicate of this bug. ***

Revision history for this message
In , David (david-redhat-bugs) wrote :

*** Bug 506907 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Philip (philip-redhat-bugs) wrote :

The revert to the OOo dialog seems to have brought problems. Randomly the printer list is empty. I have two documents open, Ctrl+P one one gives me my laser, Ctrl+P on the other just gives me "generic printer". Close dialog, Ctrl+P again and it works.

Revision history for this message
In , Illtud (illtud-redhat-bugs) wrote :

Other bugs complaining that OOo has stopped using gtk print dialog have been marked as duplicates of this one. I don't quite see that they're the same issue. I can't now print 2up (my default format, and one strongly encouraged in my enterprise) because of this issue. Is there a way of manually switching OOo back to using the gtk print dialog? I was perfectly happy with it.

Revision history for this message
In , Caolan (caolan-redhat-bugs) wrote :

It need to be reimplemented. Plan is to build it on top of the printerpullpages work of http://wiki.services.openoffice.org/wiki/Printerpullpages/Specification_OOo32 which will enable getting it merged into the "vanilla" upstream tree which allows the translations and help to get synced up wrt. the custom options in the built-in dialog

There's no way to manually switch it back, the code just isn't in there.

Revision history for this message
In , Kendy (kendy) wrote :

Closing as a feature request, we have this in our feature request database.

Changed in openoffice:
status: Confirmed → Invalid
Revision history for this message
In , David (david-redhat-bugs) wrote :

taking over as agreed

Revision history for this message
In , Caolan (caolan-redhat-bugs) wrote :

*** Bug 585239 has been marked as a duplicate of this bug. ***

Chris Cheney (ccheney)
tags: added: kubuntu
Revision history for this message
In , Caolan (caolan-redhat-bugs) wrote :

*** Bug 596522 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Caolan (caolan-redhat-bugs) wrote :

*** Bug 600556 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Alex (alex-redhat-bugs) wrote :

Is the reversion to the OOo print dialogs still supposed to be present in F-13? I seem to only get OOo not GNOME dialogs when printing with openoffice.org-core-3.2.0-12.24.fc13.x86_64. Is this being worked on upstream?

Revision history for this message
In , David (david-redhat-bugs) wrote :

dtardon->alexl: yes, it is (for both questions)

Revision history for this message
In , Caolan (caolan-redhat-bugs) wrote :

Where "being worked on upstream" doesn't mean "being worked on by some giant team of anonymous *other* people, but being worked on by the same unfortunate assignee as here"

Changed in libreoffice (Ubuntu):
importance: Undecided → Wishlist
Changed in openoffice.org (Ubuntu):
status: Triaged → Won't Fix
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote : migrating packaging from OpenOffice.org to Libreoffice

[This is an automated message.]
There are no new official OpenOffice.org releases in Ubuntu packaging anymore => Won't Fix

If the problem persists, please mark this bug as "also affects project Libreoffice" or "also affects distribution Libreoffice (Ubuntu)" if that has not happened already.

Please leave references to upstream OpenOffice.org bugs in place to allow cross pollination.

penalvch (penalvch)
summary: - [ooo-build] OpenOffice doesn't use gtkprint/kprinter when running under
- Gtk/KDE
+ gtkprint/kprinter not used when running under Gtk/KDE
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote : Re: gtkprint/kprinter not used when running under Gtk/KDE

This is:
- a clearcut upstream issue
- wishlist/feature request unlikely to be fixable with a simple patch
- wont be fixed in libreoffice packaging
Resolving as WONTFIX in libreoffice packaging. This does not mean the issue will not be cared about, but if it is cared about (even by Ubuntu/Canonical contributors), it is done upstream at LibreOffice.

Libreoffice (Ubuntu) => WONTFIX

Please file a upstream bug against Libreoffice: http://wiki.documentfoundation.org/BugReport

Libreoffice => Incomplete (missing upstream bug URL)

Changed in df-libreoffice:
status: New → Incomplete
Changed in libreoffice (Ubuntu):
status: New → Won't Fix
Revision history for this message
Michael Nagel (nailor) wrote :

In http://wiki.documentfoundation.org/cgi_img_auth.php/6/6b/0102GS3-SettingUpLibO.odt they say:

"(Mac only) To use the standard Print dialogs for your operating system, deselect the Use LibreOffice dialogs option. When this option is selected, the Print dialogs supplied with LibreOffice will be used. This book uses the LibreOffice Print dialogs in illustrations."

So this indeed seems to be an upstream issue.

Revision history for this message
In , Michael Nagel (nailor) wrote :

According to http://wiki.documentfoundation.org/cgi_img_auth.php/6/6b/0102GS3-SettingUpLibO.odt you can use the operating system printer dialog on a Mac:

"(Mac only) To use the standard Print dialogs for your operating system, deselect the Use LibreOffice dialogs option. When this option is selected, the Print dialogs supplied with LibreOffice will be used. This book uses the LibreOffice Print dialogs in illustrations."

There should be an option to use the operating system printer dialog (e.g. kprinter, gtkprint) on Linux. For a bug report in a downstream distribution (Ubuntu) see: https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/47658

Changed in df-libreoffice:
importance: Undecided → Unknown
status: Incomplete → Unknown
Revision history for this message
Michael Nagel (nailor) wrote :

I created an upstream bug report at https://bugs.freedesktop.org/show_bug.cgi?id=41181 and tried to set it up as a remote bug watch in Launchpad. I am not sure if the remote bug watch was created correctly.

Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → Confirmed
penalvch (penalvch)
summary: - gtkprint/kprinter not used when running under Gtk/KDE
+ [Upstream] gtkprint/kprinter not used when running under Gtk/KDE
Revision history for this message
In , Dtardon (dtardon) wrote :

Yeah, and for bug report in Fedora see https://bugzilla.redhat.com/show_bug.cgi?id=476039 . I really should get it in one of these days...

Revision history for this message
In , Dtardon (dtardon) wrote :

support for native print dialog for gtk and gtk3 will be in 3.5 as experimental feature

Revision history for this message
In , David (david-redhat-bugs) wrote :

it will be experimental feature in libreoffice 3.5

Changed in df-libreoffice:
status: Confirmed → Fix Released
Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

Now that it is solved upstream, I guess Ubuntu needs to do something to enable this feature in its distribution?

Changed in libreoffice (Fedora):
importance: Unknown → Medium
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.