aboutsummaryrefslogtreecommitdiff
path: root/src/notifier.c
diff options
context:
space:
mode:
authorcharles kerr <charlesk@canonical.com>2016-01-01 13:53:48 -0600
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-28 10:17:14 +0200
commit2b939453598cc1fd8f1c40e5d6cbfd63cb852fb4 (patch)
tree79862b45afb8da2faf9f2a5d949976dcf10e34b7 /src/notifier.c
parent4fc7a4e4d0346e1aad32057536301620e138bf30 (diff)
downloadayatana-indicator-power-2b939453598cc1fd8f1c40e5d6cbfd63cb852fb4.tar.gz
ayatana-indicator-power-2b939453598cc1fd8f1c40e5d6cbfd63cb852fb4.tar.bz2
ayatana-indicator-power-2b939453598cc1fd8f1c40e5d6cbfd63cb852fb4.zip
use gstreamer to play the sound
Diffstat (limited to 'src/notifier.c')
-rw-r--r--src/notifier.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/notifier.c b/src/notifier.c
index 47690ca..63e7c89 100644
--- a/src/notifier.c
+++ b/src/notifier.c
@@ -149,7 +149,9 @@ play_low_battery_sound (void)
filename = datafile_find(DATAFILE_TYPE_SOUND, key);
if (filename != NULL)
{
- sound_play_file(filename);
+ gchar * uri = g_filename_to_uri(filename, NULL, NULL);
+ sound_play_uri(uri);
+ g_free(uri);
g_free(filename);
}
else