aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-08 01:45:35 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-08 01:45:35 +0200
commit846241189e2a73dcd11605d3f77d61dce0469e02 (patch)
treede0ea3a682bfc41ae0cd1256ae10d075461c26f1 /include
parent7bee923938bc1756110461c916a945979a7c197b (diff)
Add -portal-session-token-filepath option to specify where desktop portal session token is saved/restore
Diffstat (limited to 'include')
-rw-r--r--include/capture/portal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/capture/portal.h b/include/capture/portal.h
index 989b042..f80325d 100644
--- a/include/capture/portal.h
+++ b/include/capture/portal.h
@@ -9,6 +9,8 @@ typedef struct {
bool hdr;
bool record_cursor;
bool restore_portal_session;
+ /* If this is set to NULL then this defaults to $XDG_CONFIG_HOME/gpu-screen-recorder/restore_token ($XDG_CONFIG_HOME defaults to $HOME/.config) */
+ const char *portal_session_token_filepath;
} gsr_capture_portal_params;
gsr_capture* gsr_capture_portal_create(const gsr_capture_portal_params *params);