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

[Feature request]: Allow services to be restarted when extension is installed #5776

Open
2 tasks done
eeejay opened this issue Apr 15, 2024 · 0 comments
Open
2 tasks done

Comments

@eeejay
Copy link
Contributor

eeejay commented Apr 15, 2024

Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Suggestion

A flatpak may export a service that relies on extensions for functionality. The service will not have access to a newly installed extension if it is already running because the extension's files will not be mounted into an existing sandbox.

I propose that a service can export an interface that would allow the host to respawn the service after an extension is installed. The interface will have a Shutdown() method, similar to my proposal in issue #5775, and a Spawn() method. The Shutdown() one would be called, followed by the Spawn()

Note

I understand that there is no obvious need for a Spawn() method because the whole point of activatable services is that they will become alive when called. The case where this is needed is if there are already open apps that have a proxy to this service. Unless it is re-spawned, any changed D-Bus properties will not get updated in the proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant