Hi,
that patches fixes the problem for me (see attached screenshot).
Regards,
- Sedat -
P.S.: Some diffs, instructions and changelogs
$ diff /usr/share/applications/firefox-esr.desktop
~/.local/share/applications/firefox-esr.desktop
96c96
< Exec=/usr/lib/firefox-esr/firefox-esr %u
---
> Exec=GTK_USE_PORTAL=1 /usr/lib/firefox-esr/firefox-esr %u
root# dpkg -i xdg-desktop-portal-kde_5.14.5-2.1_amd64.deb
root# update-desktop-database
$ LC_ALL=C apt-cache policy xdg-desktop-portal-kde
xdg-desktop-portal-kde:
Installed: 5.14.5-2.1
Candidate: 5.14.5-2.1
Version table:
*** 5.14.5-2.1 100
100 /var/lib/dpkg/status
5.14.5-2 99
99 http://deb.debian.org/debian testing/main amd64 Packages
99 http://deb.debian.org/debian unstable/main amd64 Packages
5.14.5-1 500
500 http://deb.debian.org/debian buster/main amd64 Packages
$ cat xdg-desktop-portal-kde_5.14.5-2.1_amd64.changes
Format: 1.8
Date: Tue, 26 Nov 2019 11:20:42 +0100
Source: xdg-desktop-portal-kde
Binary: xdg-desktop-portal-kde xdg-desktop-portal-kde-dbgsym
Architecture: source amd64
Version: 5.14.5-2.1
Distribution: testing
Urgency: medium
Maintainer: Debian/Kubuntu Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Sedat Dilek <sedat.dilek@gmail.com>
Description:
xdg-desktop-portal-kde - backend implementation for xdg-desktop-portal using Qt
Changes:
xdg-desktop-portal-kde (5.14.5-2.1) testing; urgency=medium
.
* Non-maintainer upload.
* debian/patches:
+ Add Apply-D18378.diff (KDE Bug 402077)
Checksums-Sha1:
1ef5e9606d7940191537506402273f9ad3c4e5b9 1864
xdg-desktop-portal-kde_5.14.5-2.1.dsc
4f3d5f01dac94d5c293db543cf387f844c9ad951 9328
xdg-desktop-portal-kde_5.14.5-2.1.debian.tar.xz
ac7f240d6864edb81b6e714d5f4d15332c54f958 2762180
xdg-desktop-portal-kde-dbgsym_5.14.5-2.1_amd64.deb
cf4b7e426ed5bf0fd3dd341027b9341706ac0c94 20212
xdg-desktop-portal-kde_5.14.5-2.1_amd64.buildinfo
9be57c20da9cb259987bee26e2971e4b0e3c9fcc 94796
xdg-desktop-portal-kde_5.14.5-2.1_amd64.deb
Checksums-Sha256:
aa8305fb18b82e11ea832b3115315779a129743743cb521d5266fef428e114f3 1864
xdg-desktop-portal-kde_5.14.5-2.1.dsc
084deb2f8d753ea1cf4180d468a18a0ea170bbb196f4e2ed8d621d82254a679b 9328
xdg-desktop-portal-kde_5.14.5-2.1.debian.tar.xz
e141696053675e9b1e04da8ed5b6a2994bff59b432696f1dfbfa9c310e29aa0f
2762180 xdg-desktop-portal-kde-dbgsym_5.14.5-2.1_amd64.deb
68ea2af099a795abd62cc2115829b08c2a8ca3dd1cde6adb2b3d03c98f0eee24
20212 xdg-desktop-portal-kde_5.14.5-2.1_amd64.buildinfo
264ffaba521dedcf228a13c1b5df78077ae8b009f4e92f571bcb20e2e56bca7b
94796 xdg-desktop-portal-kde_5.14.5-2.1_amd64.deb
Files:
608c88d26c0088ea79603a6478616208 1864 kde optional
xdg-desktop-portal-kde_5.14.5-2.1.dsc
0e4519aa8b368ab520206f479653a4a2 9328 kde optional
xdg-desktop-portal-kde_5.14.5-2.1.debian.tar.xz
2b143d4f23441bf701578e681e0c5b56 2762180 debug optional
xdg-desktop-portal-kde-dbgsym_5.14.5-2.1_amd64.deb
5d1fc653fdb7194eb99fef43af95911d 20212 kde optional
xdg-desktop-portal-kde_5.14.5-2.1_amd64.buildinfo
97c30286df0929bf134a0dffcb8d2ecf 94796 kde optional
xdg-desktop-portal-kde_5.14.5-2.1_amd64.deb
- EOT -
On Tue, Nov 26, 2019 at 9:47 AM Sedat Dilek <sedat.dilek@gmail.com> wrote:
>
> Hi,
>
> I am here on Debian/testing AMD64.
>
> The KDE file selection dialog when running Firefox-ESR with
> "GTK_USE_PORTAL=1" does not work properly with SaveFile.
>
> For example when I want to save a PDF from a website the original
> filename is not offered/displayed in the SaveFile-Dialog-Box.
>
> For details see KDE Bug 402077 "SaveFile does not set the current_name" in [1].
>
> There exists a patch for xdg-desktop-portal-kde 5.14 branch in [2].
> [2] applies cleany to xdg-desktop-portal-kde (5.14.5-2) sources.
>
> Is it possible you can apply it?
>
> Thanks in advance.
>
> Best regards,
> - Sedat .-
>
> [1] https://bugs.kde.org/show_bug.cgi?id=402077
> [2] https://phabricator.kde.org/D18378
>
> P.S.: Details xdg-desktop-portal-kde
>
> root# LC_ALL=C apt-cache policy xdg-desktop-portal-kde
> xdg-desktop-portal-kde:
> Installed: 5.14.5-2
> Candidate: 5.14.5-2
> Version table:
> *** 5.14.5-2 100
> 99 http://deb.debian.org/debian testing/main amd64 Packages
> 99 http://deb.debian.org/debian unstable/main amd64 Packages
> 100 /var/lib/dpkg/status
> 5.14.5-1 500
> 500 http://deb.debian.org/debian buster/main amd64 Packages
>
> user$ diff -uprN /usr/share/applications/firefox-esr.desktop
> ~/.local/share/applications/firefox-esr.desktop | egrep 'Desktop|Exec'
> +[Desktop Action new-private-window]
> +Exec=GTK_USE_PORTAL=1 /usr/lib/firefox-esr/firefox-esr --private-window %u
> +[Desktop Action new-window]
> +Exec=GTK_USE_PORTAL=1 /usr/lib/firefox-esr/firefox-esr --new-window %u
> [Desktop Entry]
> +Exec=GTK_USE_PORTAL=1 /usr/lib/firefox-esr/firefox-esr %u
> -Exec=/usr/lib/firefox-esr/firefox-esr %u
>
> - EOT -
Attachment:
Screenshot_20191126_113117_dileks.png
Description: PNG image