Bug 400420

Summary: Redundant error message when password dialog to mount/unmount partition is canceled
Product: [Applications] dolphin Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: elvis.angelaccio, justin.zobel, nate
Priority: NOR Keywords: usability
Version First Reported In: 24.01.75   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2018-10-28 14:24:24 UTC
Created attachment 115947 [details]
screenshot

Dolphin asks for password to mount my partition, a redundant error message
shows up if I cancel the password dialog. See my screenshot please.
The following phrases are very similar:
"You are not authorized to perform this operation"
"Not authorized to perform operation"

Maybe the second one can be removed.

SOFTWARE VERSIONS
Arch Linux
KDE Plasma Version: 5.14.2
KDE Frameworks Version: 5.51
Qt Version: 5.12 beta3
Comment 1 Nate Graham 2018-11-01 20:09:28 UTC
This string is built in two places:
- https://lxr.kde.org/source/kde/applications/dolphin/src/panels/places/placesitemmodel.cpp
- KIO: https://lxr.kde.org/source/frameworks/kio/src/filewidgets/kfileplacesmodel.cpp

The middle string ("you are not authorized to perform this operation") comes from Solid: https://lxr.kde.org/source/frameworks/solid/src/solid/devices/backends/udisks2/udisksdevice.cpp

I'll see if I can sort out what's going on here. CCing Stefan BrĂ¼ns too since he's very knowledgeable about Solid.
Comment 2 Justin Zobel 2020-11-02 05:59:39 UTC
It may be my setup but I'm not prompted for a password to mount drives.

I ran an unmount and was prompted, cancelled the password input and the messages was displayed in Dolphin but wasn't a popup that needed dismissing.

Patrick can you please confirm if this is still an issue?
Comment 3 Patrick Silva 2020-11-02 11:20:39 UTC
Still an issue with Dolphin 20.08.2 on Arch Linux.

Operating System: Arch Linux
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1