Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Xul 有没有办法获得新 USB 设备插入的通知?
正如尼尔所说,我认为没有办法通过 XULRunner API 获取此通知。但是,这应该可以使用 C++ XPCOM 组件来实现,该组件将使用 OS API 访问 USB 信息。这是创建自己的组件的好教程。
您也可以尝试查看“组件”部分中的Songbird源代码,我可以想象他们正在访问 USB 设备。