Bug 463158 - Closes application launcher menu automatically when e.g. mounting drive
Summary: Closes application launcher menu automatically when e.g. mounting drive
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (other bugs)
Version First Reported In: 5.26.4
Platform: Other Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-17 13:38 UTC by Richard Knausenberger
Modified: 2023-01-05 22:33 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Video (874.14 KB, video/x-flv)
2022-12-17 13:38 UTC, Richard Knausenberger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Knausenberger 2022-12-17 13:38:43 UTC
Created attachment 154649 [details]
Video

SUMMARY
When you plug in e.g. an external drive, the notification applet on the panel automatically opens and shows the list of mounted drives.

While this is great, there is a minor but annoying issue with it:
When I plug in my backup drive, open the application launcher menu and start typing (to open my backup application), the opening notification applet mounted drive list automatically closes my application launcher menu.
There is a delay between plugging an external drive in and when it actually gets mounted (and the applet opens the drive list). In this time I can open the application menu and start typing - but usually I am too slow, so it closes automatically while I'm still typing. This is quite annoying, since the - currently in use - application launcher menu should have priority.

I made a short video about it (in the attachments).
The video start immediately after i plugged in my external drive.

Maybe some kind of a priority system for applets could fix this?


STEPS TO REPRODUCE
1. plug in a drive
2. open the application menu

OBSERVED RESULT
The application menu gets closed automatically and the notification applets drive list opens.

EXPECTED RESULT
The application menu should stay open, the notification applets drive list shouldn't open automatically.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Comment 1 Patrick Silva 2022-12-19 12:03:53 UTC
Right-click on the applet. There is an option to not open automatically after mounting a device.
Comment 2 Richard Knausenberger 2022-12-21 10:31:33 UTC
(In reply to Patrick Silva from comment #1)
> Right-click on the applet. There is an option to not open automatically
> after mounting a device.

No no, the auto open on mount is great (and I don't want to disable it completely). It just should auto close "higher priority" applets like the application launcher menu.
Comment 3 Nate Graham 2023-01-05 22:33:54 UTC
Interesting issue; I can reproduce it .

The root cause is that when a popup opens, it closes other ones. You can override this by pinning a popup when it's open, but that's a manual thing, and the pop-ups aren't actually communicating with each other, just with the panel; the pinned pop-up says "yo panel, don't close me when something else opens."

If we somehow made Kickoff not close when the Disks & Devices popup opened in support of your use case, it wouldn't really work anyway, since only one thing can have keyboard focus at once. So even if Kickoff remained open, the Disks & Devices popup would take focus when it opened, ruining your ability to launch the app. The only way this would work is if the Disks & Devices popup opened without taking focus. That's a thing that popups currently don't have the ability to do, because it would be weird and feel very magical, and there are currently no plans to change this. So I don't think we can help you for that specific use case, sorry.

Thankfully there's a simple workaround for you: open your backup app first, then plug in the disk! :)

Here are other slightly more involved workarounds that I can think of:
- Make the Disks & Devices widget not open its popup automatically when plugging in a new disk, as Patrick suggested
- Use the System Settings > Removable Storage > Device Actions page to create a custom action that appears in the expanded view of disks in the Disks & Devices pop-up which opens your chosen backup app when clicked
- Use a different backup app that auto-opens when one of its backup locations is plugged in
- Use Kup, which is a KDE backup program that operates as system service, rather than a standalone app