Crash on attempting to clean configuration files

Bug #1087189 reported by Peter L on 2012-12-06
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Fix Released

Bug Description

* Mundus 2.2.0
* Gambas 3.3.3
* Fedora 17

Problem description:
On selecting an application (in this case configurations left over by Zeitgeist) the application crashes with the message
  Module._IsRunning.120: #6: Type mismatch: wanted Integer, got String instead
  1: Main.Main.109

Reproducibility: always

Related branches

Peter L (darthludi) wrote :

Digging through the code of the development branch I think I found the problem. You assume that the pgrep utility supports the -c command line switch (counting the number of matching processes), but this apparently isn't the case.
It's supported by procps 3.2.8 on Debian Squeeze, but not by procps 3.2.8 on Fedora 17.

Peter L (darthludi) wrote :

Simple patch for the issue, replacing the Exec with a call to Shell, using a more generic approach and wc for counting the number of processes.

sebikul (sebikul) wrote :

Thanks for the patch! I didn't think other distributions would have any trouble. Instead of just using the Shell call, I added a fallback mode which uses wc. It should work the same though.

Thanks again

Changed in mundus:
status: New → Confirmed
status: Confirmed → Fix Committed
sebikul (sebikul) on 2012-12-10
Changed in mundus:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers