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

 
 

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

Submitter:  None
Submitted:  Fri 15 Aug 2008 10:44:47 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Confirmed
Privacy:  Public Assigned to:  tokland
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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:
xfrun4
(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.


Anonymous

 

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

Attach Files:
   
   
Comment:
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-08-19 tokland StatusNone Confirmed
        Assigned toNone tokland

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code