2 Commits
1.6.0 ... 1.6.1

Author SHA1 Message Date
fbt
ada3aafd2c Tiny fix: make file follow symlinks
Signed-off-by: fbt <fbt@fleshless.org>
2018-08-01 18:27:45 +03:00
fbt
beae2098fb duh
Signed-off-by: fbt <fbt@fleshless.org>
2018-07-29 10:10:08 +03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ sx-open is an attempt to implement a saner alternative to xdg-open.
## Installation ## Installation
Clone the repo, drop sx-open.cfg into your $HOME/.config. Clone the repo, drop sx-open.cfg into your $HOME/.config and set it up to do what you want. There are no built-in defaults, it's all in the config.
As this thing is meant to replace xdg-open, you will probably want to link sx-open into xdg-open somewhere in your $PATH as to override the default one. As this thing is meant to replace xdg-open, you will probably want to link sx-open into xdg-open somewhere in your $PATH as to override the default one.
## Usage ## Usage

View File

@@ -116,7 +116,7 @@ handle_target() {
[[ "$target" =~ ^/.* ]] || { target="${PWD}/${target}"; } # Turn relative paths to absolute ones. [[ "$target" =~ ^/.* ]] || { target="${PWD}/${target}"; } # Turn relative paths to absolute ones.
IFS=';' read target_mimetype charset <<< $( file -ib "$target" ) IFS=';' read target_mimetype charset <<< $( file -ibL "$target" )
target_left=$target_mimetype target_left=$target_mimetype
set -- "${mime_handlers[@]}" set -- "${mime_handlers[@]}"