Improve copying of camera images

This commit is contained in:
Konstantin Nazarov 2024-11-16 10:54:37 +00:00
parent 5156d7a617
commit 5e8865e779
Signed by: knazarov
GPG key ID: 4CFE0A42FA409C22

4
q-cam
View file

@ -24,11 +24,9 @@ elif [[ "$1" == "--preview" ]]; then
echo
fi
echo "$FILE"
elif [[ "$1" == "--run" ]]; then
shift
setsid -f wl-copy < "$CAMERA_DIR/$1"
echo "file://$CAMERA_DIR/$1" | setsid -f wl-copy -t text/uri-list
else
echo "Unexpected arguments: $@"
fi