diff options
Diffstat (limited to 'sysutils/scanmem/files/patch-gui-GameConqueror.py')
-rw-r--r-- | sysutils/scanmem/files/patch-gui-GameConqueror.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sysutils/scanmem/files/patch-gui-GameConqueror.py b/sysutils/scanmem/files/patch-gui-GameConqueror.py new file mode 100644 index 000000000000..0a0e560bfff9 --- /dev/null +++ b/sysutils/scanmem/files/patch-gui-GameConqueror.py @@ -0,0 +1,28 @@ +--- gui/GameConqueror.py.orig 2017-10-13 21:53:16 UTC ++++ gui/GameConqueror.py +@@ -909,7 +909,7 @@ class GameConqueror(): + + def get_process_list(self): + plist = [] +- for proc in os.popen('ps -wweo pid=,user:16=,command= --sort=-pid').readlines(): ++ for proc in reversed(os.popen('ps -axww -o pid= -o user= -o command=').readlines()): + (pid, user, pname) = [tok.strip() for tok in proc.split(None, 2)] + plist.append((int(pid), user, pname)) + return plist +@@ -942,7 +942,7 @@ class GameConqueror(): + self.cheatlist_liststore[i][1] = False + + def read_maps(self): +- lines = open('/proc/%d/maps' % (self.pid,)).readlines() ++ lines = open('/compat/linux/proc/%d/maps' % (self.pid,)).readlines() + self.maps = [] + for l in lines: + item = {} +@@ -1190,7 +1190,6 @@ if __name__ == '__main__': + args = parser.parse_args() + + # Init application +- GObject.threads_init() + Gdk.threads_init() + gc_instance = GameConqueror() + |