From e5cc87b1d9fd9e5564aa50d5b807346bb0d1b435 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Thu, 12 Sep 2024 05:07:06 +0900 Subject: Add custom URL scheme hanlder script desktop entry --- public/.local/bin/laptop-backup.sh | 2 +- public/.local/bin/myfile-handler.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'public/.local/bin') diff --git a/public/.local/bin/laptop-backup.sh b/public/.local/bin/laptop-backup.sh index a22c179..0fcd0cd 100755 --- a/public/.local/bin/laptop-backup.sh +++ b/public/.local/bin/laptop-backup.sh @@ -31,7 +31,7 @@ rsync $rsync_options /var /mnt/$name # <10G rsync $rsync_options /home /mnt/$name # <900G rsync $rsync_options /etc /mnt/$name # <20M echo "Backup complete." -df -h #| grep -E "${name}|var|home|etc" +df -h umount /mnt/$name cryptsetup close $name diff --git a/public/.local/bin/myfile-handler.sh b/public/.local/bin/myfile-handler.sh index 40360b8..52496cd 100755 --- a/public/.local/bin/myfile-handler.sh +++ b/public/.local/bin/myfile-handler.sh @@ -3,5 +3,6 @@ url="$1" file_path="${url#myfile://}" +file_path=$(echo "$file_path" | sed 's/%20/ /g') file_path="${file_path/\~/$HOME}" xdg-open "$file_path" -- cgit v1.2.3