gnome-shell/js/dbusServices
Jonas Dreßler cbfbdc4be5 screencastService: Streamline teardown and error handling
We're tracking three different state-machines in the Recorder object:
The state of the gstreamer pipeline, the state of the screencast
session, and the sender of our dbus invocation that might vanish.

Properly handling errors that might appear in any of those three "black
boxes" is not easy, especially tearing down the other two when one of
them breaks.

So refactor the error handling here: Add a single error path for each of
those three states we're tracking, and make them all subsequently call
the _bailOutOnError() method. From there we tear down the other states and
call the error callbacks.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2197>
2023-04-25 17:17:41 +02: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 screencastService: Streamline teardown and error handling 2023-04-25 17:17:41 +02:00
screensaver js: Use async D-Bus wrappers 2022-08-01 18:51:14 +00:00
dbus-service.in dbusServices: Add some base classes for small stand-alone services 2020-03-12 16:09:27 +00:00
dbus-service.service.in dbusServices: Add some base classes for small stand-alone services 2020-03-12 16:09:27 +00:00
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