python-eel/Eel

Get PID of Chrome process

Open

#302 ouverte le 23 mai 2020

Voir sur GitHub
 (2 commentaires) (1 réaction) (1 assigné)Python (570 forks)batch import
help wanted

Métriques du dépôt

Stars
 (5 980 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur