This could be enabled by default when we add at least a dialog showing that the file is ready to be opened (see #1375) since we don't want open-silently by default. (for security reasons)
Maybe each one could be enabled independently?
Basic support added in r17726.
xdg-open /some/file
Will end up sending the file to the client and ask it to open it. (which is not allowed by default)
forwarding of xdg-open for URLs
Done in:
forward-xdg-open
by default
gnome-open
and gvfs-open
Things that could be done to improve this:
forward-xdg-open
could support url
, paths
as options to only forward the type specified and let the other one through - meh
Notes:
$PATH
), so commands started with --start=xterm
(or --start-child
and friends), but not with DISPLAY=:N xterm
xdg-mime
for those? (PITA as this points to a desktop file..) - see Where does firefox get the “default” applications for opening files from? (esp comments: gnome-open
, gvfs-open
, gio open
- some kind of sick joke?)
How to test:
forward-xdg-open=no
then xdg-open
works normally (not overriden with our custom script)
From here on, with forward-xdg-open=yes
(which is the default):
xdg-open https://xpra.org/
, this should popup the dialog asking the client if it accepts to open this URL
--open-url
to no
or yes
, and check again
xdg-open /path/to/some/file.png
, again, the dialog should come up
--file-transfer
to no
or yes
and check again (default value is ask
)
@maxmylyn: just a FYI.
Noted and closing.
For the html5 client, see #1862.
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1726