Peter Hutterer
9551dddbb8
tools: handle NULL svgs in ratbag-command
...
Showed up in #526
https://github.com/libratbag/libratbag/issues/526#issuecomment-420016451
2018-09-27 09:39:44 +10:00
Peter Hutterer
563c274705
tools: remove the unnecessary prefix from the error code enum
...
It's already encoded as part of the enum, no need to have it again for the
value
2018-09-26 13:17:36 +02:00
Peter Hutterer
46d5fae2e5
tools: ratbagc - allow for the device to be just 'event7'
...
ratbagctl requires 'eventX' as argument, but ratbag-command requires
/dev/input/eventX. That's not smart, let's do better.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2018-09-14 10:23:11 +10:00
Peter Hutterer
4b31945e1d
tools: change the exception to just RatbagdUnavailable
...
ratbag-command has an 'except RatbagdDBusUnavailable' line despite that class
never being defined. That's ok because we'll never throw it in this case but
it's still confusing (to flake8). So let's change the class name to something
more generic and define it in ratbagc.py
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2018-09-14 10:23:11 +10:00
Peter Hutterer
7e685f5196
tools: fix flake8 warnings about missing double empty lines
2018-09-13 10:51:15 +10:00
Peter Hutterer
eb9f98e58d
tools: ratbagc - set the LIBRATBAG_DATA_DIR environment before context start
...
This way we use the data files from the source directory, not the installed
ones.
Fixes #530
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2018-09-06 13:33:58 +02:00
Peter Hutterer
6d996bf1aa
tools: add get_svg_fd() to ratbagc
...
Missing from 6000688c30
Fixes #31
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2018-09-06 13:33:58 +02:00
Peter Hutterer
34fbfe105c
tools: return the full svg path for ratbagc get_svg()
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2018-09-06 13:33:58 +02:00
Peter Hutterer
dfeac1bcbc
tools: generate ratbagc.py from configuration_data()
...
No functional changes, this is prep work only
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2018-09-06 13:33:58 +02:00