From f16066549fff7f94ec2ef33bc955db083eeee8f6 Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 1 Aug 2024 18:52:06 +0000 Subject: [PATCH] sane-open: fallback to URI instead of file when we cant do anything more specialized --- pkgs/additional/sane-open/sane-open | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/additional/sane-open/sane-open b/pkgs/additional/sane-open/sane-open index 9932f5724..aa056fabc 100755 --- a/pkgs/additional/sane-open/sane-open +++ b/pkgs/additional/sane-open/sane-open @@ -4,7 +4,7 @@ set -e usage() { - echo "usage: sane-open [options] " + echo "usage: sane-open [options] " echo "given some resource, ask the xdg-desktop-portal service to open it" echo "this could be either the name of an application, or a URI identifying a file" echo @@ -236,8 +236,8 @@ if [ -z "$resourceType" ]; then log "detected resourceType=application (warning: '$resource' is not visible on disk)" resourceType=application else - log "detected resourceType=file (warning: '$resource' is not visible on disk)" - resourceType=file + log "unknown resource; treating as URI: $resource" + resourceType=uri fi fi