[РЕШЕНО] Firefox не хочет обрабатывать протоколы tg и magnet

redix
А firefox у вас точно является браузером по умолчанию?
Он единственный браузер.

Вот так?
$ xdg-settings get default-web-browser
firefox.desktop
Удалил браузер, а вместе с ним пакет firefox-i18n-en-us и все неиспользуемые зависимости (pacman -Rns firefox). Переименовал папку с настройками браузера (mv ~/.mozilla ~/.mozilla1). Установил по-новой. Ссылки не открывались. Вернул папку на место и вспомнил, что нужно изменить настройки.
Поставил в about:config:
network.protocol-handler.expose.magnet = false
И сработало! При переходе по magnet-ссылке выскочило окно выбора программы.

С телеграммом не прокатило. Возможно, из-за этой ошибки
$ xdg-settings get default-url-scheme-handler tg
Usage: which [options] [--] COMMAND [...]
Write the full path of COMMAND(s) to standard output.

  --version, -[vV] Print version and exit successfully.
  --help,          Print this help and exit successfully.
  --skip-dot       Skip directories in PATH that start with a dot.
  --skip-tilde     Skip directories in PATH that start with a tilde.
  --show-dot       Don't expand a dot to current directory in output.
  --show-tilde     Output a tilde for HOME directory for non-root.
  --tty-only       Stop processing options on the right if not on tty.
  --all, -a        Print all matches in PATH, not just the first
  --read-alias, -i Read list of aliases from stdin.
  --skip-alias     Ignore option --read-alias; don't read stdin.
  --read-functions Read shell functions from stdin.
  --skip-functions Ignore option --read-functions; don't read stdin.

Recommended use is to write the output of (alias; declare -f) to standard
input, so that which can show aliases and shell functions. See which(1) for
examples.

If the options --read-alias and/or --read-functions are specified then the
output can be a full alias or function definition, optionally followed by
the full path of each command used inside of those.

Report bugs to <which-bugs@gnu.org>.
telegramdesktop.desktop
При выполнении от root`a работает нормально
# sudo xdg-settings get default-url-scheme-handler tg
telegramdesktop.desktop
Опаньки! Я пытался открывать tg-ссылки через https://telegram.me/addmeto, там стоит редирект. Из-за этого не работало.
Создал простенький html-код с ссылкой tg:// и при клике вылезло заветное окно выбора программы.

Вот, если кому нужно: https://jsfiddle.net/s715919d/1/ (окно выбора не выскакивает при открытии ссылок колесиком)

Спасибо все отвечающим!
 
Зарегистрироваться или войдите чтобы оставить сообщение.