#1005169 regression: Chromium is not using plasma file dialog anymore since overlast update

Package:
chromium
Source:
chromium
Description:
web browser
Submitter:
Matthias Gies
Date:
2022-02-16 21:51:03 UTC
Severity:
normal
#1005169#5
Date:
2022-02-08 11:55:39 UTC
From:
To:
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..?

#1005169#10
Date:
2022-02-08 16:24:41 UTC
From:
To:
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?

#1005169#15
Date:
2022-02-09 04:55:39 UTC
From:
To:


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?

#1005169#20
Date:
2022-02-09 05:08:29 UTC
From:
To:
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.

#1005169#25
Date:
2022-02-09 08:42:31 UTC
From:
To:
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:

#1005169#30
Date:
2022-02-16 21:46:30 UTC
From:
To:
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.