aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-11-19 11:29:16 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-11-22 21:13:26 +0100
commitc8591cc9f90c13a3d7638e611d3e53570ae9cc4d (patch)
tree768b50372b142d99003ea2def968a43d405c4a76 /src
parentf71a7c1a160361c21b88b6612e102c33f2f21792 (diff)
downloadayatana-indicator-power-c8591cc9f90c13a3d7638e611d3e53570ae9cc4d.tar.gz
ayatana-indicator-power-c8591cc9f90c13a3d7638e611d3e53570ae9cc4d.tar.bz2
ayatana-indicator-power-c8591cc9f90c13a3d7638e611d3e53570ae9cc4d.zip
Drop Low battery.ogg and adapt code to use Lomiri sounds
https://github.com/AyatanaIndicators/ayatana-indicator-power/issues/49
Diffstat (limited to 'src')
-rw-r--r--src/notifier.c3
1 files changed, 2 insertions, 1 deletions
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));
}
}