Bug 351592

Summary: Need option to disable device notifier pop-up
Product: [Plasma] plasmashell Reporter: Chris <chriswhy>
Component: Disks & DevicesAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: wishlist CC: kde, kde, shevegen, thomas.pfeiffer
Priority: NOR Flags: kde: Usability+
Version: 5.3.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 5.7.0
Sentry Crash Report:

Description Chris 2015-08-22 00:52:18 UTC
I like Device Notifier except for one thing: I have no ability to prevent the pop-up when I insert a device. For years, Windows and OS X have had the ability to prevent anything from popping up when a device is inserted. However, KDE Plasma lacks this functionality, as far as I can tell. For example, when I'm playing Terraria and I plug in my Android phone, the pop-up causes Terraria to minimize.

Reproducible: Always

Steps to Reproduce:
Insert a USB storage device.

Actual Results:  
A pop-up is triggered, with no option to disable it.

Expected Results:  
I expect to be able to disable the pop-up.
Comment 1 shevegen 2015-08-22 01:01:58 UTC
I concur.

Ideally an option should be added such as "disable pop-up notification" in the "device settings options". The popup can become intrusive and annoying - and it is in these cases that the user should be able to diable them. (An additional option may be to slowly slide up, stay open for at max 2 seconds, then slowly slide down again - when a user then clicks on it, it can remain open for longer; but again, this behaviour should be user-set able altogether, including an option to disable this pop up too)
Comment 2 David Edmundson 2015-08-22 12:51:25 UTC
Won't it be better to  simply not have a popup when there's a fullscreen window open.

Otherwise you'll have to remember to enable and disable it before starting Terraria, which means most users will hit the problem at least once.
Comment 3 Kai Uwe Broulik 2015-08-22 13:28:56 UTC
I like that. We could probably give the popup the Notification window type when it pops up by itself as it basically serves as a notification, and we would get not on top of full screen window behavior for free. I don't know if kwin likes windows changing their window type though, although we would only do that before showing, not while it's there.
Comment 4 Thomas Pfeiffer 2015-08-22 22:34:11 UTC
Popups definitely have to bt suppressed while something is running full-screen. Not only these popups, but _any_ popups which are not initiated explicitly by the user. When you switch an application to fullscreen, it's because you want to direct your full attention to it.

That said, the popup interfering with a full-screen game was just a specific example which would better be solved in a different way. That doesn't automatically mean that it doesn't make sense to have such an option. I can very well imagine that users who for example insert or remove devices very often perceive the popup as more of an annoyance than something helpful, even when they have nothing running fullscreen.
For them, an option to turn off the popup altogether would still be useful.

So, please
a) Suppress the popup when a fullscreen application is running
b) Insert an option in the configuration of the device notifier plasmoid ("Do not show popup when a device is attached"
Comment 5 Kai Uwe Broulik 2016-06-07 19:21:24 UTC
Git commit 9c2f167b6cafe2c8bb3521193d27bd881383e3b3 by Kai Uwe Broulik.
Committed on 07/06/2016 at 19:20.
Pushed by broulik into branch 'master'.

[Device Notifier] Add option to disable popup on new device
FIXED-IN: 5.7.0

Differential Revision: https://phabricator.kde.org/D1592

M  +3    -0    applets/devicenotifier/package/contents/config/main.xml
M  +7    -0    applets/devicenotifier/package/contents/ui/configGeneral.qml
M  +3    -1    applets/devicenotifier/package/contents/ui/devicenotifier.qml

http://commits.kde.org/plasma-workspace/9c2f167b6cafe2c8bb3521193d27bd881383e3b3