Open popov895 opened 2 years ago
Looks like this bug: https://bugs.kde.org/show_bug.cgi?id=458865 And there is a patch: https://invent.kde.org/plasma/plasma-workspace/-/commit/8817cce67ed039a538936d0041d33387a40dd1c6
I'll try to apply and try if it helps.
Patch didn't help at all...
For me current working solution is restarting xdg-desktop-portal-kde
by hands after logging in plasma session:
systemctl --user restart plasma-xdg-desktop-portal-kde.service
Also it seems like removing this lines from /usr/lib/systemd/user/plasma-xdg-desktop-portal-kde.service
fixes issue as well:
# Auto restart is off as we are DBus activated
Restart=no
It fails to start about 2 times and finally starts up without errors. It's better than trying to start it once, crash and not to trying to start it again.
Should be fixed in https://copr.fedorainfracloud.org/coprs/zawertun/kde/build/4880519/ It will still crash 1 to n times (up to 4 to me) but eventually it will start without errors. We will wait for proper fix from KDE team.
The problem is that even if xdg-desktop-portal-kde
is running, non-KDE applications (Firefox, Telegram) still use GTK4 file dialogs and don't handle color scheme changes. This behavior appeared after one of the recent updates.
By the way, I noticed that I have 3 packages installed related to the portal:
$ dnf list installed | grep portal
xdg-desktop-portal.x86_64 1.12.6-1.fc36 @updates
xdg-desktop-portal-gnome.x86_64 42.3-1.fc36 @updates
xdg-desktop-portal-kde.x86_64 5.25.5-11.fc36 @copr:copr.fedorainfracloud.org:zawertun:kde
Moreover, when the xdg-desktop-portal-gnome
package is removed, the file dialogs are no longer displayed at all. I don't really understand what this has to do with each other, but something is definitely broken.
TLDR: xdg-desktop-portal-kde
service starts to early in plasm X11 session and it cause bug.
Read comments to the issue that I've posted - 458865.
I'm not sure if this bug is related to mine. Also, I don't see this issue on openSUSE Tumbleweed.
Just found that non-KDE apps are using the xdg-desktop-portal-gnome
instead of the xdg-desktop-portal-kde
, so it looks like a configuration issue.
See also: https://bugzilla.redhat.com/show_bug.cgi?id=2129479
Additional info: xdg-desktop-portal-kde didn't crash during boot with Qt 5.15.5 or earlier.
After the latest update, the problem is gone. List of updated packages:
$ dnf history info 142
Transaction ID : 142
Begin time : пн, 03-жов-2022 00:41:26 +0300
Begin rpmdb : 1bf3d85970093907b89faa4a79623cb96b4eb2d90801ad38f606f5d16c136299
End time : пн, 03-жов-2022 00:41:32 +0300 (6 seconds)
End rpmdb : 15ffdd6912df72ba6bb721de0e00acb97ce340390d6a0ff142626d4eaa580657
User : <toquza>
Return-Code : Success
Releasever : 36
Command Line : upgrade
Comment :
Packages Altered:
Upgrade libkworkspace5-5.25.5-12.fc36.x86_64 @copr:copr.fedorainfracloud.org:zawertun:kde
Upgraded libkworkspace5-5.25.5-11.fc36.x86_64 @@System
Upgrade plasma-lookandfeel-fedora-5.25.5-12.fc36.noarch @copr:copr.fedorainfracloud.org:zawertun:kde
Upgraded plasma-lookandfeel-fedora-5.25.5-11.fc36.noarch @@System
Upgrade plasma-workspace-5.25.5-12.fc36.x86_64 @copr:copr.fedorainfracloud.org:zawertun:kde
Upgraded plasma-workspace-5.25.5-11.fc36.x86_64 @@System
Upgrade plasma-workspace-common-5.25.5-12.fc36.x86_64 @copr:copr.fedorainfracloud.org:zawertun:kde
Upgraded plasma-workspace-common-5.25.5-11.fc36.x86_64 @@System
Upgrade plasma-workspace-geolocation-5.25.5-12.fc36.x86_64 @copr:copr.fedorainfracloud.org:zawertun:kde
Upgraded plasma-workspace-geolocation-5.25.5-11.fc36.x86_64 @@System
Upgrade plasma-workspace-geolocation-libs-5.25.5-12.fc36.x86_64 @copr:copr.fedorainfracloud.org:zawertun:kde
Upgraded plasma-workspace-geolocation-libs-5.25.5-11.fc36.x86_64 @@System
Upgrade plasma-workspace-libs-5.25.5-12.fc36.x86_64 @copr:copr.fedorainfracloud.org:zawertun:kde
Upgraded plasma-workspace-libs-5.25.5-11.fc36.x86_64 @@System
Upgrade plasma-workspace-wayland-5.25.5-12.fc36.x86_64 @copr:copr.fedorainfracloud.org:zawertun:kde
Upgraded plasma-workspace-wayland-5.25.5-11.fc36.x86_64 @@System
Upgrade plasma-workspace-x11-5.25.5-12.fc36.x86_64 @copr:copr.fedorainfracloud.org:zawertun:kde
Upgraded plasma-workspace-x11-5.25.5-11.fc36.x86_64 @@System
Upgrade sddm-breeze-5.25.5-12.fc36.noarch @copr:copr.fedorainfracloud.org:zawertun:kde
Upgraded sddm-breeze-5.25.5-11.fc36.noarch @@System
Upgrade sddm-breeze-fedora-5.25.5-12.fc36.noarch @copr:copr.fedorainfracloud.org:zawertun:kde
Upgraded sddm-breeze-fedora-5.25.5-11.fc36.noarch @@System
After the latest update, the problem is gone. List of updated packages:
$ dnf history info 142 Transaction ID : 142 Begin time : пн, 03-жов-2022 00:41:26 +0300 Begin rpmdb : 1bf3d85970093907b89faa4a79623cb96b4eb2d90801ad38f606f5d16c136299 End time : пн, 03-жов-2022 00:41:32 +0300 (6 seconds) End rpmdb : 15ffdd6912df72ba6bb721de0e00acb97ce340390d6a0ff142626d4eaa580657 User : <toquza> Return-Code : Success Releasever : 36 Command Line : upgrade Comment : Packages Altered: Upgrade libkworkspace5-5.25.5-12.fc36.x86_64 @copr:copr.fedorainfracloud.org:zawertun:kde Upgraded libkworkspace5-5.25.5-11.fc36.x86_64 @@System Upgrade plasma-lookandfeel-fedora-5.25.5-12.fc36.noarch @copr:copr.fedorainfracloud.org:zawertun:kde Upgraded plasma-lookandfeel-fedora-5.25.5-11.fc36.noarch @@System Upgrade plasma-workspace-5.25.5-12.fc36.x86_64 @copr:copr.fedorainfracloud.org:zawertun:kde Upgraded plasma-workspace-5.25.5-11.fc36.x86_64 @@System Upgrade plasma-workspace-common-5.25.5-12.fc36.x86_64 @copr:copr.fedorainfracloud.org:zawertun:kde Upgraded plasma-workspace-common-5.25.5-11.fc36.x86_64 @@System Upgrade plasma-workspace-geolocation-5.25.5-12.fc36.x86_64 @copr:copr.fedorainfracloud.org:zawertun:kde Upgraded plasma-workspace-geolocation-5.25.5-11.fc36.x86_64 @@System Upgrade plasma-workspace-geolocation-libs-5.25.5-12.fc36.x86_64 @copr:copr.fedorainfracloud.org:zawertun:kde Upgraded plasma-workspace-geolocation-libs-5.25.5-11.fc36.x86_64 @@System Upgrade plasma-workspace-libs-5.25.5-12.fc36.x86_64 @copr:copr.fedorainfracloud.org:zawertun:kde Upgraded plasma-workspace-libs-5.25.5-11.fc36.x86_64 @@System Upgrade plasma-workspace-wayland-5.25.5-12.fc36.x86_64 @copr:copr.fedorainfracloud.org:zawertun:kde Upgraded plasma-workspace-wayland-5.25.5-11.fc36.x86_64 @@System Upgrade plasma-workspace-x11-5.25.5-12.fc36.x86_64 @copr:copr.fedorainfracloud.org:zawertun:kde Upgraded plasma-workspace-x11-5.25.5-11.fc36.x86_64 @@System Upgrade sddm-breeze-5.25.5-12.fc36.noarch @copr:copr.fedorainfracloud.org:zawertun:kde Upgraded sddm-breeze-5.25.5-11.fc36.noarch @@System Upgrade sddm-breeze-fedora-5.25.5-12.fc36.noarch @copr:copr.fedorainfracloud.org:zawertun:kde Upgraded sddm-breeze-fedora-5.25.5-11.fc36.noarch @@System
Could you check again and post output of journalctl -b 0 | grep xdg-desktop-portal-kde
?
it seems, the problem is back with the latest chrom(e|ium) and current kde software:
Operating System: Fedora Linux 36 KDE Plasma Version: 5.26.2 KDE Frameworks Version: 5.99.0 Qt Version: 5.15.6 Kernel Version: 6.0.5-200.fc36.x86_64 (64-bit) Graphics Platform: X11
Chromium: Version 107.0.5304.68 (Official Build) (64-bit) Edge: Version 107.0.1418.23 (Official build) beta (64-bit) Chrome: Version 107.0.5304.87 (Official Build) (64-bit)
all of them don't use the kde-save dialog any more
Yeah, bunch of new bugs has appeared. And I see similar reports on reddit.
One of the bug: https://bugs.kde.org/show_bug.cgi?id=458865
Also starting with GTK4 env variable GTK_USE_PORTAL
is ignored, it should be replaced with GDK_DEBUG=portals
.
But it wasn't working for me.
I'll do some more tests on monday.
Currently xdg-desktop-portal-kde is working fine when testing it with https://invent.kde.org/libraries/xdg-portal-test-kde.
But it not working in any GTK app with or without env variables such as GTK_USE_PORTAL
and GDK_DEBUG
.
Removing xdg-desktop-portal-gnome
helps a bit, at least KDE open & save dialogs starts working in Firefox.
Still not working in Gedit though.
Operating System: Fedora Linux 36 KDE Plasma Version: 5.26.4 KDE Frameworks Version: 5.100.0 Qt Version: 5.15.7 Kernel Version: 6.0.10-200.fc36.x86_64 (64-bit) Graphics Platform: X11
Since this latest update portal is working again. I think this report could be closed...
Looks like
xdg-desktop-portal-kde
is broken because a lot of things don't work:Also there are some errors in system log related to
xdg-desktop-portal-kde
: