リンクはFirefoxで開こうとしましたが、失敗し、Killall firefoxの後にchromiumで開きます。

リンクはFirefoxで開こうとしましたが、失敗し、Killall firefoxの後にchromiumで開きます。

一部のGUIアプリケーション(signalやslackなど)でリンクをクリックするたびに何も起こらないか、画面がちらつくことがあります(firefoxを正常に起動しても画面が点滅します)。これは Firefox がすでに実行されているかどうかに関係なく発生します。 Firefoxウィンドウをすべて閉じても何も起こりません。ただし、killall firefoxコマンドラインで2回実行すると、Chromiumが突然開き、過去数日間にクリックしたすべてのリンクが表示されます。すべてのアプリでこれが起こるわけではありません。たとえば、gajimリンクはうまく開きます。

Firefoxは次のURLを開くように設定されています。

$ xdg-mime query default x-scheme-handler/http
firefox.desktop
$ xdg-mime query default x-scheme-handler/https
firefox.desktop
$ xdg-settings get default-web-browser
firefox.desktop
$ grep Exec /usr/share/applications/firefox.desktop
Exec=/usr/lib/firefox/firefox %u
Exec=/usr/lib/firefox/firefox --new-window %u
Exec=/usr/lib/firefox/firefox --private-window %u

リンクをクリックすると、2つのFirefoxプロセスが作成されます。 1つは機能せず、もう1つはリンクがあります。

$ ps aux | grep firefox
drew     1459371  0.0  0.0   6284  2324 pts/0    S+   17:43   0:00 grep --color=auto firefox
# Click on a link in slack now.
$ ps aux | grep firefox
drew     1459491  0.6  0.0 195908 31008 tty1     Sl   17:43   0:00 /usr/lib/firefox/firefox https://google.com
drew     1459494  1.0  0.0      0     0 tty1     Z    17:43   0:00 [firefox] <defunct>
drew     1459498  0.0  0.0   6284  2164 pts/0    S+   17:43   0:00 grep --color=auto firefox
$ killall firefox
# Nothing happens the first time, even if I use "killall -9 firefox"
$ ps aux | grep firefox
drew     1459555  0.8  0.0 195908 31096 tty1     Sl   17:43   0:00 /usr/lib/firefox/firefox https://google.com
drew     1459558  1.0  0.0      0     0 tty1     Z    17:43   0:00 [firefox] <defunct>
drew     1459668  0.0  0.0   6284  2312 pts/0    S+   17:43   0:00 grep --color=auto firefox
$ killall firefox
# Suddenly, chromium opens with the link from slack.
$ ps aux | grep firefox
drew     1460549  0.0  0.0   6284  2164 pts/0    S+   18:01   0:00 grep --color=auto firefox

Firefoxがすでに実行されているかどうかにかかわらず、同じプロセスが発生します。 Firefox ウィンドウを閉じても、これらのプロセスは終了しません。したがって、実行した後にのみこのkillall firefox動作を確認できます。

ターミナルウィンドウで次のいずれかのコマンドを実行すると、Firefoxは期待どおりに正常にリンクを開きます。

$ xdg-open https://google.com
$ /usr/lib/firefox/firefox https://google.com

私はアーチLinuxでデスクトップ環境なしでopenboxを使用しています。最近KDE Plasmaをインストールし、一度実行しましたが、パネルがめちゃくちゃになってすぐに削除されました。一般的なOpenbox設定に戻った後、いくつかの設定が混乱していることがわかりました。似たような時期に始まったと思います。

本当に変です!何が起こったのか知っていますか?

ベストアンサー1

おすすめ記事