Crash on attempting to clean configuration files

Bug #1087189 reported by Peter L
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mundus
Fix Released
Undecided
Unassigned
2.3
Fix Released
Undecided
Unassigned

Bug Description

Versions:
* 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

Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
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)
Changed in mundus:
status: Fix Committed → 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.