Lirc,irxevent:为什么它不适用于Nautilus?

我使用Unity 3D使用Ubuntu 11.10并通过lirc使用遥控器。 在Firefox,Banshee等应用程序中一切正常,但是当我关注Nautilus或Gedit时,任何引用“CurrentWindow”的键都不起作用,即(来自〜/ .lircrc):

begin prog = irxevent button = KEY_OK config = Key Return CurrentWindow end 

我知道它适用于较旧的系统,如11.04。 有任何想法吗?

当我解决方法时,我安装了xautomation 安装xautomation 并修改〜/ .lircrc以使用irxevent而不是irxevent只要它引用CurrentWindow 。 上面提到的段落现在看起来像这样:

 begin prog = irexec button = KEY_OK config = xte 'key Return' end 

现在一切都恢复正常了。