From 698ec52d5c056f3584c46e67b199adcfba9f8d2e Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 30 Jun 2021 18:15:03 -0400 Subject: try loading resources from share, fallback to cwd --- components/chatinputindicator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'components/chatinputindicator.cpp') diff --git a/components/chatinputindicator.cpp b/components/chatinputindicator.cpp index 3b43b7e..8b05c71 100644 --- a/components/chatinputindicator.cpp +++ b/components/chatinputindicator.cpp @@ -21,8 +21,9 @@ ChatInputIndicator::ChatInputIndicator() m_label.show(); // try loading gif - if (!std::filesystem::exists("./res/typing_indicator.gif")) return; - auto gif_data = ReadWholeFile("./res/typing_indicator.gif"); + const static auto path = Abaddon::GetResPath("/typing_indicator.gif"); + if (!std::filesystem::exists(path)) return; + auto gif_data = ReadWholeFile(path); auto loader = Gdk::PixbufLoader::create(); loader->signal_size_prepared().connect([&](int inw, int inh) { int w, h; -- cgit v1.2.3