plyer icon indicating copy to clipboard operation
plyer copied to clipboard

timeout parameter in notifications doesn't work in windows 10

Open fjleon1980 opened this issue 6 years ago • 3 comments

no matter what timeout=X value i put it, the notification's time on the screen is always the same, as long as it's above 5 seconds

putting a timeout=20 for example, shows the notification for about 5-6 seconds but the python interpreter is still "stuck" because it's waiting for 20 seconds to continue with the script.

if using a lower than 5 seconds as a value, it actually exists before the regular 5-6 seconds are up.

i would like to use timeout=0 and make the notification stay on screen until i closed it manually

fjleon1980 avatar Apr 20 '19 21:04 fjleon1980

You have to change notification time for windows from ..

start > settings > ease to access > display > Show notification for

Default time for this in windows 10 is 5 sec, so for whatever value of timeout your notification will be display only for 5 sec.

deepghodasara1999 avatar Feb 16 '21 19:02 deepghodasara1999

You have to change notification time for windows from ..

start > settings > ease to access > display > Show notification for

Default time for this in windows 10 is 5 sec, so for whatever value of timeout your notification will be display only for 5 sec.

It is a controllable parameter. With win10toast duration can be controlled but with plyer I had no luck either. So Windows10 allows it. The user is not has to change the duration from the windows settings.

I think it is a solvable issue. Have you ever find any useful solutions @fjleon1980 ?

darkcurrent avatar Jul 11 '21 16:07 darkcurrent

@darkcurrent Windows 10 by default has a 5 seconds timeout the only way we can change it is through the windows settings:

  1. Go to settings
  2. Ease to access
  3. Scroll down to where it says Show notification for

Screenshot_28

However, does the timeout works for Linux and Mac OS?

Another solution is to use another module, unfortunately.

If anyone else has a solution please Let me know.

someone20dz avatar Feb 17 '22 13:02 someone20dz

Closing as it appears to not be possible to solve.

However, if you have more information, please let us know.

Julian-O avatar Oct 26 '23 10:10 Julian-O