Created
February 14, 2017 07:53
-
-
Save su-v/927431e755a167320da4a9bc89d27a8e to your computer and use it in GitHub Desktop.
Add desktop entry and default applications to support opening links in GUI text, labels
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
diff -u -N Contents/Resources/share/applications.orig/mimeapps.list Contents/Resources/share/applications/mimeapps.list | |
--- Contents/Resources/share/applications.orig/mimeapps.list 1970-01-01 01:00:00.000000000 +0100 | |
+++ Contents/Resources/share/applications/mimeapps.list 2017-02-14 08:46:35.000000000 +0100 | |
@@ -0,0 +1,3 @@ | |
+[Default Applications] | |
+x-scheme-handler/http=open.desktop | |
+x-scheme-handler/https=open.desktop | |
diff -u -N Contents/Resources/share/applications.orig/open.desktop Contents/Resources/share/applications/open.desktop | |
--- Contents/Resources/share/applications.orig/open.desktop 1970-01-01 01:00:00.000000000 +0100 | |
+++ Contents/Resources/share/applications/open.desktop 2017-02-14 08:46:40.000000000 +0100 | |
@@ -0,0 +1,11 @@ | |
+[Desktop Entry] | |
+Version=1.0 | |
+Name=Open | |
+GenericName=Open | |
+Comment=Open wih registered native application | |
+Exec=open %u | |
+Icon=None | |
+StartupNotify=false | |
+Terminal=false | |
+Type=Application | |
+Categories=Utility; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment