Page MenuHomeLubuntu Development

libreoffice qt5 vcl
Open, NormalPublic

Description

We had a task like this task before the infraestructure problem.
Now there is a qt5 plugin (libreoffice-qt5) which has qt5 themed filepicker and print dialog, we need to make libreoffice run with that by default. Now one needs to install libreoffice-qt5 (we should include in seed) and then run libreoffice like this: SAL_USE_VCLPLUGIN=qt5 libreoffice.

Maybe change the env var?
SAL_USE_VCLPLUGIN=kde4

History:

Event Timeline

hmollercl renamed this task from libreoffice qt vcl to libreoffice qt5 vcl.Jan 23 2020, 2:58 PM
hmollercl triaged this task as Wishlist priority.
hmollercl created this task.
wxl added a subscriber: wxl.

Wishlist? You have some reason to think this is not feasible?

When I created the task I didn't know if it will work, now I know it's feasible and have uploaded all the changes needed except for meta.

hmollercl raised the priority of this task from Wishlist to Normal.
kc2bez added a subscriber: kc2bez.Feb 19 2020, 1:37 AM


This was the desired result correct? The filepicker looks good to me as well. Was there anything else we needed?

hmollercl added a comment.EditedFeb 19 2020, 1:05 PM

Yes, also print dialog should be Qt-isch but with that about sialog should be enough.
Problem is when exporting pdf it didn't work for some fonts.

Just tested SAL_VCL_QT5_USE_CAIRO=true with should solve the pdf. It solves but running plain "libreoffice" with it on commandline crashes for me. But if I run "libreoffice --writer" (or calc, impress, etc..) it works, I updated the bug upstream.
https://bugs.documentfoundation.org/show_bug.cgi?id=125234

to test in a SAL_USE_VCLPLUGIN=qt5 environment, run
"SAL_VCL_QT5_USE_CAIRO=true libreoffice" and "SAL_VCL_QT5_USE_CAIRO=true libreoffice --writer."

wxl added a comment.Feb 19 2020, 5:02 PM

Since we have a solution that works well for almost everything, I say we keep it. We can include the workaround in release notes for the PDF export issue (we should make a bug for it and link it to the upstream bug). Once we have that in place (maybe we should start working on release notes now?), let's close this.

but which bug is better to leave? the pdf or the libreoffice home?

wxl added a comment.Feb 19 2020, 6:47 PM

PDF export with certain fonts seems less important than a consistent look and feel.

I agree with that, but with SAL_VCL_QT5_USE_CAIRO=true we have consistet look and feel and pdf export.
BUUUT, you can only launch libreoffice apps, you cannot launch libreoffice alone. That is "libreoffice --app" vs "libreoffice" in the commandline and in the menu clicking the desired app (calc, writer, etc..) ws libreoffice alone.
Personally I only run the apps directly, not form the libreoffice alone, but that's size 1 sample.....

wxl added a comment.Feb 19 2020, 8:06 PM

Either way, we're not going to please everyone. I think you and I are in agreement.

I dont think we are on a complete agreement. Ny question is:
Should we set SAL_VCL_QT5_USE_CAIRO=true or not?
If not, pdf problem
If yes, libreoffice home problem

wxl added a comment.Feb 19 2020, 10:37 PM

I think not.

ok, we leave it the way it is know then

wxl added a comment.Feb 23 2020, 4:49 PM

Could you make a bug that describes the issue with the PDF and the workaround and link it here, please?

It would be nice to get that into the 20.04 release notes as aforementioned. @kc2bez do we have those started yet? If not, could we get them started with this mentioned?

In T146#3225, @wxl wrote:

It would be nice to get that into the 20.04 release notes as aforementioned. @kc2bez do we have those started yet? If not, could we get them started with this mentioned?

I haven't started them yet but I will and post the link in T100 the 20.04 task.

I found out this also happens when printing, maybe that's more problematic than pdf creation.