I am using systemtap in F13 to try to know what is doing sugar.<br>In my first test I found the pulsing icon in launcher.py never stop.<br>To monitor sugar-sesion I have a script stap-sugar-session.sh:<br><br>[gonzalo@aronax sugar-jhbuild]$ cat stap-sugar-session.sh <br>
SUGAR_SESSION_PID=`ps ax | grep sugar-session | grep -v grep | awk &#39;{printf(&quot;%s&quot;,$1)}&#39;`<br>stap -t /usr/share/doc/python-libs-2.6.4/systemtap-sugar-3.stp -x $SUGAR_SESSION_PID<br><br>The file /usr/share/doc/python-libs-2.6.4/systemtap-sugar-3.stp is a modification of /usr/share/doc/python-libs-2.6.4/systemtap-example.stp, but you can use it also.<br>
<br>If I start sugar-emulator and execute stap-sugar-session.sh I can see after start a activity and stop the activity, the pulsing icon continue for ever.<br>It can be resolved applying the following patch, but I don&#39;t know if it&#39;s the right solution. May be it&#39;s anything wrong with the properties.<br>
<br><br> [gonzalo@aronax view]$ diff -u launcher.py launcher.py.new <br>--- launcher.py    2010-07-18 01:39:20.436252902 -0300<br>+++ launcher.py.new    2010-07-17 01:25:42.893632264 -0300<br>@@ -122,7 +122,7 @@<br>         self.connect(&#39;destroy&#39;, self.__destroy_cb)<br>
 <br>     def __destroy_cb(self, box):<br>-        self._activity_icon.pulsing = False<br>+        self._activity_icon.set_paused(True)<br>         self._home.disconnect_by_func(self.__active_activity_changed_cb)<br> <br>
     def zoom_in(self):<br>@@ -133,13 +133,13 @@<br>                                       style.STANDARD_ICON_SIZE,<br>                                       style.XLARGE_ICON_SIZE))<br>         self._animator.start()<br>
-        self._activity_icon.pulsing = True<br>+        self._activity_icon.set_paused(False)<br> <br>     def __active_activity_changed_cb(self, model, activity):<br>         if activity.get_activity_id() == self._activity_id:<br>
-            self._activity_icon.paused = False<br>+            self._activity_icon.set_paused(False)<br>         else:<br>-            self._activity_icon.paused = True<br>+            self._activity_icon.set_paused(False)<br>
 <br> <br> class _Animation(animator.Animation):<br><br>There are other files using the same properties. <br><br>[gonzalo@aronax site-packages]$ pwd<br>
/home/gonzalo/sugar-jhbuild/install/lib/python2.6/site-packages<br>
[gonzalo@aronax site-packages]$ grep -r props.pause *<br>jarabe/view/launcher.py.ori:            self._activity_icon.props.paused = False<br>jarabe/view/launcher.py.ori:            self._activity_icon.props.paused = True<br>
jarabe/desktop/meshbox.py:                net.props.paused = True<br>jarabe/desktop/meshbox.py:                net.props.paused = False<br>[gonzalo@aronax site-packages]$ grep -r props.pulsing *<br>jarabe/view/launcher.py.ori:        self._activity_icon.props.pulsing = False<br>
jarabe/view/launcher.py.ori:        self._activity_icon.props.pulsing = True<br>jarabe/frame/notification.py:        self._icon.props.pulsing = True<br>jarabe/frame/notification.py:        self._icon.props.pulsing = False<br>
jarabe/frame/activitiestray.py:            self._icon.props.pulsing = True<br>jarabe/frame/activitiestray.py:            self._icon.props.pulsing = False<br>jarabe/desktop/meshbox.py:            self.props.pulsing = True<br>
jarabe/desktop/meshbox.py:            self.props.pulsing = False<br>jarabe/desktop/meshbox.py:            self.props.pulsing = False<br>jarabe/desktop/meshbox.py:            self.props.pulsing = False<br>jarabe/desktop/meshbox.py:            self.props.pulsing = True<br>
jarabe/desktop/meshbox.py:            self.props.pulsing = False<br>jarabe/desktop/meshbox.py:            self.props.pulsing = False<br><br>I can put the instructions to use systemtap with sugar in the wiki if anybody think its useful.<br>
-- <br>Gonzalo Odiard<br>SugarLabs Argentina<br>