[tuxdroid-svn] r5582 - software_suite_v3/software/plugin/plugin-skype/trunk/executables
Status: Beta
Brought to you by:
ks156
|
From: jerome <c2m...@c2...> - 2009-10-01 14:14:46
|
Author: jerome
Date: 2009-10-01 15:18:53 +0200 (Thu, 01 Oct 2009)
New Revision: 5582
Modified:
software_suite_v3/software/plugin/plugin-skype/trunk/executables/plugin-skype.py
Log:
* Fixed a dummy bug starting skype client on Windblows.
Modified: software_suite_v3/software/plugin/plugin-skype/trunk/executables/plugin-skype.py
===================================================================
--- software_suite_v3/software/plugin/plugin-skype/trunk/executables/plugin-skype.py 2009-10-01 12:39:26 UTC (rev 5581)
+++ software_suite_v3/software/plugin/plugin-skype/trunk/executables/plugin-skype.py 2009-10-01 13:18:53 UTC (rev 5582)
@@ -95,7 +95,11 @@
"""Plugin entry point.
This method should be used to dispatch commands.
"""
- self.__skype = Skype4Py.Skype(Transport='x11')
+ if os.name != 'nt':
+ self.__skype = Skype4Py.Skype(Transport='x11')
+ else:
+ self.__skype = Skype4Py.Skype()
+
if self.getCommand() == "run":
self.run()
else:
@@ -132,14 +136,14 @@
self.__skype._API.Close()
self.__skype = None
self.__apiAttachState = -1
- if self.__skype.Client.IsRunning != None:
+ if self.__skype.Client.IsRunning:
#Shutting down Skype application.
self.__skype.Client.Shutdown()
refreshTaskBar()
try:
if self.__skype != None:
self.hangUp()
- if self.__skype.Client.IsRunning != None:
+ if self.__skype.Client.IsRunning:
closeSkype()
else:
self.__skype._API.Close()
|