summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/input-device/input-device.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input-device/input-device.vala b/src/input-device/input-device.vala
index 9e2680c..6988c6d 100644
--- a/src/input-device/input-device.vala
+++ b/src/input-device/input-device.vala
@@ -22,6 +22,10 @@ public class Device {
public signal void received_barcode(string barcode);
public Device(string device) {
+ if (device == "ignore") {
+ stdout.printf("Ignoring InputDevice!\n");
+ return;
+ }
try {
io_read = new IOChannel.file(device, "r");
buffer = "";