aboutsummaryrefslogtreecommitdiff
path: root/tests/test-notify.cc
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 /tests/test-notify.cc
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 'tests/test-notify.cc')
-rw-r--r--tests/test-notify.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test-notify.cc b/tests/test-notify.cc
index eebd8c4..0732ece 100644
--- a/tests/test-notify.cc
+++ b/tests/test-notify.cc
@@ -77,8 +77,6 @@ protected:
{
super::SetUp();
- g_setenv ("XDG_DATA_HOME", XDG_DATA_HOME, TRUE);
-
// init DBusMock / dbus-test-runner
service = dbus_test_service_new(nullptr);
@@ -393,7 +391,7 @@ TEST_F(NotifyFixture, EventsThatChangeNotifications)
TRUE);
// the file we expect to play on a low battery notification...
- const char* expected_file = XDG_DATA_HOME "/" GETTEXT_PACKAGE "/sounds/" LOW_BATTERY_SOUND;
+ const char* expected_file = "/usr/share/sounds/lomiri/notifications/" LOW_BATTERY_SOUND;
char* tmp = g_filename_to_uri(expected_file, nullptr, nullptr);
const std::string low_power_uri {tmp};
g_clear_pointer(&tmp, g_free);