Found the source of the issue with the gio command when running:
$ desktop-file-install --dir=$HOME/.local/share/applications .local/share/applications/firefox.desktop
value "\\$HOME/.local/firefox/firefox %u" for key "Exec" in group "Desktop Entry" contains a reserved character '$' outside of a quote
Adding quotes didn't help. The solution was to hard-code my home directory in the Exec= line instead of using $HOME. Then the gio command successfully runs:
$ gio mime x-scheme-handler/http firefox.desktop Set firefox.desktop as the default for x-scheme-handler/http $ gio mime x-scheme-handler/https firefox.desktop Set firefox.desktop as the default for x-scheme-handler/https $ gio mime x-scheme-handler/https Default application for “x-scheme-handler/https”: firefox.desktop Registered applications: firefox.desktop chromium.desktop kfmclient_html.desktop Recommended applications: firefox.desktop chromium.desktop kfmclient_html.desktop On 12/25/22 23:06, Debian Bug Tracking System wrote:
Thank you for filing a new Bug report with Debian. You can follow progress on this Bug here: 1027006: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027006. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): Mattia Rizzolo <mat...@debian.org> If you wish to submit further information on this problem, please send it to 1027...@bugs.debian.org. Please do not send mail to ow...@bugs.debian.org unless you wish to report a problem with the Bug-tracking system.