compiz-decorator shell script needlessly keeps running after running decorator process

Bug #305740 reported by Tristan Wibberley
4
Affects Status Importance Assigned to Milestone
Compiz
Invalid
Unknown
compiz (Ubuntu)
Fix Released
Low
Michael Vogt

Bug Description

Binary package hint: compiz-core

The end of compiz-decorator looks like this:

if [ -n "$DECORATOR" ]; then
    verbose "Starting ${DECORATOR}\n"
    ${COMPIZ_BIN_PATH}$DECORATOR "$@"
else
    verbose "Found no decorator to start\n"
    exec $FALLBACKWM $FALLBACKWM_OPTIONS
fi

I think it could equally well look like this:

if [ -n "$DECORATOR" ]; then
    verbose "Starting ${DECORATOR}\n"
    exec ${COMPIZ_BIN_PATH}$DECORATOR "$@"
else
    verbose "Found no decorator to start\n"
    exec $FALLBACKWM $FALLBACKWM_OPTIONS
fi

and the shell process will be replaced with the compiz process as for the fallback branch instead of continuing to run.

Revision history for this message
Robert Ancell (robert-ancell) wrote :
Changed in compiz (Ubuntu):
importance: Undecided → Low
status: New → Triaged
summary: - compiz-decorator keeps running - seemingly needlessly using 100K
+ compiz-decorator shell script needlessly keeps running after running
+ decorator process
Changed in compiz:
status: Unknown → Confirmed
Changed in compiz (Ubuntu):
status: Triaged → Fix Committed
status: Fix Committed → In Progress
Changed in compiz:
status: Confirmed → Invalid
Michael Vogt (mvo)
Changed in compiz (Ubuntu):
assignee: nobody → Michael Vogt (mvo)
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks!

I merged the decorator patch. The other change:

-${COMPIZ_BIN_PATH}${COMPIZ_NAME} $COMPIZ_OPTIONS "$@" $COMPIZ_PLUGINS || exec $FALLBACKWM $FALLBACKWM_OPTIONS
+exec ${COMPIZ_BIN_PATH}${COMPIZ_NAME} $COMPIZ_OPTIONS "$@" $COMPIZ_PLUGINS || exec $FALLBACKWM $FALLBACKWM_OPTIONS

is left out because one of the nice properties of this approach is that if compiz crashes or can not be run, the fallback window manager (usually metacity) gets run.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package compiz - 1:0.8.2-0ubuntu13

---------------
compiz (1:0.8.2-0ubuntu13) karmic; urgency=low

  [ Robert Ancell ]
  * debian/compiz-decorator:
    - Exec binaries from scripts so no script processes waste memory
      (LP: #305740)

 -- Michael Vogt <email address hidden> Mon, 15 Jun 2009 11:53:19 +0200

Changed in compiz (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.