mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
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:
committed by
Benjamin Tissoires
parent
caa75d170d
commit
6280268919
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user