Okay, strange, tried adding that in the .desktop
file, but does not change a bit. Note that running from the command line always works, only when I start it via GNOME dash, it does not start at all (even if no other Firefox is running).
--new-instance
and starting Firefox from dash even once crashed my whole GNOME session (login – Okay I forgot to run update-desktop-database
there), though I cannot reproduce this.
Anyway, also with update-desktop-database
it does not change things.
Having the first start to be independent would already help me a lot, after all.
Interesting, though this – yet again – is harder on Silverblue to modify as the file system is read-only or obvious reason (It’s how atomic desktops work). So I don’t know how to modify it.
Ah, okay, I see, I tried that, but for me it does not work. I first tried it in an existing console, but for some reason I need to open a new shell… anyway. I changed it like this:
$ diff -u /usr/bin/firefox /var/usrlocal/bin/firefox
--- /usr/bin/firefox 1970-01-01 01:00:00.000000000 +0100
+++ /var/usrlocal/bin/firefox 2024-06-10 15:43:40.345585015 +0200
@@ -279,7 +279,11 @@
then
export MOZ_APP_REMOTINGNAME=org.mozilla.firefox
fi
-export MOZ_DBUS_APP_NAME=firefox
+if [ -z "$MOZ_DBUS_APP_NAME" ]
+then
+ export MOZ_DBUS_APP_NAME=firefox-rpm
+fi
+echo "MOZ_DBUS_APP_NAME=$MOZ_DBUS_APP_NAME"
# Flatpak specific environment variables
Anyway, with the -rpm
prefix Firefox just crashes when started from the command line:
$ firefox
MOZ_DBUS_APP_NAME=firefox-rpm
[Parent 106264, Main Thread] WARNING: nsDBusRemoteServer: dbus_validate_path() failed!: 'glib warning', file /builddir/build/BUILD/firefox-126.0/toolkit/xre/nsSigHandlers.cpp:187
** (org.mozilla.firefox:106264): WARNING **: 15:42:58.899: nsDBusRemoteServer: dbus_validate_path() failed!
[Parent 106264, Main Thread] WARNING: g_dbus_connection_register_object: assertion 'object_path != NULL && g_variant_is_object_path (object_path)' failed: 'glib warning', file /builddir/build/BUILD/firefox-126.0/toolkit/xre/nsSigHandlers.cpp:187
(org.mozilla.firefox:106264): GLib-GIO-CRITICAL **: 15:43:00.112: g_dbus_connection_register_object: assertion 'object_path != NULL && g_variant_is_object_path (object_path)' failed
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=3Exiting due to channel error.
.77433) Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=3.74295) Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=3.8559) Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=3.83633) Exiting due to channel error.
Exiting due to channel error.
[1] 106264 segmentation fault (core dumped) firefox
$ firefox
MOZ_DBUS_APP_NAME=firefox-rpm
[Parent 107275, Main Thread] WARNING: nsDBusRemoteServer: dbus_validate_path() failed!: 'glib warning', file /builddir/build/BUILD/firefox-126.0/toolkit/xre/nsSigHandlers.cpp:187
** (org.mozilla.firefox:107275): WARNING **: 15:43:20.925: nsDBusRemoteServer: dbus_validate_path() failed!
[Parent 107275, Main Thread] WARNING: g_dbus_connection_register_object: assertion 'object_path != NULL && g_variant_is_object_path (object_path)' failed: 'glib warning', file /builddir/build/BUILD/firefox-126.0/toolkit/xre/nsSigHandlers.cpp:187
(org.mozilla.firefox:107275): GLib-GIO-CRITICAL **: 15:43:22.331: g_dbus_connection_register_object: assertion 'object_path != NULL && g_variant_is_object_path (object_path)' failed
Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=4.74207) [1] 107275 segmentation fault (core dumped) firefox
This is reproducible. And yes, even if I have the old Firefox closed.
Also, this does not change the behaviour from GNOME dash, it still does not start there Probably, because it crashes now? I don’t know where I may find it out. I tried journalctl
, but it does not seem to list anything useful:
Useless journalctl logs
un 10 15:49:24 **** rpm-ostree[111717]: rpm-md repo 'updates-archive' (cached); generated: 2024-05-22T01:41:39Z solvables: 13161
Jun 10 15:50:23 **** rpm-ostree[111717]: Allowing active client :1.550 (uid 1000)
Jun 10 15:50:23 **** rpm-ostree[111717]: client(id:gnome-software dbus:1.550 unit:app-gnome-org.gnome.Software-73631.scope uid:1000) vanished; remaining=0
Jun 10 15:50:23 **** rpm-ostree[111717]: In idle state; will auto-exit in 60 seconds
Jun 10 15:50:54 **** gnome-shell[73336]: Received error from D-Bus search provider org.gnome.Terminal.desktop: Gio.IOErrorEnum: Die Methode kann nicht aufgerufen werden; Der Proxy ist fürden allgemein bekannten Namen org.gnome.Terminal ohne Besitzer, und der Proxy wurde mit dem Flag »G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START« erstellt
Jun 10 15:50:54 **** systemd[2531]: Started dbus-:1.2-org.gnome.Calculator.SearchProvider@13.service.
Jun 10 15:50:54 **** systemd[2531]: Started dbus-:1.2-org.gnome.Contacts.SearchProvider@13.service.
Jun 10 15:50:54 **** systemd[2531]: Started dbus-:1.2-org.gnome.Nautilus@13.service.
Jun 10 15:50:54 **** systemd[2531]: Started dbus-:1.2-org.gnome.Settings.SearchProvider@10.service.
Jun 10 15:50:54 **** systemd[2531]: Started dbus-:1.2-org.gnome.clocks@13.service.
Jun 10 15:50:54 **** nautilus[112304]: Connecting to org.freedesktop.Tracker3.Miner.Files
Jun 10 15:50:54 **** systemd[2531]: Started app-flatpak-org.gnome.Calculator-112302.scope.
Jun 10 15:50:54 **** systemd[2531]: Started app-flatpak-org.gnome.Contactas-112303.scope.
Jun 10 15:50:54 **** systemd[2531]: Started app-flatpak-org.gnome.clocks-112309.scope.
Jun 10 15:50:54 **** gnome-shell[73336]: Received error from D-Bus search provider org.gnome.Terminal.desktop: Gio.IOErrorEnum: Die Methode kann nicht aufgerufen werden; Der Proxy ist fürden allgemein bekannten Namen org.gnome.Terminal ohne Besitzer, und der Proxy wurde mit dem Flag »G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START« erstellt
Jun 10 15:50:54 **** gnome-calculato[112364]: search-provider.vala:127: Failed to spawn Calculator: Der Kindprozess wurde mit Signal 9 beendet
Jun 10 15:50:54 **** systemd[2531]: Started dbus-:1.2-org.gnome.NautilusPreviewer@13.service.
Jun 10 15:50:54 **** daemon.js[112381]: Warning: Reading certificate from stdin since no -in or -new option is given
Jun 10 15:50:54 **** gnome-shell[73336]: Received error from D-Bus search provider org.gnome.Terminal.desktop: Gio.IOErrorEnum: Die Methode kann nicht aufgerufen werden; Der Proxy ist fürden allgemein bekannten Namen org.gnome.Terminal ohne Besitzer, und der Proxy wurde mit dem Flag »G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START« erstellt
Jun 10 15:50:54 **** rpm-ostree[111717]: Allowing active client :1.550 (uid 1000)
Jun 10 15:50:54 **** rpm-ostree[111717]: client(id:gnome-software dbus:1.550 unit:app-gnome-org.gnome.Software-73631.scope uid:1000) added; new total=1
Jun 10 15:50:54 **** rpm-ostree[111717]: Handling GetPackages for caller :1.550
Jun 10 15:50:54 **** rpm-ostree[111717]: Enabled rpm-md repositories: fedora rpmfusion-free fedora-cisco-openh264 updates rpmfusion-free-updates updates-archive
Jun 10 15:50:55 **** rpm-ostree[111717]: Importing rpm-md...done
Jun 10 15:50:55 **** rpm-ostree[111717]: rpm-md repo 'fedora' (cached); generated: 2024-04-14T18:51:11Z solvables: 74881
Jun 10 15:50:55 **** rpm-ostree[111717]: rpm-md repo 'rpmfusion-free' (cached); generated: 2024-04-20T12:11:51Z solvables: 422
Jun 10 15:50:55 **** rpm-ostree[111717]: rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2024-03-12T11:45:42Z solvables: 3
Jun 10 15:50:55 **** rpm-ostree[111717]: rpm-md repo 'updates' (cached); generated: 2024-06-10T01:23:37Z solvables: 17164
Jun 10 15:50:55 **** rpm-ostree[111717]: rpm-md repo 'rpmfusion-free-updates' (cached); generated: 2024-06-07T11:49:49Z solvables: 119
Jun 10 15:50:55 **** rpm-ostree[111717]: rpm-md repo 'updates-archive' (cached); generated: 2024-05-22T01:41:39Z solvables: 13161
Whereas the other CLI-started crashes are very much a big red errors: Crash logs in journalctl when firefox is started with MOZ_DBUS_APP_NAME=firefox-rpm in Fedora 40, see · GitHub
What I want
As a general note about the issue, I see the reason for the app(s) to be regarded as “one app” and why it happens, but I think, IMHO, this is unfortunate. I have always used both versions, one flatpak and one non-flatpaked, as e.g. WebExtensions or other features are not yet (fully) supported in flatpak.
Actually, I also do not really need to run them side-by-side, I would be fine if the rpm firefox would open at all… I could close the flatpak version and open the rpm one, that would already be better than before the Fedora 40 change here…