[snap] No KDE file dialogs

Bug #1851621 reported by Javier Urien
42
This bug affects 9 people
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I upgraded from kubuntu 19.04 to 19.10 and noticed that chromium does not integrate anymore. Plasma integration Fails to connect to the native host (suggested google solutions didn't work), Kubuntu mouse pointers change to ugly ones (I bellive GTK fallback), no kde file dialog when opening/saving files.

Tags: kde kubuntu snap
Revision history for this message
Chris Guiver (guiverc) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:

apport-collect 1851621

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Revision history for this message
Olivier Tilloy (osomon) wrote :

The plasma integration regression is tracked by bug #1741074.

Incorrect mouse pointers is also a known issue: bug #1833611.

Let's repurpose this bug to track the problem with KDE file dialogs.

summary: - Chromium deb -> Snap broke kubuntu integration
+ [snap] No KDE file dialogs
tags: added: snap
Revision history for this message
Javier Urien (javierurien-x) wrote :

Thanks for the info on other bugs!

Revision history for this message
Olivier Tilloy (osomon) wrote :

For reference, I'm attaching screenshots of a file save dialog in:

 - chromium-browser as a deb package in bionic (kdialog as expected)

 - chromium as a snap in eoan (gtk dialog, not correct)

Revision history for this message
Olivier Tilloy (osomon) wrote :
Revision history for this message
Olivier Tilloy (osomon) wrote :
Changed in chromium-browser (Ubuntu):
status: New → Confirmed
assignee: nobody → Olivier Tilloy (osomon)
importance: Undecided → Medium
Revision history for this message
Olivier Tilloy (osomon) wrote :

The chromium implementation of KDE dialogs runs the kdialog binary (see SelectFileDialogImpl::CheckKDEDialogWorksOnUIThread() in https://cs.chromium.org/chromium/src/chrome/browser/ui/libgtkui/select_file_dialog_impl_kde.cc).

The kdialog package and its dependencies would need to be staged in the snap for this to work.

Revision history for this message
Olivier Tilloy (osomon) wrote :

I managed to make chromium use kdialog by staging the kdialog package and its dependencies, and by exporting "QT_PLUGIN_PATH: $SNAP/usr/lib/x86_64-linux-gnu/qt5/plugins" in snapcraft.yaml's environment section for the chromium app.

The problem with this approach is that it adds 60MB to the final compressed size of the snap. Some of it could certainly be excluded, but it will require some careful tuning.

This requires more work.

Revision history for this message
Kevin Funk (kfunk) wrote :

Any progress/news in this regard? This is still an issue on Ubuntu 20.04, fwiw.

Revision history for this message
Olivier Tilloy (osomon) wrote :

No progress on this. Contributions are welcome, if someone is willing to spend the time to try and shave some megabytes off my prototype that increased the snap's size by 60MB.

Revision history for this message
Matt Papageorge (matthewpapa07) wrote :

+1 I am also being affected by this bug. It is very frustrating, so far moving Chromium to snap on Kubuntu has caused lots of annoying issues for me, definitely a step back.

I am a BIOS developer, willing to help out in any way I can. But this may be too high up the stack for me to be able to fix in a reasonable amount of time.

I guess how much I want to debug this myself directly correlates on how annoyed by it I am. That annoyance is growing...

Revision history for this message
Sergey Temerkhanov (temerkhanov) wrote :

1. Is it fixed in 20.10?
2. If not, is there a proper package anywhere instead of a broken snap?

Revision history for this message
Rafael Lima (rafael-palma-lima) wrote :

I am using Kubuntu 20.10 and this is affecting me as well. It's very weird to have to use Gtk file picker in KDE plasma.

I wouldn't mind an additional 60 MB to have this fixed.

Olivier Tilloy (osomon)
Changed in chromium-browser (Ubuntu):
assignee: Olivier Tilloy (osomon) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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