python-eel/Eel

Get PID of Chrome process

Open

#302 aberto em 23 de mai. de 2020

Ver no GitHub
 (2 comments) (1 reaction) (1 assignee)Python (570 forks)batch import
help wanted

Métricas do repositório

Stars
 (5.980 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador