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

Bypassing D-Bus activation means xdg-desktop-portal-cosmic is racing with xdg-desktop-portal #117

Open
alyssais opened this issue Dec 5, 2024 · 1 comment

Comments

@alyssais
Copy link

alyssais commented Dec 5, 2024

When xdg-desktop-portal starts, it will try to create proxies for the portals offered by xdg-desktop-portal-cosmic. If those portals don't already exist, it will try to activate xdg-desktop-portal-cosmic through D-Bus. xdg-desktop-portal-cosmic's D-Bus file just runs false, so xdg-desktop-portal gives up on trying to run that portal — it doesn't expect that a service that fails to start will somehow start itself later on. This means that there will be no COSMIC portals for the whole session, unless xdg-desktop-portal is restarted.

Failed to create screencost proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.cosmic: Process org.freedesktop.impl.portal.desktop.cosmic exited with status 1

For me, this meant that updating from alpha 2 to alpha 3 broke my COSMIC portals, because libcosmic's font preloading was enough to make starting xdg-desktop-portal-cosmic consistently slow enough not to register its name in time for xdg-desktop-portal trying to create its proxies.

@Drakulix
Copy link
Member

Drakulix commented Dec 6, 2024

yeah we need to fix our approach to privileged protocols and change cosmic-session to not launch xdg-desktop-portal anymore..

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

No branches or pull requests

2 participants