Tue 26 Dec 2006 10:39:07 PM UTC, comment #5:
Some workaround for now:
1) To run xhotkeys without changing xhotkeys, just install the python-xlib and python2.4-xlib from dapper.
2) To run xhotkeys on Compiz/Beryl, edit /usr/lib/python2.4/site-packages/Xlib/protocol/display.py and change line 531: recv = self.socket.recv(2048) becomes
recv = self.socket.recv(4096)
Thanks to Charles Anthony Huber for pointing this out!
|
Sat 25 Nov 2006 03:24:35 PM UTC, comment #4:
Yeah, I know. Ubuntu has a complete mess with the python-xlib library. They have a python2.4-xlib available until Dapper and a python-xlib available for all (?). But then, the python-xlib package only works for python2.5 (but edgy does not remove the old python 2.4 nor removes the link). So, to solve the problem simply edit the /usr/bin/xhotkeys file to look like that:
#!/usr/bin/python2.5
Or you could set 2.5 as your default Python version:
ln -sf /usr/bin/python2.5 /usr/bin/python
It seems I will have to package sepparately for Ubuntu and Debian (but I didnt want to!)
And thanks for using xhotkeys! Any feature request will be nice now, I am working on a new version.
arnau
|
Mon 07 Aug 2006 10:22:07 PM UTC, comment #1:
In fact, it's a problem with the python-xlib module, but I will try to install XGL + Compiz and try it. Not really easy for now since I have no 3D card configured for the X :-(
Anyway, what version are you using? do you compile it or installed a debian package?
Please answer to arnau@ehas.org.
thanks
|
Mon 07 Aug 2006 06:25:54 PM UTC, original submission:
Hi,
I use an Ubuntu Dapper OS PC i686 system, and I have installed XGL + Compiz on a separated login session. It means that when I boot my PC, I can choose between an "original" Gnome X session, and a new Gnome session powered with XGL/Compiz.
The problem is that now xhotkeys function only in the XGL session and no more in the normal X session.
If I run xhotkeys in the XGL session all is OK.
If I run xhotkeys in the normal X session the following messages are displayed in the console window:
nicola@cavergno:~$ xhotkeys
Traceback (most recent call last):
File "/usr/bin/xhotkeys", line 1026, in ?
main()
File "/usr/bin/xhotkeys", line 1017, in main
xhk = Xhotkeys(options.cfile, default_pidfile, default_settings, verbose_level=options.verbose_level)
File "/usr/bin/xhotkeys", line 249, in _init_
self.display = Xlib.display.Display()
File "/usr/lib/python2.4/site-packages/Xlib/display.py", line 80, in _init_
self.display = _BaseDisplay(display)
File "/usr/lib/python2.4/site-packages/Xlib/display.py", line 67, in _init_
apply(protocol.display.Display.__init__, (self, ) + args, keys)
File "/usr/lib/python2.4/site-packages/Xlib/protocol/display.py", line 123, in _init_
self.default_screen = min(self.default_screen, len(self.info.roots) - 1)
File "/usr/lib/python2.4/site-packages/Xlib/protocol/rq.py", line 1371, in _getattr_
raise AttributeError(attr)
AttributeError: roots
nicola@cavergno:~$
can you help for this?
best regards
NJ
|