python-eel/Eel

Get PID of Chrome process

Open

#302 opened on 2020年5月23日

GitHub で見る
 (2 comments) (1 reaction) (1 assignee)Python (570 forks)batch import
help wanted

Repository metrics

Stars
 (5,980 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド