Bug 472462 - unable to browse samba shares in xdg portal file picker
Summary: unable to browse samba shares in xdg portal file picker
Status: REPORTED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.6
Platform: NixOS Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-21 10:34 UTC by jaduff
Modified: 2023-11-10 13:13 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
empty file picker (43.48 KB, image/png)
2023-07-21 10:41 UTC, jaduff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jaduff 2023-07-21 10:34:33 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. In app using xdg-desktop-portal-kde, press ctrl+o
2. In address bar, type known good samba share "smb://<server>/<share>
3. Press enter

OBSERVED RESULT
Keyboard selection removed from address bar, file picker stays blank. No error message.

EXPECTED RESULT
File picker navigates to folder structure of remote server

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.27.6
(available in About System)
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION
X11, tried both flatpak browser and native firefox with GTK_USE_PORTAL=1. Remote servers included windows share, and linux samba server. In all cases, Dolphin was able to access the share, but xdg portal was not.
Comment 1 jaduff 2023-07-21 10:41:50 UTC
Created attachment 160422 [details]
empty file picker

Empty file picker after attempting to navigate to samba share.
Comment 2 Harald Sitter 2023-10-05 06:21:50 UTC
You need to have kio-fuse installed on the host I think.
Comment 3 Paul 2023-11-08 18:32:41 UTC
(In reply to Harald Sitter from comment #2)
> You need to have kio-fuse installed on the host I think.

I have this exact issue and `kio-fuse` is already installed.
Comment 4 Harald Sitter 2023-11-08 19:06:27 UTC
Which app is this problem appearing with?
Comment 5 Paul 2023-11-09 15:23:46 UTC
For me, and at the moment, it's appearing in KGpg Editor and Firefox (when `widget.use-xdg-desktop-portal.file-picker` is set to `1`).
Comment 6 Paul 2023-11-10 11:24:42 UTC
(In reply to Harald Sitter from comment #4)
> Which app is this problem appearing with?

To add to this - Waevbox (https://wavebox.io) is another (it is a Chromium based browser application).
Comment 7 Harald Sitter 2023-11-10 12:08:54 UTC
Curious

What's the output of 

busctl --user list | grep KIOFuse
Comment 8 Paul 2023-11-10 13:13:28 UTC
(In reply to Harald Sitter from comment #7)
> Curious
> 
> What's the output of 
> 
> busctl --user list | grep KIOFuse

```
org.kde.KIOFuse                                - -               -    (activatable) -                 -       -
```

I was incorrect about KGpg not working for remote shares. Apologies, I must have been holding it wrong.

However, Firefox and Wavebox both still didn't work. I did notice that the picker windows were different to KGpg (Recent Files section was missing for example). So I started digging into it a little more. I changed `widget.use-xdg-desktop-portal.mime-handler` in Firefox to `1` as well and that made no difference. I also found https://wiki.archlinux.org/title/Firefox (see KDE Integration) and double-checked everything is there. I reinstalled some of the packages just as belt and braces and as I had no other ideas.

I finally gave up and just rebooted and everything started working. Both Wavebox and Firefox are using the same picker as KGpg and remote shares now work. Previously changes to Firefox config have been instant so I genuinely have no idea why it didn't work until a reboot this time. Even after restarting the application.

I'm not sure this is much help to anybody, but a suggestion would be to reinstall some of the packages again if this still isn't working.

I can't provide much help to anybody else as I don't think I did anything.