Getting iStat Pro Widget Working on Mountain Lion Again
July 27th, 2012 by
Ken
Lovers of the iStat Pro widget will notice that the processes section no longer works. Unfortunately, Bjango stated on their Twitter that there it was unlikely that there would be any further updates to the widget.
However, fortunately for us, a member on the Mac Rumors forum has found a quick and easy fix and all it takes is adding a space in two locations to the widget!
1. Locate your widget, it will be under /Library/Widgets or ~/Library/Widgets
2. Right click it and select: “Show Package Contents”
3. Open Wide.js or Tall.js file in some editor (Wide is for horizontal view, Tall for vertical)4. Locate the line
WideSkinController.prototype.updateProcesses = function(){
var _self = this;
var exclude = "";
if(p.v("processes_excludewidgets") == 'on')
exclude = " grep -v DashboardClient | ";if(p.v("processes_sort_mode") == 'cpu')
widget.system('ps -arcwwwxo "pid %cpu command" | egrep "PID|$1" | grep -v grep | ' + exclude + ' head -7 | tail -6 | awk \'{print ""$1" "$2" "$3,$4,$5" "}\'', function(data){ _self.updateProcessesOut(data);});
else
widget.system('ps -amcwwwxo "pid rss command" | egrep "PID|$1" | grep -v grep | ' + exclude + ' head -7 | tail -6 | awk \'{print ""$1" "$2" "$3,$4,$5" "}\'', function(data){ _self.updateProcessesOut(data);});
}
Change “PID|$1″ to “PID| $1″ (Add space before $ sign)5. Save the changes
Works like a charm!!
Posted in How To, Mac, Software |
12 Comments »
August 5th, 2012 at 1:01 pm
Just what I was looking for. Perfect!
August 6th, 2012 at 3:41 pm
Wow, thanks!
I had to remove and then add the widget again to make it work, but sure it works like a charm now.
Thanks once again!
August 10th, 2012 at 4:34 am
Guys, I cannot find iStat Pro widget in my finder, is that ok ? Do I have to change something in settings or so to be able to see it in finder ? I went to HDD/Library/Widgets, and there is no iStat, not sure why. Any advise ? Thanks !!!
August 13th, 2012 at 8:36 am
Hey Rob, if it’s not in /Library/Widgets then it’s most likely in ~/Library/Widgets, that’s where mine was. In Finder, hold the Option key and go to the Go menu and hit Library.
August 22nd, 2012 at 3:20 am
Great work. Thanks
September 9th, 2012 at 4:42 pm
+1. Awesome solution.
September 19th, 2012 at 4:20 pm
Hey this works great and a very quick fix!
Thanks Ken!
October 1st, 2012 at 12:45 pm
Hot Damn! that was an easy fix… thanks so much.
October 27th, 2012 at 1:00 pm
Perfect!
Thanks!!
November 1st, 2012 at 11:35 am
Many thanks. Works perfectly.
November 7th, 2012 at 8:10 am
Thanks for sharing that tip. Works great!
December 13th, 2012 at 5:03 am
Awesome!
Thanks!!