shell: Add helpers to start/stop systemd units
These just send the respective DBus message to the systemd user service. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/680
This commit is contained in:

committed by
Carlos Garnacho

parent
6dccbc5a90
commit
9194de8460
@@ -59,6 +59,13 @@ cairo_surface_t * shell_util_composite_capture_images (ClutterCapture *captures
|
||||
|
||||
void shell_util_check_cloexec_fds (void);
|
||||
|
||||
gboolean shell_util_start_systemd_unit (const char *unit,
|
||||
const char *mode,
|
||||
GError **error);
|
||||
gboolean shell_util_stop_systemd_unit (const char *unit,
|
||||
const char *mode,
|
||||
GError **error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __SHELL_UTIL_H__ */
|
||||
|
Reference in New Issue
Block a user