clapper-app: Delete temp dir on exit

Pipeline preview creates temp files, so delete whole directory
recursively on app exit. Since these files are used through
launcher/portal with another app, we do not know when user finished
using them, thus we cannot detect and remove them earlier.
This commit is contained in:
Rafał Dzięgiel
2025-02-18 18:30:03 +01:00
parent dca8fbd336
commit b8a4a90b6c
3 changed files with 69 additions and 2 deletions

View File

@@ -87,4 +87,7 @@ GstElement * clapper_app_utils_make_element (const gchar *string);
G_GNUC_INTERNAL
GFile * clapper_app_utils_create_pipeline_svg_file (ClapperPlayer *player, GError **error);
G_GNUC_INTERNAL
void clapper_app_utils_delete_tmp_dir (void);
G_END_DECLS