X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Fsynfigstudio-cph-monitor;h=590d3c59625646dd7e83a98b1141ec5d0cceda5a;hb=5dc0776c46b4057e83a8414549b293a40028c04a;hp=6dcc2bc12f7d9e37dd906a7c21c5e82aba4de307;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-studio/synfigstudio-cph-monitor b/synfig-studio/synfigstudio-cph-monitor index 6dcc2bc..590d3c5 100755 --- a/synfig-studio/synfigstudio-cph-monitor +++ b/synfig-studio/synfigstudio-cph-monitor @@ -1,7 +1,8 @@ #!/bin/bash # Synfig Crash Monitor script -# Copyright (c) 2009 Konstantin Dmitriev +# Copyright (c) 2009-2010 Konstantin Dmitriev +# # This package is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of @@ -124,7 +125,7 @@ mainloop() STARTED=1 RUNTIME=0 #get version - P=$(ps --no-headers -f -Csynfigstudio |egrep "^`whoami`" | tr -s ' '| cut -d ' ' -f 8) + P=$(ps --no-headers -Csynfigstudio -o uid,cmd |egrep "^ *`id -u`" | egrep -v "" | tr -s ' ' | sed "s|^ *`id -u` *||" | sed "s|/bin/sh *||" | head -n 1) echo if [ ! -e $P ]; then P=`which $P`