Firefox を起動するときに「Navigator」の wm_class を設定しないでください。

Firefox を起動するときに「Navigator」の wm_class を設定しないでください。

次のようにFirefoxを起動します。

/usr/bin/firefox --no-remote -P Fastmail --class "FastmailFF"

究極の目標は、独自のアイコンを持ち、通常のブラウザとは無関係に存在する.desktopファイルに入れるコマンドを見つけることです。

上記のコンテンツは現在Firefoxアイコンの下にグループ化されています。

コマンドを使用してウィンドウを調べると、xprop WM_CLASS次の結果が表示されます。

WM_CLASS(STRING) = "Navigator", "FastmailFF"

デフォルトのFirefoxの場合、次のようになります。

WM_CLASS(STRING) = "Navigator", "firefox"

したがって、一般的な「Navigator」文字列がグループ化を引き起こすようです。

Navigator起動時に追加されるのを防ぐ方法はありますか?

Firefoxがスナップショット経由でインストールされているようです。

Version: 1:1snap1-0ubuntu2

私はgnome 42.5とwaylandを実行しています。

ベストアンサー1

アップデート (2023-07-07): -no-remoteCLI オプションを削除すると回避できます。Firefoxは実行中ですが応答しません。間違い。

--name FastmailFF私にとって(Fedora 37でWaylandとGnome 43を使用)問題は--class FastmailFF

完全なfirefox-personal.desktopファイルは次のとおりです。

[Desktop Entry]
Version=1.0
Name=Firefox (Personal)
GenericName=Web Browser
Comment=Browse the Web
Exec=firefox -P personal --name FirefoxPersonal %u
Icon=firefox
Terminal=false
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
# NOTE: If this is not set to the same as the argument of the --name option,
# then GNOME Shell won't show the nice Firefox icon and the user facing
# "Firefox (Personal)" text along with it.
StartupWMClass=FirefoxPersonal
Categories=Network;WebBrowser;
Keywords=web;browser;internet;
Actions=new-window;new-private-window;profile-manager-window;

X-Desktop-File-Install-Version=0.26

[Desktop Action new-window]
Name=Open a New Window
Exec=firefox -P personal --name FirefoxPersonal --new-window %u

[Desktop Action new-private-window]
Name=Open a New Private Window
Exec=firefox -P personal --name FirefoxPersonal --private-window %u

おすすめ記事