From 6280268919f2faa11a03023950219c734652e2fe Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 20 Feb 2019 19:40:03 +1000 Subject: [PATCH] ratbag-command: fix get_svg_fd() Regression introduced in 107a649e08eee2e90917ddf06082bce8a723d5ae Signed-off-by: Peter Hutterer --- tools/ratbagc.py.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/ratbagc.py.in b/tools/ratbagc.py.in index 25f4049e..571aea06 100644 --- a/tools/ratbagc.py.in +++ b/tools/ratbagc.py.in @@ -293,7 +293,9 @@ class RatbagdDevice(metaclass=MetaRatbag): @param theme The theme from which to retrieve the SVG, as str """ - return open(self.get_svg(theme)) + svg = libratbag.ratbag_device_get_svg_name(self._device) + path = os.path.join(LIBRATBAG_DATA_DIR, 'gnome', svg) + return open(path) def commit(self): """Commits all changes made to the device.