diff options
author | 2022-07-27 16:06:14 -0400 | |
---|---|---|
committer | 2022-07-27 16:13:43 -0400 | |
commit | c675bafdf15cc19276bd8276c34f56404a5ecb62 (patch) | |
tree | 8199080fb9c676c6d8cbb77b41c7ebb94aa23dd7 /src/systemd_manager.h | |
parent | efbd734aca8b813710d7564d79696b1cf150a88c (diff) |
Rework to use systemd for app enumerationneedlefish_13.93.0needlefish/13.93.0lamprey_12.1.6lamprey_12.1.5lamprey/12.1.6lamprey/12.1.513.93.012.1.612.1.5
Rework to replace the Glib .desktop file based app enumeration
scheme with querying systemd for units matching the pattern
agl-app*@*.service and parsing out the application ID from the
unit instance name. At the moment this assumes the use of template
units, but that could be changed to open up using non-templated
units if desired. Application icons are now assumed to be named
with the application ID, and the systemd unit file "Description"
field is read and used as the application display name. This
avoids needing metadata outside of the systemd unit files.
Bug-AGL: SPEC-4466
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ida7dc8f7fdb96722df0886eb9a72ee14b0856083
Diffstat (limited to 'src/systemd_manager.h')
-rw-r--r-- | src/systemd_manager.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/systemd_manager.h b/src/systemd_manager.h index a8a4ac7..b866948 100644 --- a/src/systemd_manager.h +++ b/src/systemd_manager.h @@ -20,6 +20,7 @@ #include <glib-object.h> #include "app_info.h" +#include "app_launcher.h" G_BEGIN_DECLS @@ -30,6 +31,15 @@ G_DECLARE_FINAL_TYPE(SystemdManager, systemd_manager, SystemdManager *systemd_manager_new(void); +gboolean systemd_manager_enumerate_app_units(SystemdManager *self, + AppLauncher *launcher, + GList **units); + +gboolean systemd_manager_get_app_description(SystemdManager *self, + AppLauncher *launcher, + gchar *service, + gchar **description); + gboolean systemd_manager_start_app(SystemdManager *self, AppInfo *app_info); |