Bug 471508

Summary: Queued invocation of drive when requesting access causes "error failed successfully"-like banner.
Product: [Applications] dolphin Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: panels: foldersAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: kfm-devel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: The error banner.

Description Roke Julian Lockhart Beedell 2023-06-27 16:12:41 UTC
STEPS TO REPRODUCE

After loading KDE Plasma without authenticating via a login manager like SDDM (common if set to automatically login, but also if logged in via a TTY with startx) an authentication window appears requesting the superuser password in order to mount external (in my case BTRFS) drives. [Read next]

(OBSERVED RESULT)

If the user tries to open the locked 2ndary drive in Dolphin with the "Open in new tab" item in the context menu before providing the password, but providing the password afterward, Dolphin creates a nonsensical error banner:

```
An error occurred while accessing 'RWPR04', the system responded: The device is already mounted: Device /dev/nvme1n1p1 is already mounted at `/run/media/rokejulianlockhart/RWPR04'.
```

[Read next]

(EXPECTED RESULT)

...instead of just opening the drive in a new tab.

SOFTWARE/OS VERSIONS

Operating System: openSUSE Tumbleweed 20230625
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.3.9-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon RX 5700
Comment 1 Roke Julian Lockhart Beedell 2023-06-27 16:13:48 UTC
Created attachment 159929 [details]
The error banner.

> An error occurred while accessing 'RWPR04', the system responded: The device is already mounted: Device /dev/nvme1n1p1 is already mounted at `/run/media/rokejulianlockhart/RWPR04'.