[PATCH evemu] python: fix a couple of comment claiming we need root
Peter Hutterer
peter.hutterer at who-t.net
Thu Nov 6 16:25:10 PST 2014
We do, but technically we just need the right permissions
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
python/evemu/__init__.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/python/evemu/__init__.py b/python/evemu/__init__.py
index d1692bd..531ef81 100644
--- a/python/evemu/__init__.py
+++ b/python/evemu/__init__.py
@@ -253,7 +253,8 @@ class Device(object):
to prop_file. This information can be parsed later when constructing
a Device to create a virtual input device with the same properties.
- Scripts that use this method need to be run as root.
+ You need the required permissions to access the device file to
+ succeed (usually root).
"""
if not hasattr(prop_file, "read"):
raise TypeError("expected file")
@@ -284,7 +285,8 @@ class Device(object):
through the input device. The event sequence must be in
the form created by the record method.
- Scripts that use this method need to be run as root.
+ You need the required permissions to access the device file to
+ succeed (usually root).
"""
if not hasattr(events_file, "read"):
raise TypeError("expected file")
@@ -299,7 +301,8 @@ class Device(object):
allowing a virtual input device to emit the exact same event
sequence.
- Scripts that use this method need to be run as root.
+ You need the required permissions to access the device file to
+ succeed (usually root).
"""
if not hasattr(events_file, "read"):
raise TypeError("expected file")
--
2.1.0
More information about the Input-tools
mailing list