This patch adds a "guix gc" button to the low disk space notification that 'gsd-housekeeping' emits. diff --git a/plugins/housekeeping/gsd-disk-space.c b/plugins/housekeeping/gsd-disk-space.c index bd3437e..89027d8 100644 --- a/plugins/housekeeping/gsd-disk-space.c +++ b/plugins/housekeeping/gsd-disk-space.c @@ -546,6 +546,21 @@ empty_trash_callback (NotifyNotification *n, notify_notification_close (n, NULL); } +static void +guix_gc_callback (NotifyNotification *n, + const char *action) +{ + const gchar *argv[] = { "guix", "gc", NULL }; + + g_assert (action != NULL); + g_assert (strcmp (action, "run-guix-gc") == 0); + + g_spawn_async (NULL, (gchar **) argv, NULL, G_SPAWN_SEARCH_PATH, + NULL, NULL, NULL, NULL); + + notify_notification_close (n, NULL); +} + static void on_notification_closed (NotifyNotification *n) { @@ -591,6 +606,13 @@ ldsm_notify (const char *summary, g_free); } + notify_notification_add_action (notification, + "run-guix-gc", + _("Collect Unused Guix Items"), + (NotifyActionCallback) guix_gc_callback, + NULL, + NULL); + has_trash = ldsm_mount_has_trash (mount_path); if (has_trash) { guix/log/etc/teams'>
path: root/etc/teams
AgeCommit message (Expand)Author
2024-03-19teams: qt: Remove erroneous comment at top of scripts....* etc/teams/qt/common.scm: Remove erroneous comment. * etc/teams/qt/qt-manifest.scm: Likewise. * etc/teams/qt/qt5-manifest.scm: Likewise. Change-Id: I87a0ea669caa0ba5049b48a4f04fda58518c3f05 Maxim Cournoyer
2024-01-04etc: Add rust-team manifest....Change-Id: Ie43bd4a88d35270dcac7baaabeafbcc3a755db1e Efraim Flashner
2023-08-22etc: Add Qt manifests for Qt maintenance....* etc/teams/qt/common.scm: New file. * etc/teams/qt/qt-manifest.scm: Likewise. * etc/teams/qt/qt5-manifest.scm: Likewise. Maxim Cournoyer