session: only update activation environment...

...when running DRM backend or by explicit request
This commit is contained in:
Andrew J. Hesford 2024-03-03 15:04:24 -05:00 committed by Consolatis
parent 22fe8cf546
commit c9d08f8218
4 changed files with 57 additions and 9 deletions

View file

@ -2,6 +2,8 @@
#ifndef LABWC_SESSION_H
#define LABWC_SESSION_H
struct server;
/**
* session_environment_init - set enrivonment variables based on <key>=<value>
* pairs in `${XDG_CONFIG_DIRS:-/etc/xdg}/lawbc/environment` with user override
@ -13,12 +15,12 @@ void session_environment_init(void);
* session_autostart_init - run autostart file as shell script
* Note: Same as `sh ~/.config/labwc/autostart` (or equivalent XDG config dir)
*/
void session_autostart_init(void);
void session_autostart_init(struct server *server);
/**
* session_shutdown - run session shutdown file as shell script
* Note: Same as `sh ~/.config/labwc/shutdown` (or equivalent XDG config dir)
*/
void session_shutdown(void);
void session_shutdown(struct server *server);
#endif /* LABWC_SESSION_H */