-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Managing subprocesses #5673
Comments
Thank you! |
I think this would be really useful, especially having access to the rendering subprocesses. In addition to listing the info on an HTML page, I would want a way to get a hold of the the PIDs and associated metadata (page title, URL, etc.) in an easily parsable format from a shell script. My main use case would be memory monitoring and integration with nohang. qutebrowser is usually the victim when it needs to kill something to prevent a hang, but it'd be nice to have the information necessary to prevent killing certain important tabs. |
I just pushed a first version of a |
edit: problem 1 (progress bar) solved by calling wget with Hello. I started to use Thanks a lot, here is my script replacing the download functions. More here
|
There is the :process command for doing some things with spawned processes, haven't used it in anger myself https://qutebrowser.org/doc/help/commands.html#process |
Thank you, Aria2 looks very great. Having solved the progress bar problem, I think the baby functions I wrote are already doing a decent job. A dedicated, multi protocol, standalone download/process manager still sounds cool. I mean, something like a daemon serving one http interface showing all progress bars, process-kill buttons and what not. Another vim-like CLI interface could be also nice. But I don't know, it's a lot of work for something already working decently enough with some basic tools and very little of code. Maybe I'll get into It although The-Compiler also mentioned something similar to be done in qutebrowser, If I'm not mistaken.
Also you where right, I didn't knew the :process command already can take pids and actions. I'll try to use that somehow. Thanks. |
It'd nice if qutebrowser had a way to manage its subprocesses:
:spawn
This could probably work via commands and the completion. Possibly useful commands:
:process-kill
:process-list
listing all processes on a HTML page (though the completion for:process-kill
might be enough already?)(see above):process-show-pid
:process-detach
for detaching:spawn
processes after spawning them, so that qutebrowser can be quit. Though that might not be possible with Qt: [QTBUG-9328] Add support for detaching from a started process (like QProcess::detach()) - Qt Bug Tracker. Not sure why, given thatdisown
in a shell exists.:process-clear
to clear the process list, see [Feature request]datetime
in process list and details #6716The text was updated successfully, but these errors were encountered: