On Fri, Apr 15, 2022 at 05:54:56PM EDT, B. Watson wrote: > On Fri, 15 Apr 2022, Andrew Payne wrote: > > This slackbuild will adjust MIME settings for Brave. If you > > wish to retain your current MIME settings, you can remove: > > > > if [ -x /usr/bin/update-mime-database ]; then > > /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 > > fi > > > > from the doinst.sh file before building. > > > > ++ > > > > OR pull the MIME lines out of doinst.sh altogether. > > You should remove the update-mime-database lines from the doinst.sh, > since they don't do anything anyway, other than waste a bit of time. > update-mime-database doesn't do what you thought it did... [snip] > Basically, the mime database in /usr/share/mime defines MIME types > like image/png or text/plain. It doesn't have anything to do with user > preferences (your doinst.sh won't make Brave the default browser)... [snip]
In case anyone is perusing this list and wondering what *does* set user preferences for app associations for MIME types pursuant to the XDG standards, this section of an article on the Arch Wiki provides a good summary: https://wiki.archlinux.org/title/XDG_MIME_Applications#mimeapps.list tldr: it's file called mimeapps.list, looked for in various directories in a hierarchical fashion. _______________________________________________ SlackBuilds-users mailing list SlackBuilds-users@slackbuilds.org https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/ FAQ - https://slackbuilds.org/faq/