bugHotkeys launcher for X - Bugs: bug #17360, After installing XGL+Compiz...

 
 

bug #17360: After installing XGL+Compiz xhotkeys don't function on normal X session

Submitted by:  None
Submitted on:  Mon 07 Aug 2006 06:25:54 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: arnau <tokland>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Wed 31 Jan 2007 11:35:11 PM UTC, comment #6:

Another workaround to install xhotkeys on a Ubuntu Edgy: build python-xlib from sources:

apt-get update
apt-get build-dep python-xlib
apt-get -b source python-xlib
dpkg -i python-xlib*deb

arnau <tokland>
Project AdministratorIn charge of this item.
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!

arnau <tokland>
Project AdministratorIn charge of this item.
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

arnau <tokland>
Project AdministratorIn charge of this item.
Sat 25 Nov 2006 01:17:26 PM UTC, comment #3:

Hi,

I have installed the last Ubuntu Edgy version and XhotKeys don't function anymore.
The problem is always with the xlib.

Anonymous
Fri 10 Nov 2006 03:38:16 PM UTC, comment #2:

It has been reported also problems with beryl:

http://forum.beryl-project.org/post-49289

But I cannot test neither of them for now :-(

arnau <tokland>
Project AdministratorIn charge of this item.
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

arnau <tokland>
Project AdministratorIn charge of this item.
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

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tokland (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 31 Jan 2007 11:35:11 PM UTCtoklandAssigned toNone=>tokland
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1