Hi,
Thanks for your tool, we are using it to run an inventory system with a bluetooth barcode reader and it's working quite well now. However, there were a few things I found while getting it to run:
softwedge.c:138
When $DISPLAY is not defined, the message "softwedge: can't open " is not really helpful. What cannot be opened? (Empty String)
How about something like this:
fprintf(stderr, "%s: can't open X11 window [%s]\nIs $DISPLAY defined?\n", "softwedge", XDisplayName(NULL));
Also, I ran into some problems when running it as user in a new environment:
sudo env -i sh -c 'export DISPLAY=":0"; /usr/local/bin/softwedge'
fails with a 'No protocol specified' Error from XOpenDisplay. When running as normal user it works fine. I din't investigate this issue further as it works for me (running it as a normal user is safer anyway).
Last, I couldn't compile it with your makefile, as it couldn't link some X stuff. Instead I used this command:
g++ -Wall -Isw -O2 -Lsw -o softwedge sw/main.c sw/softwedge.c -Isw -lX11 -lXtst
My system: A farly virgin Ubuntu 12.04.1 (Kernel 3.2.0-32-generic, 64bit).
Cheers, iliis
Hi,
Thanks for your tool, we are using it to run an inventory system with a bluetooth barcode reader and it's working quite well now. However, there were a few things I found while getting it to run:
softwedge.c:138
When $DISPLAY is not defined, the message "softwedge: can't open " is not really helpful. What cannot be opened? (Empty String)
How about something like this:
Also, I ran into some problems when running it as user in a new environment:
fails with a 'No protocol specified' Error from XOpenDisplay. When running as normal user it works fine. I din't investigate this issue further as it works for me (running it as a normal user is safer anyway).
Last, I couldn't compile it with your makefile, as it couldn't link some X stuff. Instead I used this command:
My system: A farly virgin Ubuntu 12.04.1 (Kernel 3.2.0-32-generic, 64bit).
Cheers, iliis