Revision 3a113699d7a3076c16b7a249a40f80c5f751959e authored by Bastien Nocera on 20 February 2019, 00:39:10 UTC, committed by Philip Withnall on 17 July 2023, 14:20:50 UTC
The RestartData property on the org.gtk.Application interface can be
used by session services to save some data to disk should the
application disappear.

The application would call g_application_set_restart_data() when the
state of the application changes, with enough information for the
application to restart itself in the same "position".

FIXME:
 [ ] API docs
 [ ] note about restart data size
 [ ] have one example implementation of the session side

One idea would be for xdg-desktop-portal to save a stringified
RestartData to ~/.var/app/$ID/config/state.gvariant if none empty when
the application disappears from the bus.

Questions:
- Can we enforce to only do this for unique applications?
- Can we detect applications leaving the bus suddenly, or do we
  want to rely on them clearing RestartData if they're "done" (or should
  they always save state, *some* state)
- Should we implement this via org.gnome.SessionManager.Client and the
  app calling out to gnome-session instead?
- Or is this API fine, and gnome-session can do what xdg-desktop-portal
  does above?
1 parent 741a561
History
File Mode Size
.gitlab-ci
.reuse
LICENSES
docs
fuzzing
gio
glib
gmodule
gobject
gthread
m4macros
po
subprojects
tests
tools
.clang-format -rw-r--r-- 489 bytes
.dir-locals.el -rw-r--r-- 41 bytes
.editorconfig -rw-r--r-- 245 bytes
.gitignore -rw-r--r-- 223 bytes
.gitlab-ci.yml -rw-r--r-- 20.1 KB
.gitmodules -rw-r--r-- 151 bytes
.lcovrc -rw-r--r-- 577 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 135 bytes
CONTRIBUTING.md -rw-r--r-- 10.8 KB
COPYING l--------- 30 bytes
INSTALL.md -rw-r--r-- 4.4 KB
NEWS -rw-r--r-- 623.4 KB
README.md -rw-r--r-- 3.0 KB
SECURITY.md -rw-r--r-- 3.4 KB
glib.doap -rw-r--r-- 5.5 KB
meson.build -rw-r--r-- 82.4 KB
meson_options.txt -rw-r--r-- 3.5 KB

README.md

back to top