Re: vscode/vscodium file-choose broken on Tumbleweed - No such interface “org.freedesktop.portal.FileChooser”
On 11/16/24 3:29 AM, Masaru Nomiya wrote:
DCR> 02:32 wizard:~> /opt/vscodium-bin/codium DCR> [56965:1116/023333.000043:ERROR:object_proxy.cc(576)] Failed to call method: DCR> org.freedesktop.DBus.Properties.Get: object_path= DCR> /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such DCR> interface “org.freedesktop.portal.FileChooser” DCR> [56965:1116/023333.000324:ERROR:select_file_dialog_linux_portal.cc(287)] Failed DCR> to read portal version property
Have you installed xdg-desktop-portal?
Yes, xdg-desktop-portal was slipped in as a dependency to MozillaFirefox from openSUSE -- but the portal file chooser logic using kdialog is BROKEN for KDE3 because KDE3 kdialog does not have an --attach option. This broke Firefox and vscodium/vscode. The portal fileChooser (originally a Flatpak interface to avoid sandbox issues) only works to pick native file dialogs for "some" desktops and "breaks" others. Thankfully mozilla provides an option to turn it off so file dialogs work again. I found this after 1/2 a gigabyte of unnamed downloads appeared in the ~/Downloads folder: 18:55 wizard:~> l -rt Downloads/ total 672580 drwx------ 48 david david 4096 Nov 16 18:55 .. drwxr-xr-x 2 david david 4096 Nov 16 19:46 . -rw-r--r-- 1 david david 303335 Aug 28 02:36 IRF9Z24.PDF -rw-r--r-- 1 david david 529687 Aug 28 02:37 IRF9130.PDF -rw-r--r-- 1 david david 174833 Aug 30 23:49 cd00003223.pdf -rw-r--r-- 1 david david 317328 Oct 18 01:54 settings.png -rw-r--r-- 1 david david 776370 Oct 18 01:55 settings.xcf -rw-r--r-- 1 david david 316833 Oct 18 01:56 settings1.png -rw-r--r-- 1 david david 113122 Oct 18 01:57 settings1-fs8.png -rw-r--r-- 1 david david 5524488 Nov 9 21:27 frag_bunny.mp4 -rw------- 1 david david 148378619 Nov 16 16:39 i7Rmj0w8.gz.part -rw------- 1 david david 148378619 Nov 16 16:39 5-v9QHZY.gz.part -rw------- 1 david david 20331269 Nov 16 16:40 -3bU-fu3.gz.part -rw------- 1 david david 20331269 Nov 16 16:40 eF7LSKQs.gz.part -rw------- 1 david david 26288471 Nov 16 16:40 PyNivark.zip.part -rw------- 1 david david 26288471 Nov 16 16:40 0QZUksul.zip.part -rw------- 1 david david 148378619 Nov 16 16:50 VSCode-linux-x64-1.95-3.tar.gz -rw------- 1 david david 142220013 Nov 16 17:18 xtr905zZ.rpm.part All of the *.part files are source and binary downloads of vscode and vscodium, but since the file-chooser was broken, no dialog was presented for download, and no filename was ever formed by Firefox -- so the download icon never appears in the toolbar letting you know something is downloading -- and when the thing finishes downloading, it cannot be renamed to a real filename since that was never optained by firefox due to the dialog failure.... The xdg-desktop-portal thing isn't fully-baked yet. Whether you get a file-dialog displayed cannot depend on what desktop you are running. Proper programming would validate the file-dialog is open and ready for use, and if not, a sane fallback dialog (e.g. the default gtk fileChooser) should be shown. I know I can't be the only one bitten by this one. cc: kde3 list -- since this is a live issue for KDE3 -- David C. Rankin, J.D.,P.E.
participants (1)
-
David C. Rankin