Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 724090 Details for
Bug 802366
x11-misc/xdg-utils: fails to set the default browser
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix_default_browser.patch
fix_default_browser.patch (text/plain), 1.47 KB, created by
Alex Barker
on 2021-07-16 03:50:04 UTC
(
hide
)
Description:
fix_default_browser.patch
Filename:
MIME Type:
Creator:
Alex Barker
Created:
2021-07-16 03:50:04 UTC
Size:
1.47 KB
patch
obsolete
>diff --git a/scripts/xdg-settings.in b/scripts/xdg-settings.in >old mode 100644 >new mode 100755 >index 3781de869bc0ac646d2fc0cde4d074d9a72ae3d5..ab18d3a7bf2b2d535bbede8736a2225991188040 >--- a/scripts/xdg-settings.in >+++ b/scripts/xdg-settings.in >@@ -130,7 +130,7 @@ set_browser_mime() > fix_local_desktop_file "$1" "$MIME" || return > mkdir -p "${XDG_DATA_HOME:-$HOME/.local/share}/applications" > xdg-mime default "$1" "$MIME" || return >- if [ x"`get_browser_mime`" != x"$1" ]; then >+ if [ x"`get_browser_mime $MIME`" != x"$1" ]; then > # Put back the original value > xdg-mime default "$orig" "$MIME" > exit_failure_operation_failed >@@ -203,7 +203,13 @@ resolve_kde_browser_desktop() > > read_kde_browser() > { >- read_kde_config kdeglobals General BrowserApplication >+ ret=`read_kde_config kdeglobals General BrowserApplication` >+ if [ -z "$ret" ]; then >+ # since Plasma >= 5.19 >+ ret=`get_browser_mime "x-scheme-handler/http"` >+ fi >+ >+ echo $ret > } > > get_browser_kde() >@@ -252,7 +258,13 @@ check_browser_kde() > > set_browser_kde() > { >- set_browser_mime "$1" || return >+ # Set the default browser. >+ for protocol in http https; do >+ set_browser_mime "$1" "x-scheme-handler/$protocol" || return >+ done >+ >+ # Plasma < 5.19 >+ set_browser_mime "$1" "text/html" || return > if [ x"${KDE_SESSION_VERSION}" = x"5" ]; then > kwriteconfig5 --file kdeglobals --group General --key BrowserApplication "$1" > else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 802366
: 724090