mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-17 14:39:13 -04:00
Export flatpak_run_gc_ids()
Currently, we only remove stale instance directories when a new instance ID is allocated. A future 'flatpak ps' command will want to remove stale instances before enumerating them, so make this function available. Closes: #2023 Approved by: alexlarsson
This commit is contained in:
committed by
Atomic Bot
parent
95e5b394c2
commit
2d26cc07c2
@@ -173,5 +173,6 @@ gboolean flatpak_run_app (const char *app_ref,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
void flatpak_run_gc_ids (void);
|
||||
|
||||
#endif /* __FLATPAK_RUN_H__ */
|
||||
|
||||
@@ -1571,7 +1571,7 @@ flatpak_app_compute_permissions (GKeyFile *app_metadata,
|
||||
return g_steal_pointer (&app_context);
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
flatpak_run_gc_ids (void)
|
||||
{
|
||||
g_autofree char *base_dir = g_build_filename (g_get_user_runtime_dir (), ".flatpak", NULL);
|
||||
|
||||
Reference in New Issue
Block a user