GNOME Bugzilla – Bug 529401
Add preference to change activity on virtual desktop change
Last modified: 2010-01-18 11:11:09 UTC
Discussion in blog (http://projecthamster.wordpress.com/#comment-89) brought up idea, that maybe we could change current activity, when the virtual desktop is changed. Activity name could be derived from virtual desktop name. From this option would benefit users of virtual screens, also i think it won't add big complexity to code.
This would be the best thing ever. After using Hamster for some time I've found out its biggest bug is ME: me forgetting to tell it when I started working, me forgetting to tell it when I began procrastinating, me forgetting to tell it when I finished work... This, plus not tracking when the computer is idle, would make Hamster track my activities accurately without almost no interaction on my side. Would make it almost perfect. I love it.
Not tracking on idle is already in - you can adjust period after which hamster should stop tracking in gconf-editor: /apps/hamster-applet/general/timeout
Thanks Toms :) Is there any specific bug to discuss the idle thing? I would like to make a couple suggestions but I feel this is not the place.
how about bug 529097?
*** Bug 580664 has been marked as a duplicate of this bug. ***
Created attachment 151526 [details] [review] patch for workspace switching support The patch only changes applet.py, the preferences would probably have to be patched as well .. I assume not everyone prefers this behaviour.
Review of attachment 151526 [details] [review]: patch shows faulty behaviour due to misuse of api
Created attachment 151531 [details] [review] improved version of attachment 151526 [details] [review]
Great stuff Ludwig! There are some things to iron out, but you have provided a good start. I could not get it working though due to some interesting bits in the logic, but i hope you don't mind if plough ahead and fix it, as that might be faster and also the preference needs to be added anyway. One thing that might turn out useful elsewhere for you: You are comparing variables using "is not" - that seems to me a bit dangerous, as the "is" operator performs instance checks, not value checks (that is it checks if the object instance is the same. That can lead to unexpected results as, for example, floats are mutable and thus 'a=1.0; b=1.0; a is b' will yield false.
Workspace tracking is now in, and features two non-exclusive modes. First is option to switch to activity if workspace name matches, and second is remembering last activity for each workspace, as per Ludwig's patch. Thanks, everyone!