Bug 2026622
| Summary: | gnome-shell Error connecting to Nautilus | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Yaniv Ferszt <yferszt> |
| Component: | gnome-shell-extensions | Assignee: | Florian Müllner <fmuellner> |
| Status: | CLOSED ERRATA | QA Contact: | Martin Krajnak <mkrajnak> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.5 | CC: | dking, jadahl, jgrulich, oholy, tpelka, tpopela |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | gnome-shell-extensions-3.32.1-25.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-05-10 13:42:04 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Yaniv Ferszt
2021-11-25 10:59:44 UTC
I can confirm I see the warning when running the classic mode - except of the FileManager1 error, that I do not see). The GNOME mode doesn't show it, because it does not show desktop icons (which are/used-to-be provided by the Nautilus). Why that happens I've no idea, Nautilus is not a software I know anything about. I see all those messages over journalctl on my RHEL 8 VM as well. After some digging, I finally see why it is happening. The desktop-icons extension activates the "org.gnome.Nautilus" and "org.freedesktop.FileManager1" services at the same time. The problem is that they are served by the same daemon in our case. So two daemons are started but only one can succeed when acquiring the bus names. I am not sure this can be handled better from the Nautilus resp. D-Bus side, but I would say that it should be possible to handle this better from the desktop-icons extension side... This can be reproduced with two dbus-send calls at the same time: $ dbus-send --session --print-reply --dest="org.gnome.Nautilus" /org/gnome/Nautilus org.gnome.Nautilus.FileOperations.EmptyTrash & \ dbus-send --session --print-reply --dest="org.freedesktop.FileManager1" /org/gnome/Nautilus org.gnome.Nautilus.FileOperations.EmptyTrash [1] 12932 Error org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.FileManager1 exited with status 1 $ method return time=1637939989.676464 sender=:1.166 -> destination=:1.163 serial=35 reply_serial=2 [1]+ Done dbus-send --session --print-reply --dest="org.gnome.Nautilus" /org/gnome/Nautilus org.gnome.Nautilus.FileOperations.EmptyTrash Before moving this to the gnome-shell-extensions component, I will try to find out, whether it could be handled better from the Nautilus resp. D-Bus side... Just a note that the desktop-icons extension doesn't work with GNOME 40+, so can't be tested with recent Fedoras, but the dbus-send reproducer leads to similar errors in journal, though the dbus-send command doesn't fail itself, so maybe something has changed in D-Bus in the meantime: lis 29 09:02:20 t480s systemd[1294]: Started dbus-:1.2-org.freedesktop.FileManager1. lis 29 09:02:20 t480s systemd[1294]: Started dbus-:1.2-org.gnome.Nautilus. lis 29 09:02:20 t480s nautilus[323592]: Failed to register: Unable to acquire bus name 'org.gnome.Nautilus' lis 29 09:02:20 t480s systemd[1294]: dbus-:1.2-org.gnome.Nautilus: Main process exited, code=exited, status=1/FAILURE lis 29 09:02:20 t480s systemd[1294]: dbus-:1.2-org.gnome.Nautilus: Failed with result 'exit-code'. Does it cause any real issues, or is the main problem that there are some errors in the logs? I don't see how this should be fixed from the Nautilus side, feel free to correct me, thus moving to gnome-shell-extensions. To fix these errors, I would say that the desktop-icons extension should use only one of those services and it should fallback to another one only if the first one doesn't provide all the needed interfaces... (In reply to Ondrej Holy from comment #8) > To fix these errors, I would say that the desktop-icons extension should use only one of those > services and it should fallback to another one only if the first one doesn't > provide all the needed interfaces... I don't think that's worth the effort. As far as I can see, the extension assumes that nautilus is available, and only uses the org.freedesktop.FileManager1 interface for (two) actions that don't have an equivalent in the nautilus interface. That is, unless we explicitly support swapping out the file manager, I'll create all proxies for the org.gnome.Nautilus name and won't bother with fallbacks. Hmm, yes, this should be pretty enough currently. The org.freedesktop.FileManager1 service is probably meant to open files in the default file manager, which doesn't work currently anyway: https://gitlab.gnome.org/GNOME/nautilus/-/issues/228. gnome-shell-extension-screenshot-window-sizer-3.32.1-25.el8.noarch gnome-shell-extension-native-window-placement-3.32.1-25.el8.noarch gnome-shell-extension-auto-move-windows-3.32.1-25.el8.noarch gnome-shell-extension-apps-menu-3.32.1-25.el8.noarch gnome-shell-extension-workspace-indicator-3.32.1-25.el8.noarch gnome-shell-extension-launch-new-instance-3.32.1-25.el8.noarch gnome-shell-extension-user-theme-3.32.1-25.el8.noarch gnome-shell-extension-dash-to-dock-3.32.1-25.el8.noarch gnome-shell-extension-systemMonitor-3.32.1-25.el8.noarch gnome-shell-extension-window-list-3.32.1-25.el8.noarch gnome-shell-extension-no-hot-corner-3.32.1-25.el8.noarch gnome-shell-extension-windowsNavigator-3.32.1-25.el8.noarch gnome-shell-extension-places-menu-3.32.1-25.el8.noarch gnome-shell-extension-drive-menu-3.32.1-25.el8.noarch gnome-shell-extension-updates-dialog-3.32.1-25.el8.noarch gnome-shell-extension-common-3.32.1-25.el8.noarch gnome-shell-extension-dash-to-panel-3.32.1-25.el8.noarch gnome-shell-extension-window-grouper-3.32.1-25.el8.noarch gnome-shell-extension-desktop-icons-3.32.1-25.el8.noarch gnome-shell-extension-top-icons-3.32.1-25.el8.noarch gnome-shell-extension-gesture-inhibitor-3.32.1-25.el8.noarch gnome-shell-extension-panel-favorites-3.32.1-25.el8.noarch gnome-shell-extension-disable-screenshield-3.32.1-25.el8.noarch gnome-shell-extension-heads-up-display-3.32.1-25.el8.noarch gnome-shell-extension-horizontal-workspaces-3.32.1-25.el8.noarch I can confirm that the message is gone after last update (I've tried the reproducer before I updated the packages), I tested both Wayland/Xorg and both classic and standard session, the error message is gone. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (gnome-shell-extensions bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:1807 |