diff --git a/scripts/xdg-open b/scripts/xdg-open index fee4204..80e99eb 100755 --- a/scripts/xdg-open +++ b/scripts/xdg-open @@ -360,6 +360,15 @@ open_kde() open_gnome() { if gvfs-open --help 2>/dev/null 1>&2; then + # Split on ":" in order to get the protocol + prot=`echo ${1%:*}` + + case $prot in + # We need to mount these protocols before we + # open them + "smb"|"ftp") gvfs-mount "$1";; + esac + gvfs-open "$1" else gnome-open "$1"