You are not logged in.

#1 2023-03-12 13:52:28

Ryaniskira
Member
Registered: 2020-07-26
Posts: 12

Apps trying to open links in Firefox - FF isn't default browser (KDE)

Ever since I reinstalled Arch I've noticed that applications have not been opening links in my web browser, Vivaldi. I have discovered the issue, they're trying to open in Firefox:

Mar 12 09:44:10 Remilia-Scarlet plasmashell[433923]: /usr/local/bin/xdg-open: line 59: /usr/bin/firefox: No such file or directory
Mar 12 09:44:11 Remilia-Scarlet plasmashell[433933]: /usr/local/bin/xdg-open: line 59: /usr/bin/firefox: No such file or directory
Mar 12 09:44:12 Remilia-Scarlet plasmashell[433939]: /usr/local/bin/xdg-open: line 59: /usr/bin/firefox: No such file or directory

The thing is though, Vivaldi is set to my default browser and invoking xdg-open directly to open a link successfully opens in Vivaldi so I don't know why applications are trying to use Firefox. This is an issue with Discord, Signal, and Android-Messages-Desktop. I've manually created a symlink to vivaldi in /usr/bin/firefox/ as a temp-workaround, but I would like to get down to the issue so I don't have to use improper fixes.

Last edited by Ryaniskira (2023-03-12 13:52:48)

Offline

#2 2023-03-12 14:11:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,471
Website

Re: Apps trying to open links in Firefox - FF isn't default browser (KDE)

Why do you have a version of xdg-open in /usr/local/bin/?  When you say invoking xdg-open directly works properly, is that /usr/bin/xdg-open or /usr/local/bin/xdg-open?

Note that if line 59 or /usr/local/bin/xdg-open calls /usr/bin/firefox, then that xdg-open is *completely* different from /usr/bin/xdg-open provided by xdg-utils.

Last edited by Trilby (2023-03-12 14:34:37)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-03-12 14:49:42

Ryaniskira
Member
Registered: 2020-07-26
Posts: 12

Re: Apps trying to open links in Firefox - FF isn't default browser (KDE)

No clue why it's in local (this is a fairly vanilla install, not many AUR packages except Android-Messages-Desktop), Pacman doesn't show any package owning it, so upon moving it so that it can't be invoked anymore the browser successfully opens without the symlink to Firefox. Odd.

EDIT: Ok so opening the file, it looks like it's something related to Firejail (which I do use).

## HTTP(S) URL handler for Firejail
#+ custom `xdg-open` wrapper

## IMPORTANT ##############################################
#+ install this file as /usr/local/bin/xdg-open to ensure the wrapper works as expected
#########################################################

# shellcheck disable=SC2154

but I do not need this special wrapper as I have granted the applications that I Firejailed to be able to open my regular browser.

Last edited by Ryaniskira (2023-03-12 14:51:45)

Offline

Board footer

Powered by FluxBB