python-eel/Eel

Get PID of Chrome process

Open

#302 aperta il 23 mag 2020

Vedi su GitHub
 (2 commenti) (1 reazione) (1 assegnatario)Python (570 fork)batch import
help wanted

Metriche repository

Star
 (5980 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Describe the problem Is there a way to get the PID of the chrome tab/process that eel opens? We're making a crossplatform app, and we'd like to be able to manage focus/know what's running via PID. Maybe if python can't get it, maybe there's a way for javascript to get it? Thanks

Code snippet(s)

import eel

eel.start(HTMLFILE, size=(800, 600), port=PORT,
          cmdline_args=['--auto-open-devtools-for-tabs'])

# possible?
# chrome_pid = eel.getChromePID()

Desktop (please complete the following information):

  • OS: Windows, Mac, (and Linux)
  • Browser Chrome / Chromium

Guida contributor