gnome-shell/js/dbusServices
Florian Müllner a2acecb491 dbusService/screencast: Hold during gstreamer checks
Some gstreamer plugins require a connection to the display server,
so they block until the server is up and running. That's why we
moved the check into the D-Bus service, so that the blocking would
not lock up the compositor itself.

However the block can still delay the service initialization so
much that auto-shutdown hits immediately when returning from the
constructor. If that happens, the proxy on the shell side is no
longer backed by a remote object when the init callback runs, and
all properties therefore resolve as `null`.

As a result, gnome-shell thinks that screencasts aren't supported
and hides the screencast button.

Fix this by holding the service during the gstreamer checks, so
that the auto-shutdown timeout only starts after the service is
ready.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6051

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2533>
2022-11-09 11:15:04 +00:00
..
extensions js: Use async D-Bus wrappers 2022-08-01 18:51:14 +00:00
notifications js: Use async D-Bus wrappers 2022-08-01 18:51:14 +00:00
screencast dbusService/screencast: Hold during gstreamer checks 2022-11-09 11:15:04 +00:00
screensaver js: Use async D-Bus wrappers 2022-08-01 18:51:14 +00:00
dbus-service.in
dbus-service.service.in
dbusService.js dbusServices: Allow to persist services via environment 2022-02-10 13:14:45 +00:00
meson.build dbusServices/screencast: Install unconditionally 2022-05-20 12:00:22 +00:00
org.gnome.ScreenSaver.src.gresource.xml dbusServices: Refactor service utilities from fileUtils into dbusUtils 2022-07-05 03:41:41 -04:00
org.gnome.Shell.Extensions.src.gresource.xml dbusServices: Refactor service utilities from fileUtils into dbusUtils 2022-07-05 03:41:41 -04:00
org.gnome.Shell.Notifications.src.gresource.xml dbusServices: Refactor service utilities from fileUtils into dbusUtils 2022-07-05 03:41:41 -04:00
org.gnome.Shell.Screencast.src.gresource.xml dbusServices: Refactor service utilities from fileUtils into dbusUtils 2022-07-05 03:41:41 -04:00