WindowLog.js
authorAlan Knowles <alan@roojs.com>
Sun, 27 May 2012 08:44:41 +0000 (16:44 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 27 May 2012 08:44:41 +0000 (16:44 +0800)
WindowLog.js

index a0f15a7..e6cd0b7 100644 (file)
@@ -62,7 +62,8 @@ WindowLog = {
             var app = aw.get_application();
             var pid = app.get_pid();
             //print("PID " + pid);
-            var cmd = File.realpath('/proc/'+ pid + '/exe');
+            //var cmd = File.realpath('/proc/'+ pid + '/exe');
+            var cmd = File.read('/proc/'+ pid + '/cmdline');
             
             if (!this.win || (this.win && win != this.win)) {