1
0
forked from drath/libratbag

ratbag-command: fix get_svg_fd()

Regression introduced in 107a649e08

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2019-02-20 19:40:03 +10:00
committed by Benjamin Tissoires
parent caa75d170d
commit 6280268919

View File

@@ -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.