mate-desktop 1.29.2
Library with common API for various MATE modules
Loading...
Searching...
No Matches
mate-systemd.c File Reference
View source
#include "config.h"
#include "mate-systemd.h"
Include dependency graph for mate-systemd.c:

Macros

#define MATE_DESKTOP_USE_UNSTABLE_API
 

Functions

will be used to

create a unit name.

It should be the application ID or the executable in all other cases. If a desktop-id is passed then the .desktop suffix will be stripped.

It is advisable to use this function every time where the started application can be considered reasonably independent of the launching application. Placing it in a scope creates proper separation between the programs rather than being considered a single entity by systemd.

It is always safe to call this function. Note that a successful return code does not imply that a unit has been created. It solely means that no error condition was hit sending the request.

If @connection is NULL then g_dbus_get() will be called internally.

Note that most callers will not need to handle errors. As such, it is normal to pass a NULL @callback.

Stability: unstable

void mate_start_systemd_scope (const char *name, gint32 pid, const char *description, GDBusConnection *connection, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
 
gboolean mate_start_systemd_scope_finish (GAsyncResult *res, GError **error)
 mate_start_systemd_scope_finish: @res: A #GAsyncResult @error: Return location for errors, or NULL to ignore
 

Macro Definition Documentation

◆ MATE_DESKTOP_USE_UNSTABLE_API

#define MATE_DESKTOP_USE_UNSTABLE_API

Function Documentation

◆ mate_start_systemd_scope()

void mate_start_systemd_scope ( const char *  name,
gint32  pid,
const char *  description,
GDBusConnection *  connection,
GCancellable *  cancellable,
GAsyncReadyCallback  callback,
gpointer  user_data 
)

◆ mate_start_systemd_scope_finish()

gboolean mate_start_systemd_scope_finish ( GAsyncResult *  res,
GError **  error 
)

mate_start_systemd_scope_finish: @res: A #GAsyncResult @error: Return location for errors, or NULL to ignore

Finish an asynchronous operation to create a transient scope that was started with mate_start_systemd_scope().

Note that a successful return code does not imply that a unit has been created. It solely means that no error condition was hit sending the request.

Returns: FALSE on error, TRUE otherwise