Comment 14 for bug 522046

Revision history for this message
Dirk T (miriup) wrote :

Regarding the reporting mechanism: you have to admit that Google Chrome is dealt with specially. What I meant is I need one tool that is not dealt with in an extension that works. Does the gnome-calculator for example get reported for you properly?

Regarding the X11 modification. Yes, that is the version I'm running. A little explanation here: It doesn't really mess with the X11 part. The client is using the python ctypes extension to access functionality in libX11 and another library. But it was implemented incorrectly in that it didn't specify the result value for XOpenDisplay. When you don't specify one, python ctypes will assume it being "int". On 64bit Linux the C type "int" is 32bit, but the C type "void *" (that is returned from XOpenDisplay) is 64bit. Thus running the uploader causes python to be terminated with "segmentation fault". The patch only addresses that difference. It only lets the rescuetime uploader access these libraries correctly, but it doesn't interfere with the way the client obtains information about windows.

When I run the client from the command line (which I normally do), I can see captured windows correctly. Also it generates YAML files for these windows and uploads them and just as in your example rescuetime will give me the <hash> with how many successes we had. But for some reason, when I search for these programs in the rescuetime interface, they don't show up.