Skip to content

Instantly share code, notes, and snippets.

@dionysius
Last active August 13, 2016 10:32
Show Gist options
  • Save dionysius/7417e3df6ab3fe9fc9dec85c9c02794e to your computer and use it in GitHub Desktop.
Save dionysius/7417e3df6ab3fe9fc9dec85c9c02794e to your computer and use it in GitHub Desktop.
UrlOpener - Enable Linux to open Window's .url files
#!/bin/bash
cat "$@" | sed -n 's/^URL=\(.*\)$/\1/p' | while read link; do
xdg-open "$link"
done
[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