programs: gnome-clocks: restrict dbus

This commit is contained in:
2025-01-10 01:30:48 +00:00
parent d942498282
commit 22a362ea4b

View File

@@ -1,8 +1,12 @@
# TODO(2025-01-09): fix the 'alarm' component
# - it creates a desktop notification, but no sound, and permanently freezes the app
# TODO(2025-01-09): inhibit screen-off while focused (for stopwatch function)
{ ... }: {
sane.programs.gnome-clocks = {
buildCost = 1;
sandbox.whitelistAudio = true;
sandbox.whitelistDbus.user = true; #< TODO: reduce #< required for DE notification when alarm rings
sandbox.whitelistDbus.user.own = [ "org.gnome.clocks" ];
sandbox.whitelistSendNotifications = true;
sandbox.whitelistWayland = true;
sandbox.mesaCacheDir = ".cache/gnome-clocks/mesa"; # TODO: is this the correct app-id?
gsettingsPersist = [ "org/gnome/clocks" ];