Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support URL Encoded paths #33

Open
Iamnotagenius opened this issue Nov 30, 2023 · 0 comments
Open

Support URL Encoded paths #33

Iamnotagenius opened this issue Nov 30, 2023 · 0 comments

Comments

@Iamnotagenius
Copy link

Thanks for this useful script. I've installed it as a default application and when I'm opening a, for example, .docx file in a Telegram Desktop, the script does nothing. Upon further inspection, it outputs:

/home/iamnotagenius/.local/share/TelegramDesktop/file://home/iamnotagenius/Downloads/Telegram%20Desktop/awin%20%234%202022.docx
cannot open `/home/iamnotagenius/.local/share/TelegramDesktop/file://home/iamnotagenius/Downloads/Telegram%20Desktop/awin%20%234%202022.docx' (No such file or directory)
/usr/bin/zaread: line 74: cd: /home/iamnotagenius/.local/share/TelegramDesktop/file://home/iamnotagenius/Downloads/Telegram%20Desktop/: No such file or directory
/usr/bin/zaread: line 74: return: can only `return' from a function or sourced script

So, I found out that the script gets file:///home/iamnotagenius/Downloads/Telegram%20Desktop/awin%20%234%202022.docx instead of an actual path. It would be nice if the script will handle this scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant