Skip to content
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

[FEATURE REQUEST] Display a progress bar #5

Open
9898287 opened this issue Nov 7, 2018 · 3 comments
Open

[FEATURE REQUEST] Display a progress bar #5

9898287 opened this issue Nov 7, 2018 · 3 comments

Comments

@9898287
Copy link

9898287 commented Nov 7, 2018

Well, it's nice to inform the users how much data have been written to the disk.

Currently all it does is show a spinner

I suggest that you parse stdout of the dd command at the interval of 1 second and update the progressbar. dd already says how many bytes have been written.

I would make a PR but I do not know python well enough.

@gort818
Copy link
Owner

gort818 commented Nov 7, 2018

I have been meaning to get around to this.

Can probably use this https://lazka.github.io/pgi-docs/Gio-2.0/classes/Subprocess.html#Gio.Subprocess.get_stderr_pipe
parse the stderr and use some regex magic.

@9898287
Copy link
Author

9898287 commented Nov 20, 2018

Just create a temporary file and keep parsing it like I did.
https://gitlab.com/9898287/nixwriter/blob/master/source/backend.d

@gort818
Copy link
Owner

gort818 commented Nov 29, 2018

Nice, I like yours better than mine, I had no idea there were gtk bindings for D.
I have been thinking of redoing ddgtk in Rust.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants