@@ -53,7 +53,7 @@ def __init__(self):
53
53
if script_xbmc_starts :
54
54
log ('Going to execute script = "' + script_xbmc_starts + '"' )
55
55
try :
56
- subprocess .Popen ([ script_xbmc_starts ] )
56
+ subprocess .call ( script_xbmc_starts )
57
57
except :
58
58
log ('Error executing script when xbmc starts' )
59
59
self ._daemon ()
@@ -104,7 +104,7 @@ def _daemon(self):
104
104
log ('XBMC is idle' )
105
105
log ('Going to execute script = "' + script_idle + '"' )
106
106
try :
107
- subprocess .Popen ([ script_idle ] )
107
+ subprocess .call ( script_idle )
108
108
except :
109
109
log ('ERROR executing script when xbmc goes idle' )
110
110
xbmc .sleep (10000 )
@@ -126,7 +126,7 @@ def onScreensaverActivated(self):
126
126
if script_screensaver_starts :
127
127
log ('Going to execute script = "' + script_screensaver_starts + '"' )
128
128
try :
129
- subprocess .Popen ([script_screensaver_starts ,self .get_player_status ()])
129
+ subprocess .call ([script_screensaver_starts ,self .get_player_status ()])
130
130
except :
131
131
log ('ERROR executing script when screensaver starts' )
132
132
@@ -136,7 +136,7 @@ def onScreensaverDeactivated(self):
136
136
if script_screensaver_stops :
137
137
log ('Going to execute script = "' + script_screensaver_stops + '"' )
138
138
try :
139
- subprocess .Popen ([ script_screensaver_stops ] )
139
+ subprocess .call ( script_screensaver_stops )
140
140
except :
141
141
log ('ERROR executing script when screensaver stops' )
142
142
@@ -146,7 +146,7 @@ def onDatabaseUpdated(self,db):
146
146
if script_db_update :
147
147
log ('Going to execute script = "' + script_db_update + '"' )
148
148
try :
149
- subprocess .Popen ([script_db_update ,db ])
149
+ subprocess .call ([script_db_update ,db ])
150
150
except :
151
151
log ('ERROR executing script when database updates' )
152
152
@@ -200,7 +200,7 @@ def onPlayBackStarted(self):
200
200
if script_player_starts :
201
201
log ('Going to execute script = "' + script_player_starts + '"' )
202
202
try :
203
- subprocess .Popen ([script_player_starts ,self .playing_type ()])
203
+ subprocess .call ([script_player_starts ,self .playing_type ()])
204
204
except :
205
205
log ('ERROR executing script when player starts' )
206
206
@@ -213,7 +213,7 @@ def onPlayBackStopped(self):
213
213
if script_player_stops :
214
214
log ('Going to execute script = "' + script_player_stops + '"' )
215
215
try :
216
- subprocess .Popen ([script_player_stops ,self .playing_type ()])
216
+ subprocess .call ([script_player_stops ,self .playing_type ()])
217
217
except :
218
218
log ('ERROR executing script when player stops' )
219
219
@@ -223,7 +223,7 @@ def onPlayBackPaused(self):
223
223
if script_player_pauses :
224
224
log ('Going to execute script = "' + script_player_pauses + '"' )
225
225
try :
226
- subprocess .Popen ([script_player_pauses ,self .playing_type ()])
226
+ subprocess .call ([script_player_pauses ,self .playing_type ()])
227
227
except :
228
228
log ('ERROR executing script when player pauses' )
229
229
@@ -233,7 +233,7 @@ def onPlayBackResumed(self):
233
233
if script_player_resumes :
234
234
log ('Going to execute script = "' + script_player_resumes + '"' )
235
235
try :
236
- subprocess .Popen ([script_player_resumes ,self .playing_type ()])
236
+ subprocess .call ([script_player_resumes ,self .playing_type ()])
237
237
except :
238
238
log ('ERROR executing script when player resumes' )
239
239
0 commit comments