From c8591cc9f90c13a3d7638e611d3e53570ae9cc4d Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Fri, 19 Nov 2021 11:29:16 +0100 Subject: Drop Low battery.ogg and adapt code to use Lomiri sounds https://github.com/AyatanaIndicators/ayatana-indicator-power/issues/49 --- src/notifier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/notifier.c b/src/notifier.c index c5b6eb1..3685a76 100644 --- a/src/notifier.c +++ b/src/notifier.c @@ -322,7 +322,8 @@ notification_show(IndicatorPowerNotifier * self) } else { - g_warning("Unable to find '%s' in XDG data dirs", LOW_BATTERY_SOUND); + g_message("Unable to find '%s' in XDG data dirs, falling back to /usr/share/sounds/lomiri/notifications/", LOW_BATTERY_SOUND); + notify_notification_set_hint(nn, "sound-file", g_variant_new_string("file:///usr/share/sounds/lomiri/notifications/" LOW_BATTERY_SOUND)); } } -- cgit v1.2.3