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

progress values > 100 #437

Closed
jmehne opened this issue Nov 12, 2017 · 8 comments
Closed

progress values > 100 #437

jmehne opened this issue Nov 12, 2017 · 8 comments
Assignees
Milestone

Comments

@jmehne
Copy link

jmehne commented Nov 12, 2017

Currently, dunst doesn't show a progress value, if it is larger than 100. It would be nice to change the behavior for two reasons:

  • even with percentages, values larger than 100 are used in the wild. For example pavucontrol uses percentages > 100%
  • the %n format specifier doesn't seem to be tied to a unit, so the restriction to 100 seems arbitrary
@bebehei
Copy link
Member

bebehei commented Nov 13, 2017

On the one hand side, I agree with you. I'm also affected of the same pavucontrolpulseaudio-ctl bug.

But: What's the semantic sense of having 120% progress? Can you explain?

IMHO, pulseaudio-ctl should fix this and normalize the progress before sending the notification.

@bebehei
Copy link
Member

bebehei commented Nov 13, 2017

IMHO, pulseaudio-ctl should fix this and normalize the progress before sending the notification.

See graysky2/pulseaudio-ctl#49. Pulseaudio-ctl did it already, but did not calculate the expression.

@jmehne
Copy link
Author

jmehne commented Nov 13, 2017

In my opinion, there are two points:

  • talking about progress: yes, it doesn't make sense to have progress > 100%. But then again, it would make perfectly sense to report total progress instead of percentages (which was my initial understanding of the purpose of the %n specifier) . E.g., the number of files you've copied (out of a total amount)
  • more importantly, I think it would make sense to generalize the meaning. Instead of reporting a literal progress, I may want to report/update a system state. And with states > 100% makes perfectly sense.

@tsipinakis
Copy link
Member

tsipinakis commented Nov 22, 2017

I'll have to agree here, having an arbitrary limit on the progress makes no sense, we aren't here to handle other peoples bugs, let's just display the value as-is.

If @bebehei agrees I'll go ahead and change that.

Edit: though I'm not sure how something like the progress bar that's been talked about would handle this.

@tsipinakis tsipinakis self-assigned this Nov 22, 2017
@bebehei
Copy link
Member

bebehei commented Nov 22, 2017

If @bebehei agrees I'll go ahead and change that.

I actually waited for your answer 😉 . I don't have any valid arguments, so I agree.

Also I'd like to add: The hint sent via notification is actually called value. It might also be a good choice to refactor this to make this clear.

@tsipinakis
Copy link
Member

tsipinakis commented Nov 22, 2017

The hint sent via notification is actually called value. It might also be a good choice to refactor this to make this clear.

While value might be a decent name in the notification where there are a few ints - it makes for some very confusing code if it's mixed in with other things.

@bebehei
Copy link
Member

bebehei commented Nov 23, 2017

Also I'd like to add: The hint sent via notification is actually called value. It might also be a good choice to refactor this to make this clear.

I withdraw my statement. In the standard, there is no reference to a hint called value. It's just that most people use it. Sticking to progress is fine.

@tsipinakis
Copy link
Member

JFTR, I'm waiting for #428 to implement this since it would conflict currently

@bebehei bebehei added this to the v1.4.0 milestone Dec 30, 2017
tsipinakis added a commit to tsipinakis/dunst that referenced this issue Jan 5, 2018
The progress hint is mostly used for progress bars but as discussed in
 dunst-project#437 there are cases where values > 100 make sense.

Fixes dunst-project#437
karlicoss pushed a commit to karlicoss/dunst that referenced this issue Mar 21, 2019
The progress hint is mostly used for progress bars but as discussed in
 dunst-project#437 there are cases where values > 100 make sense.

Fixes dunst-project#437
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

3 participants