summaryrefslogtreecommitdiffstats
path: root/public/.local/bin/myfile-handler.sh
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2024-09-12 05:07:06 +0900
committerMitsuo Tokumori <[email protected]>2024-09-12 05:07:06 +0900
commite5cc87b1d9fd9e5564aa50d5b807346bb0d1b435 (patch)
tree2e10044d372f52bd8ea061cc52b1399790e2ef27 /public/.local/bin/myfile-handler.sh
parent37ff7062874b72bafa99afe661f42653565ed511 (diff)
downloaddotfiles-e5cc87b1d9fd9e5564aa50d5b807346bb0d1b435.tar.gz
dotfiles-e5cc87b1d9fd9e5564aa50d5b807346bb0d1b435.tar.bz2
dotfiles-e5cc87b1d9fd9e5564aa50d5b807346bb0d1b435.zip
Add custom URL scheme hanlder script desktop entry
Diffstat (limited to 'public/.local/bin/myfile-handler.sh')
-rwxr-xr-xpublic/.local/bin/myfile-handler.sh1
1 files changed, 1 insertions, 0 deletions
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"