mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
cage: return exit code of primary client
Some applications indicate different shutdown conditions by returning specific exit codes. One of these is e.g. Kodi, which returns 64 in case the user chose "Power off" and 66 in case the user chose "Reboot". In order to act on these exit codes, it thus makes sense in some situations to pass them on from the primary client to the caller of Cage. This exit code is only returned if the primary client is the cause of Cage terminating. Co-authored-by: Patrick Steinhardt <ps@pks.im>
This commit is contained in:
parent
9a4310f8b6
commit
121e3ac8b2
2 changed files with 18 additions and 9 deletions
1
server.h
1
server.h
|
|
@ -53,6 +53,7 @@ struct cg_server {
|
|||
|
||||
bool xdg_decoration;
|
||||
bool allow_vt_switch;
|
||||
bool return_app_code;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue