| Top |
| #define | phosh_async_error_warn() |
| #define | phosh_dbus_service_error_warn() |
| void | phosh_cp_widget_destroy () |
| GDesktopAppInfo * | phosh_get_desktop_app_info_for_app_id () |
| gchar * | phosh_munge_app_id () |
| char * | phosh_strip_suffix_from_app_id () |
| gboolean | phosh_find_systemd_session () |
| gboolean | phosh_error_warnv () |
| int | phosh_create_shm_file () |
| char * | phosh_util_escape_markup () |
| char * | phosh_util_local_date () |
#define phosh_async_error_warn(err, ...)
Prints a warning when err
is 'real' error. If it merely represents
a canceled operation it just logs a debug message. This is useful
to avoid this common pattern in async callbacks.
#define phosh_dbus_service_error_warn(err, ...)
Prints a warning when err
is 'real' error. If it merely indicates
that the DBus service is not present at all it just logs a debug
message.
GDesktopAppInfo *
phosh_get_desktop_app_info_for_app_id (const char *app_id);
Looks up an app info object for specified application ID. Tries a bunch of transformations in order to maximize compatibility with X11 and non-GTK applications that may not report the exact same string as their app-id and in their desktop file.
gchar *
phosh_munge_app_id (const gchar *app_id);
Munges an app_id according to the rules used by gnome-shell, feedbackd and phoc for gsettings:
char *
phosh_strip_suffix_from_app_id (const char *app_id);
Strip the desktop suffix from app_id.
gboolean phosh_error_warnv (const char *log_domain,GError *err,GQuark domain,int code,const gchar *fmt,...);
int
phosh_create_shm_file (off_t size);
Create a file share memory file of the given size.
char * phosh_util_escape_markup (const char *markup,gboolean allow_markup);
Escapes the given markup either fully or (when allow_markup
is TRUE) in a way
that is suitable for a notification body