aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/imgview
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/imgview')
-rwxr-xr-xplugins/imgview6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/imgview b/plugins/imgview
index 4bbff2d..16d483b 100755
--- a/plugins/imgview
+++ b/plugins/imgview
@@ -39,7 +39,11 @@ if [ -z "$1" ] || ! [ -s "$1" ]; then
exit 1
fi
-if command -v imvr >/dev/null 2>&1; then
+if uname | grep -q "Darwin"; then
+ if [ -f "$1" ]; then
+ open "$1" >/dev/null 2>&1 &
+ fi
+elif command -v imvr >/dev/null 2>&1; then
if [ -f "$1" ]; then
view_dir imvr "$1" >/dev/null 2>&1 &
elif [ -d "$1" ] || [ -h "$1" ]; then