Open tomaszn opened 9 months ago
Thanks for reporting. It seems like the portal might not be setup correctly on your system, or lack URI scheme associations for sftp://
.
Maybe that's the reason:
$ xdg-settings get default-url-scheme-handler
xdg-settings: default-url-scheme-handler not implemented for xfce
Any chance to fall back to xdg-open
in such a case?
Whether Valent is in a Flatpak or not, it uses standard library APIs (i.e. g_app_info_launch_default_for_uri()
), so unfortunately Valent isn't deciding to use the portal. Since GIO knows it's in a sandbox it will just use the portal automatically.
Same after switching to GNOME:
xdg-settings
shows nothing for the default handler, but there is a default handler for sftp:
$ xdg-settings get default-url-scheme-handler
$ grep scheme ~/.config/mimeapps.list
x-scheme-handler/https=xfce4-web-browser.desktop;
x-scheme-handler/trash=xfce4-file-manager.desktop;
x-scheme-handler/sftp=exo-ssh-handler.desktop
x-scheme-handler/http=xfce4-web-browser.desktop
x-scheme-handler/https=xfce4-web-browser.desktop
x-scheme-handler/mailto=xfce4-mail-reader.desktop
x-scheme-handler/trash=xfce4-file-manager.desktop
It looks like xdg-desktop-portal uses g_app_info_get_default_for_type()
, which I think checks XDG and the mimeapps, although the rabbit hole gets pretty deep.
I'm not sure there's much to do about this in Valent, though. Maybe the "open" action should be removed and replaced with just a mount/unmount toggle or something.
Current Behavior
On my Xubuntu 23.10, Xfce 4.18, no application is found to open (and mount) the "Browse Files" link.
A GNOME-looking window appears, and says:
Valent is installed from Flatpak.
At the same time, opening the link via
xdg-open
works. Thunar, the default file browser, appears on the screen.What can be the reason?
Expected Behavior
Thunar opens, and I see files kept on the phone.
Desktop
XFCE
Other Desktop
No response
Operating System
Ubuntu 23.10
Installed from
Nightly Flatpak
Version
nightly
Devices
KDE Connect (Android)
Plugins
Files
Logs
Screenshots