3 Commits
1.6.2 ... 1.6.3

Author SHA1 Message Date
fbt
27801d670f I have no ide how that piece of code got mangled
Signed-off-by: fbt <fbt@fleshless.org>
2018-08-02 12:52:56 +03:00
fbt
d706122511 kek
Signed-off-by: fbt <fbt@fleshless.org>
2018-08-01 20:20:59 +03:00
fbt
bdfa690762 remove redundant parts
Signed-off-by: fbt <fbt@fleshless.org>
2018-08-01 19:59:02 +03:00
2 changed files with 8 additions and 6 deletions

View File

@@ -120,7 +120,8 @@ handle_target() {
IFS=';' read target_mimetype _ <<< $( file -ib "$target" )
target_left=$target_mimetype
IFS=';' read target_mimetype_true _ <<< $( file -ib "$target" )
[[ $target_mimetype == 'inode/symlink' ]] && \
IFS=';' read target_mimetype_true _ <<< $( file -ibL "$target" )
set -- "${mime_handlers[@]}"
elif is_uri "$target"; then

View File

@@ -1,6 +1,7 @@
#!syntax bash
# Configuration file for sx-open
# Note that as sx-open checks the regexes in order, they should be placed in order from specific to less so.
# Regexes imply '^$'
# Disable desktop notifications
#cfg notify false
@@ -15,7 +16,7 @@
# %target% — The first argument to this script.
# If not found, target is appended to the end of <cmd>
# example:
#uri 'browser %target% --profile=work' '^https://.+\.?workdomain.tld.*'
#uri 'browser %target% --profile=work' 'https://.+\.?workdomain\.tld\..*'
# scheme <cmd> <scheme>[ <scheme> ...]
#scheme browser http https
@@ -23,10 +24,10 @@
# Or you can specify a regex for the entire uri:
# uri <cmd> <regex>[ <regex> ...]
#uri steam '^steam:'
#uri browser '^(https?|ftp):'
#uri steam 'steam:.+'
#uri browser '(https?|ftp):.+'
# Mime types for filesystem targets:
# mime <cmd> <regex>[ <regex> ...]
#mime sxiv '^image/'
#mime libreoffice '^application/msword$'
#mime sxiv 'image/.+'
#mime libreoffice 'application/msword'