Dear Maintainer, I chose to use chromium over firefox because it it used the regular plasma file dialog. Since the second last security update in bullseye, chromium suddenly uses the gtk/gnome file dialog when downloading files. I have not changed my system configuration, i don't have any other desktop environment installed but kde plasma. I have plasma-browser-integration installed, but I guess this does not influence the file dialog. I assume this is a compiling config issue..?
On Tue, 08 Feb 2022 12:55:39 +0100 Matthias Gies wrote: > Package: chromium > Version: 98.0.4758.80-1~deb11u1 > Severity: normal > X-Debbugs-Cc: matthiasgies@gmail.com > > Dear Maintainer, > > I chose to use chromium over firefox because it it used the regular plasma file > dialog. Since the second last security update in bullseye, chromium suddenly > uses the gtk/gnome file dialog when downloading files. > > I have not changed my system configuration, i don't have any other desktop > environment installed but kde plasma. I have plasma-browser-integration > installed, but I guess this does not influence the file dialog. > > I assume this is a compiling config issue..? I believe this is an upstream change, as described in https://www.reddit.com/r/openSUSE/comments/pjuf27/leap_fix_gtk_file_dialog_in_recent_version_of/. What version of xdg-desktop-portal do you have installed? What is the value of XDG_CURRENT_DESKTOP (open a terminal and run "echo $XDG_CURRENT_DESKTOP")? And if you run "dbus-update-activation-environment --systemd XDG_CURRENT_DESKTOP", and then restart chromium, does that fix the issue?
Alright, so I tried installing KDE (under wayland) and chromium
97.0.4692.99-1, but when I opened the file dialog it was the gtk one.
Probably because I'd been previously running cinnamon and gnome on the
machine, but XDG_CURRENT_DESKTOP *was* set to "KDE". I noticed that
xdg-desktop-portal-gtk and xdg-desktop-portal-gnome were running in the
background of my session, and xdg-desktop-portal-kde wasn't installed.
After installing it and restarting kde, I had kde's file dialog.
So then I installed chromium 98.0.4758.80-1, right clicked to download a
file ("save link as"), and again had kde's file dialog.
That was all tested on unstable, and there's an older version of
xdg-desktop-portal-kde on stable so the package's behavior may be
different. Do you have it installed? When you start kde, is it running
in the background?
Oh, it may actually launch when chromium starts (at least xdg-desktop-portal-gtk does, when run under cinnamon; now I'm not 100% certain whether it started at kde launch or afterwards). So you'll need to check when kde is started if it's running in the background, and also after chromium is started.
There were only xdg-desktop-portal and xdg-desktop-portal-gtk installed and running after login to kde. After installing xdg-desktop-portal-kde and logging out and in, it was immediately running after login. Chromium now utilizes the KDE file dialog. Yaaayy! :-D So the fix should be to make xdg-desktop-portal-kde a dependency for plasma- desktop, I assume. I have not changed my version of chromium and it is not a bug in that sense... Thanks a lot for your effort! Am Mittwoch, 9. Februar 2022, 05:55:39 CET schrieb Andres Salomon:
clone 1005169 -1 reassign -1 src:plasma-desktop retitle -1 plasma-desktop: plasma-desktop should probably depend upon xdg-desktop-portal-kde affects chromium -1 thanks Rather than just reassigning this, I'm going to leave it open for a while with chromium. Even if it gets fixed in plasma-desktop, it'll still be an issue for bullseye for quite a while. To the KDE folks: I'm not sure if kde-desktop is the right package for this, but something in the KDE stack should depend upon xdg-desktop-portal-kde. This ensures that things like chromium (both the debian version and upstream version) use the KDE file selector instead of the GTK one. The chromium package now has a hard dependency on xdg-desktop-portal-gtk|xdg-desktop-portal-backend, so KDE should be pulling in the KDE portal package to ensure that satisfying that dependency doesn't just pull in GTK stuff.