[tuxdroid-svn] r5995 - software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/execut
Status: Beta
Brought to you by:
ks156
From: jerome <c2m...@c2...> - 2009-12-17 08:55:39
|
Author: jerome Date: 2009-12-17 09:55:27 +0100 (Thu, 17 Dec 2009) New Revision: 5995 Modified: software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/utils.py Log: * Fixed Skype process check function ( windows ). Modified: software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/utils.py =================================================================== --- software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/utils.py 2009-12-17 08:37:56 UTC (rev 5994) +++ software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/utils.py 2009-12-17 08:55:27 UTC (rev 5995) @@ -82,9 +82,12 @@ from win32com.client import GetObject WMI = GetObject('winmgmts:') processes = WMI.InstancesOf('Win32_Process') - return ( "skype.exe" in processes ) or ( 'Skype.exe' in processes ) - except: + for process in processes: + if process.name in ['skype.exe', 'Skype.exe']: + return True return False + except Exception, e: + return False # -------------------------------------------------------------------------- # Start skype on linux. |