Add -portal-session-token-filepath option to specify where desktop portal session token is saved/restore

This commit is contained in:
dec05eba
2024-08-08 01:45:35 +02:00
parent 7bee923938
commit 846241189e
6 changed files with 57 additions and 31 deletions

View File

@@ -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);