Faster Loading for Linux
Posted: Mon Aug 07, 2017 8:21 am
User stringan posted this script in another subject.
stringan wrote:Have now fronted xdg-settings with a script something like this:Performance is almost 200x faster than freedesktop.org's xdg-settings script
Code: 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!