Skip to content

Commit

Permalink
Bug fix for smb protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
cfgnunes committed Apr 16, 2024
1 parent 04ab1d3 commit de8dfa5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,9 @@ _get_files() {

# If the items are in a remote server, translate the addresses to 'gvfs'.
if [[ "$input_files" == *"://"* ]]; then
input_files=$(sed "s|\(\w*\)://|/run/user/$UID/gvfs/\1:host=|g" <<<"$input_files")
local working_directory=""
working_directory=$(_get_working_directory)
input_files=$(sed "s|[a-z0-9\+_-]*://[^$FIELD_SEPARATOR]*/|$working_directory/|g" <<<"$input_files")
fi

# Pre-select the input files. Also, expand it (if 'par_recursive' is true).
Expand Down Expand Up @@ -880,7 +882,7 @@ _get_working_directory() {
if [[ -n "$working_directory" ]] && [[ "$working_directory" == "file://"* ]]; then
working_directory=$(_text_uri_decode "$working_directory")
else
# Files selected in the search screen (or orther possible cases).
# Files selected in the search screen (or other possible cases).
working_directory=""
fi

Expand Down

0 comments on commit de8dfa5

Please sign in to comment.