Bug 899045 - KDE-Integration of LibreOffice
Summary: KDE-Integration of LibreOffice
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: LibreOffice (show other bugs)
Version: 13.2 Beta 1
Hardware: x86-64 openSUSE 13.2
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-29 19:14 UTC by Stefan Gruber
Modified: 2015-07-24 07:00 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gruber 2014-09-29 19:14:30 UTC
Fresh install of opensuse 13.2 beta:

The Open/Save dialogs in LibreOffice show only native design, which is very crappy.

I would expect the former look and functionality, that was well integrated into the KDE-Environment.
That means the dolphin-like dialog with places etc., that comes up in KDE-applications as well...

The package libreoffice-kde4 is installed, so this should work, actually it doesn't.

I observed this behaviour with opensuse 13.1 since LibreOffice 4.2 (from OBS-Repos) came out.

As I see, other KDE-centric distributions (e.g. kubuntu) are having this bug too. 
So it seems like a deeper and real difficult problem, but  I and probably many office users  will be really confused.
 
There is an older bug-report upstream, where one problem is adressed:
https://bugs.freedesktop.org/show_bug.cgi?id=48611#c10

Another promising report leads to a problem located at Qt:

https://bugs.freedesktop.org/show_bug.cgi?id=82598
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1359486/comments/14

Maybe it is possible to take the patches of the two, still open Qt-bugs for opensuse, if Qt does not solve it upstream.

IMO opensuse delivered the best-integrated user desktop experience up to now, this should keep on.
Comment 1 Wolfgang Bauer 2014-09-30 00:41:52 UTC
(In reply to Stefan Gruber from comment #0)
> Maybe it is possible to take the patches of the two, still open Qt-bugs for
> opensuse, if Qt does not solve it upstream.

Well, those patches are in fact already part of openSUSE's libqt4 package:
https://build.opensuse.org/package/rdiff/openSUSE:Factory/libqt4?linkrev=base&rev=202

So maybe something has to be done on the LibreOffice side as well to re-enable the KDE4 file dialogs?
Comment 2 Stefan Gruber 2014-09-30 16:45:03 UTC
Further test:

opensuse 13.2 beta came with libqt4-4.8.6-4.2.1.x86_64, i do not know wether this version contains those qt-patches.

I installed latest libqt4-4.8.6-365.1.x86_64 from OBS KDE:Qt without any improvement unfortunately.

What the heck is going wrong in the libreoffice-kde4 package?
How can we find the cause? I am not a developer...
Comment 3 Wolfgang Bauer 2014-10-03 15:03:19 UTC
(In reply to Stefan Gruber from comment #2)
> Further test:
> 
> opensuse 13.2 beta came with libqt4-4.8.6-4.2.1.x86_64, i do not know wether
> this version contains those qt-patches.
> 
> I installed latest libqt4-4.8.6-365.1.x86_64 from OBS KDE:Qt without any
> improvement unfortunately.

Yes. According to the package changelog those patches have been added to KDE:Qt (and Factory) in June already.

But apparently something went wrong with the patch for QTBUG-34614.
LibreOffice still had this in the build log:
[  338s] checking whether Qt has fixed ExcludeSocketNotifiers... yes
[  343s] checking whether Qt avoids QClipboard recursion caused by posted events... no
[  344s] configure: WARNING: native KDE4 file pickers will be disabled at runtime
...
[  344s] * WARNING : native KDE4 file pickers will be disabled at runtime, Qt4 fixes needed
[  344s] * WARNING :   https://bugreports.qt-project.org/browse/QTBUG-34614 (needed)
[  344s] * WARNING :   https://bugreports.qt-project.org/browse/QTBUG-38585 (recommended)

Today new libqt4 packages have been submitted to the KDE:Qt repo though.
I installed them on my 13.1 system and LibreOffice 4.3 (from the LibreOffice:Factory repo) does use the KDE4 file dialog here now.

So this should be fixed soon in Factory (and 13.2) as well.
Comment 4 Wolfgang Bauer 2014-10-03 18:26:37 UTC
Just for the record, the new libqt4 packages fix the problem with LO 4.2.6.2 from the LibreOffice:4.2 repo as well.
Comment 5 Stefan Gruber 2014-10-04 21:11:22 UTC
(In reply to Wolfgang Bauer from comment #3)
> Today new libqt4 packages have been submitted to the KDE:Qt repo though.
> I installed them on my 13.1 system and LibreOffice 4.3 (from the
> LibreOffice:Factory repo) does use the KDE4 file dialog here now.

I installed this latest libqt4-4.8.6-366.1.x86_64 and corresponding packages from KDE:Qt
on my 13.1-System. I'm afraid LibreOffice (libreoffice-4.3.2.2-208.1.x86_64, also from LO:Factory) does not use KDE-Dialogs ... automatically.

But if I force it with the command
> OOO_FORCE_DESKTOP=kde4 loffice

... it works as expected! 

A little bit weird, but the problem seems to be fixed and hopefully we will get a well tuned 13.2.
Comment 6 Wolfgang Bauer 2014-10-04 22:41:17 UTC
It works fine here in 13.1 as mentioned.
I will try on Factory later.

Do you maybe have the package "ibus" installed?
This globally sets OOO_FORCE_DESKTOP=gnome (on 13.1 already as well), apparently because of a problem with LO's KDE4 integration which I know nothing about.

If you want to use the KDE4 integration, you should uninstall it, as it contains this in /etc/X11/xim.d/ibus to force gnome integration even in KDE:
# Force OOo to use gtk-immodule
# Better way to fix cursor following problem (on_the_spot bug) under libreoffice-kde4
export OOO_FORCE_DESKTOP=gnome
Comment 7 Wolfgang Bauer 2014-10-04 23:12:11 UTC
I tried on a current Factory installation now (with the standard LibreOffice packages included there, and the updated libqt4 from KDE:Qt).

LO did use the KDE file dialog automatically, as expected.
Comment 8 Stefan Gruber 2014-10-05 09:23:21 UTC
(In reply to Wolfgang Bauer from comment #6)
> It works fine here in 13.1 as mentioned.
> I will try on Factory later.
> 
> Do you maybe have the package "ibus" installed?
> This globally sets OOO_FORCE_DESKTOP=gnome (on 13.1 already as well),
> apparently because of a problem with LO's KDE4 integration which I know
> nothing about.

Yes, ibus was present on my system.
After removing ibus it works as expected here, too.

Same success with my 13.2-beta with updated libqt4.

Should we mark this bug as resolved?
Comment 9 Wolfgang Bauer 2014-10-25 16:49:16 UTC
(In reply to Stefan Gruber from comment #8)
> Should we mark this bug as resolved?
AFAICS the fixed libqt4 package is in Factory and in 13.2 meanwhile (though not published yet).
So let's close this, yes.

Please reopen if it doesn't work in 13.2 final (well, I will do that myself anyway if I notice a problem... ;) )

JFYI regarding ibus: at least the package has been changed for 13.2 recently to only force GNOME integration if libreoffice-gnome is actually installed.
So you will be able to use the KDE integration with ibus installed, as long as you do not install libreoffice-gnome as well.