1 /* SPDX-License-Identifier: LGPL-2.1+ */
6 typedef struct XdgAutostartService
{
9 char *description
; /* Name in XDG desktop file */
11 char *type
; /* Purely as an assertion check */
13 char *working_directory
;
19 char *autostart_condition
; /* This is mostly GNOME specific */
20 char *kde_autostart_condition
;
22 char *gnome_autostart_phase
;
27 } XdgAutostartService
;
30 XdgAutostartService
* xdg_autostart_service_free(XdgAutostartService
*s
);
31 DEFINE_TRIVIAL_CLEANUP_FUNC(XdgAutostartService
*, xdg_autostart_service_free
);
33 char *xdg_autostart_service_translate_name(const char *name
);
34 int xdg_autostart_format_exec_start(const char *exec
, char **ret_exec_start
);
36 XdgAutostartService
*xdg_autostart_service_parse_desktop(const char *path
);
37 int xdg_autostart_service_generate_unit(XdgAutostartService
*service
, const char *dest
);