Last active
August 13, 2016 10:32
-
-
Save dionysius/7417e3df6ab3fe9fc9dec85c9c02794e to your computer and use it in GitHub Desktop.
UrlOpener - Enable Linux to open Window's .url files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat "$@" | sed -n 's/^URL=\(.*\)$/\1/p' | while read link; do | |
xdg-open "$link" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Type=Application | |
Version=1.0 | |
Name=Urlopener | |
GenericName=.url files opener | |
Comment=Opens windows-created .url files with standard browser | |
Exec=urlopener %F | |
Terminal=false | |
Categories=Web | |
MimeType=text/plain; | |
#use "open with" dialog to select urlopener |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment