2011年5月18日

qt 检测usb

摘要: qtusb.h#ifndef QTUSB_H#define QTUSB_H#include #include #include class QtUsb : public QObject{ Q_OBJECTprivate: const static int INTERFACE = 0; const static int CONFIGURATION =... 阅读全文

posted @ 2011-05-18 17:49 风乔 阅读(1153) 评论(0) 推荐(0) 编辑

不能以root用户运行chrome

摘要: 最后 还是在 http://aimbots.net/tutorials/23809-howto-run-google-chrome-non-root-user-when-logged-root-user.html 找到办法 共有两步 看命令:1 xhost +2. sudo -i -u zzx /opt/google/chrome/chrome 阅读全文

posted @ 2011-05-18 15:48 风乔 阅读(454) 评论(0) 推荐(0) 编辑

检测usb

摘要: http://www.microchip.com/forums/tm.aspx?m=340892#ifndef USB_H #define USB_H #include #include #include class USB : public QObject { private: const static int INTERFACE = 0; const ... 阅读全文

posted @ 2011-05-18 10:20 风乔 阅读(308) 评论(0) 推荐(0) 编辑

libusb检测U盘插入

摘要: Oops, my fault, hic. I should run as root and I'll get what I need. :PThanks, Have a nice day!http://libusb.sourceforge.net/doc/examples-code.htmlhttp://fedoraforum.org/forum/showthread.php?t=17845... 阅读全文

posted @ 2011-05-18 09:54 风乔 阅读(1856) 评论(0) 推荐(0) 编辑

导航