Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zombies left behind #2

Open
ppietikainen opened this issue Mar 18, 2014 · 2 comments
Open

Zombies left behind #2

ppietikainen opened this issue Mar 18, 2014 · 2 comments

Comments

@ppietikainen
Copy link

Using a script.sh (so a window manager is started so fullscreen works) script.sh zombies get left behind. subprocess.call() or Popen().communicate() does the right thing i.e.

--- a/default.py
+++ b/default.py
@@ -148,10 +148,10 @@ def showSite(url, stopPlayback, kiosk, userAgent):
path = "/usr/bin/google-chrome"
if useCustomPath and os.path.exists(customPath):
fullUrl = getFullPath(customPath, url, kiosk, userAgent)

  •        subprocess.Popen(fullUrl, shell=True)
    
  •        subprocess.Popen(fullUrl, shell=True).communicate()
     elif os.path.exists(path):
         fullUrl = getFullPath(path, url, kiosk, userAgent)
    
  •        subprocess.Popen(fullUrl, shell=True)
    
  •        subprocess.Popen(fullUrl, shell=True).communicate()
     else:
    

probably wouldn't hurt the other platforms either...

@ppietikainen
Copy link
Author

And even better, use a list not a string as argument and shell=False, current approach would probably do nasty things if you had ;rm -rf / as your url :)

@ppietikainen
Copy link
Author

Mostly working refactored version at https://github.com/ppietikainen/plugin.program.chrome.launcher . Untested on non-linux, and a bit uncertain about the proper use of the xbmc api.

pellcorp pushed a commit to pellcorp/plugin.program.chrome.launcher that referenced this issue Jan 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant