stringan wrote:Have now fronted xdg-settings with a script something like this:Performance is almost 200x faster than freedesktop.org's xdg-settings scriptCode: Select all
#!/usr/bin/env bash # Fast wrapper to check default browser; save as /usr/local/bin/xdg-settings if [[ "$1 $2" == "check default-web-browser" ]]; then def="$(sed -r "/^\[Default Applications\]/,/^\[/!d;/^x-scheme-handler\/http=/!d;s///;s/;.*//" ~/.config/mimeapps.list)" if [[ $def == $3 ]]; then echo yes; else echo no; fi # Check <default>.desktop against <test>.desktop exit fi exec /usr/bin/xdg-settings "$@"
Hence distinctly swifter loading of Slimjet now!
Faster Loading for Linux
- oftentired
- Posts: 1769
- Joined: Tue May 13, 2014 3:14 am
Faster Loading for Linux
User stringan posted this script in another subject.
For those of you who wear aluminum foil hats, the voices lie, don't believe them!
Mostly my replies are about Windows OS. If not I try to remember to specify Linux.
64 Bit SJ on Win 11
Mostly my replies are about Windows OS. If not I try to remember to specify Linux.
64 Bit SJ on Win 11
Re: Faster Loading for Linux
Thanks @oftentired for publicizing this further.
Of course, depending on what Linux desktop environment you use, your method of checking the default browser may have to differ from the one I described.
The specification at https://specifications.freedesktop.org/ ... index.html may also be of assistance.
Of course, depending on what Linux desktop environment you use, your method of checking the default browser may have to differ from the one I described.
The specification at https://specifications.freedesktop.org/ ... index.html may also be of assistance.