File: session.h

package info (click to toggle)
labwc 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,980 kB
  • sloc: ansic: 34,416; perl: 5,836; xml: 875; sh: 162; python: 131; makefile: 12
file content (32 lines) | stat: -rw-r--r-- 966 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_SESSION_H
#define LABWC_SESSION_H

struct server;

/**
 * session_run_script - run a named session script (or, in merge-config mode,
 * all named session scripts) from the XDG path.
 */
void session_run_script(const char *script);

/**
 * session_environment_init - set environment variables based on <key>=<value>
 * pairs in `${XDG_CONFIG_DIRS:-/etc/xdg}/labwc/environment` with user override
 * in `${XDG_CONFIG_HOME:-$HOME/.config}`
 */
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(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(struct server *server);

#endif /* LABWC_SESSION_H */