summarylogtreecommitdiffstats
path: root/mimeo-detection.patch
diff options
context:
space:
mode:
Diffstat (limited to 'mimeo-detection.patch')
-rw-r--r--mimeo-detection.patch16
1 files changed, 9 insertions, 7 deletions
diff --git a/mimeo-detection.patch b/mimeo-detection.patch
index d7911fa7a715..a55bbadffae8 100644
--- a/mimeo-detection.patch
+++ b/mimeo-detection.patch
@@ -1,6 +1,6 @@
-commit d39d0ebd0c93dc5a589b81dc8909db8fc64baafd
+commit bd3e1905f54b06ff5ca541272253fcee7aba4819
Author: Narrat <autumn-wind@web.de>
-Date: Thu Sep 26 21:01:53 2019 +0200
+Date: Mon Apr 13 15:59:44 2020 +0200
Add support for mimeo
@@ -117,10 +117,10 @@ index 95f707e..9c2f511 100644
;;
esac
diff --git a/scripts/xdg-settings.in b/scripts/xdg-settings.in
-index 3781de8..6ec7c70 100644
+index 3781de8..e6ea67b 100644
--- a/scripts/xdg-settings.in
+++ b/scripts/xdg-settings.in
-@@ -471,6 +471,42 @@ set_browser_xfce()
+@@ -471,6 +471,44 @@ set_browser_xfce()
}
# }}} xfce
@@ -151,7 +151,9 @@ index 3781de8..6ec7c70 100644
+set_browser_mimeo()
+{
+ DEBUG 1 "Running mimeo --prefer x-scheme-handler/http \"$1\""
-+ mimeo --prefer x-scheme-handler/http \"$1\"
++ for protocol in http https about unknown; do
++ mimeo --prefer x-scheme-handler/$protocol \"$1\" || return
++ done
+ if [ $? -eq 0 ]; then
+ exit_success
+ else
@@ -163,7 +165,7 @@ index 3781de8..6ec7c70 100644
# {{{ generic
get_browser_generic()
-@@ -713,6 +749,24 @@ set_url_scheme_handler_xfce()
+@@ -713,6 +751,24 @@ set_url_scheme_handler_xfce()
}
# }}} xfce
@@ -188,7 +190,7 @@ index 3781de8..6ec7c70 100644
# {{{ generic
get_url_scheme_handler_generic()
-@@ -867,6 +921,10 @@ case "$DE" in
+@@ -867,6 +923,10 @@ case "$DE" in
dispatch_specific xfce "$@"
;;