Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: dbus-daemon/dbus-broker not told to reload after installing new D-Bus services #4849

Closed
4 tasks done
sophie-h opened this issue Apr 10, 2022 · 5 comments
Closed
4 tasks done
Labels

Comments

@sophie-h
Copy link

sophie-h commented Apr 10, 2022

Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.
  • If this is an issue with a particular app, I have tried filing it in the appropriate issue tracker for the app (e.g. under https://github.com/flathub/) and determined that it is an issue with Flatpak itself.
  • This issue is not a report of a security vulnerability (see here if you need to report a security issue).

Flatpak version

1.12.5

What Linux distribution are you using?

Fedora Linux

Linux distribution version

35/36

What architecture are you using?

x86_64

How to reproduce

$ flatpak install --user https://flathub.org/beta-repo/appstream/org.gnome.World.PikaBackup.flatpakref -y

Try to start Pika Backup from GNOME Shell.

Way to reproduce

Try

Expected Behavior

App starts.

Calling

$ busctl --user call org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus ListActivatableNames

lists 3 names that contain PikaBackup.

Actual Behavior

Nothing happens.

Try

$ busctl --user call org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus ListActivatableNames

and see that none of the three names containing PikaBackup is listed.

Additional Information

The bug described in bus1/dbus-broker#202 (comment) sounds very similar.

A beta tester posted the issue "Unable to launch from gnome-shell". The problem is reducible on a fresh install of Fedora 35 and 36. It can, for example, be fixed by one of these actions:

  • Calling systemctl reload --user dbus-broker.service
  • Restarting the system
  • Replacing the symlinks with the actual files

If Pika was installed before, it will (partially) work after installing the new beta version.

This is blocking the planned release of Pika Backup. Therefore, I would also be grateful for a workaround, even if I'm not doing something wrong.

@sophie-h sophie-h added the bug label Apr 10, 2022
@smcv smcv changed the title [Bug]: [Bug]: dbus-daemon/dbus-broker not told to reload after installing new D-Bus services Apr 10, 2022
@sophie-h
Copy link
Author

I have created a script that creates a flatpak only with a number of activatable services and lists the activatable service names afterward.

  • On fresh Fedora 35/36 installs it does not list any activatable names
  • On my Debian testing that I use daily, all activatable names are listed

At the same time, installing other apps from Flathub and starting them (via DBus activation) works fine on all systems.

Here is the script if it helps with debugging https://gitlab.gnome.org/-/snippets/3343

@mcatanzaro
Copy link
Collaborator

Calling systemctl reload --user dbus-broker.service

This seems like a pretty straightforward workaround

@chrisawi
Copy link
Collaborator

chrisawi commented Mar 8, 2024

I think this is #3342

It looks like the last comment there has identified the ultimate cause:

So it seems that because the services directories do not exist when the session is started, when they are created when a flatpak is installed, DBus does not react to any changes in them.

This does typically work when the export directory already exists, but reloading dbus-broker is probably the only solution to account for when it doesn't.

@mcatanzaro
Copy link
Collaborator

I think this is #3342

Agreed.

@smcv
Copy link
Collaborator

smcv commented Mar 8, 2024

Closing as duplicate of #3342, but I copied this issue report's better title to #3342.

@smcv smcv closed this as not planned Won't fix, can't repro, duplicate, stale Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants