bugHotkeys launcher for X - Bugs: bug #24079, AttributeError raised by...


bug #24079: AttributeError raised by event.state; kills server

Submitted by:  None
Submitted on:  Fri 15 Aug 2008 10:44:47 PM UTC  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Confirmed
Privacy: PublicAssigned to: arnau <tokland>
Open/Closed: Open

Add a New Comment(Rich Markup)

You are not logged in

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


Tue 19 Aug 2008 09:11:16 PM UTC, comment #1:

Thanks for the report. This issue was already detected and resolved on the development branch, but I haven't had time to upload it, sorry for the inconveniences. As you say, for now you can capture the AttributeError exception.

In fact, I want to rewrite completely the application (xhotkeys was one of my very first python projects and I'm not happy with the code -- one-liner conditionals, no testing, no docstring... terrible).

BTW, although I'm glad you use xhotkeys, you should consider using XFCE4 to launch xfrun4 :-) Keyboard Configuration -> Hotkeys -> xfrun4

arnau <tokland>
Project AdministratorIn charge of this item.
Fri 15 Aug 2008 10:44:47 PM UTC, original submission:

I am running xhotkeys under XFCE, on a 64bit FC8 machine.
I am primarily interested in using it to run:
(a launcher applet that I bound to Alt+F2 to be able to launch applications).

This specific application caused the xhotkeys server to die.

This is the result of an AttributeError being raised when event.state is accessed at XhotkeysServer.run (line 251).

Simply catching this exception, and calling a continue statement seems to work ok for me, but I haven't back tracked further to see if something more significant is going on.



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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is 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
    Tue 19 Aug 2008 09:11:16 PM UTCtoklandStatusNone=>Confirmed
      Assigned toNone=>tokland

    Back to the top

    Powered by Savane 3.1-cleanup1