Bug 350392 - Dolphin creates two entries for Luks partition that point to same drive.
Summary: Dolphin creates two entries for Luks partition that point to same drive.
Status: RESOLVED DUPLICATE of bug 327068
Alias: None
Product: frameworks-solid
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Lukáš Tinkl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-20 06:35 UTC by Artur O.
Modified: 2017-01-28 21:01 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artur O. 2015-07-20 06:35:03 UTC
(I put this in general since cannot be sure where else to put it.)

Issue is that when you have a luks partition with a drive label Dolphin will create two entries in Devices for the same drive when mounted.

Dolphin will first show the drive in Devices with generic name "X Encrypted Drive" clicking on that entry will ask for password and if correct will mount it.

However it will also create another entry in Devices that's the label of that encrypted partition giving two entries for the same drive.

(For me it creates)
1: 2.7 TiB Encrypted Drive
2: <Drive Label>

Clicking on any of them shows the same root folder of the encrypted drive. 
Clicking on <Drive Label> will highlight it and then clicking on a folder on that drive will then automatically highlight 2.7 TiB Encrypted Drive entry instead.

Reproducible: Always

Steps to Reproduce:
1. Have a luks partition with a label ready.
2. Mount it using dolphin


Actual Results:  
Two entries pointing to the same drive, 
one generic "X Encrypted Drive" and 
one with the label of the drive.

Expected Results:  
If label available show label else show the generic name.
Comment 1 Artur O. 2015-07-20 07:04:28 UTC
Dolphin
Version 15.04.0
Using KDE Development Platform 4.14.10
Comment 2 Hussam Al-Tayeb 2015-07-20 16:18:32 UTC
That's been an issue for years since udisks usage. Gvfs had it too but I forgot how they fixed or worked around it.
Comment 3 Frank Reininghaus 2015-07-23 17:03:41 UTC
Do you see the same issue in, e.g., the "File Open" dialog of KWrite or other KDE applications? What is your KWrite version?
Comment 4 Artur O. 2015-07-24 11:02:56 UTC
(In reply to Frank Reininghaus from comment #3)
> Do you see the same issue in, e.g., the "File Open" dialog of KWrite or
> other KDE applications? What is your KWrite version?

It does not show the red error when trying to mount with "File Open" dialog in KWrite however I still got a notification that it failed to mount while both entrys shows up in the dialog window.

From the help window,
KWrite
Version 5.0.0
Using KDE Frameworks 5.12.0
Comment 5 Hussam Al-Tayeb 2015-07-24 22:54:42 UTC
(In reply to Artur O. from comment #4)

> It does not show the red error when trying to mount with "File Open" dialog
> in KWrite however I still got a notification that it failed to mount while
> both entrys shows up in the dialog window.
In my case, I see the original partition /dev/sda3
and the unlocked mounted partition /dev/mapper/root.
/dev/sda3 cannot be mounted since it is luks partition.
You can try hiding the parition you don't want (i haven't tried this).
https://wiki.archlinux.org/index.php/Udisks#Hide_selected_partitions 
This is something that slipped through years ago with the move from Hal to udev.
Comment 6 Hussam Al-Tayeb 2015-07-24 22:55:27 UTC
Possible duplicate https://bugs.kde.org/show_bug.cgi?id=265251
Comment 7 Artur O. 2015-07-25 12:08:19 UTC
(In reply to Hussam Al-Tayeb from comment #6)
> Possible duplicate https://bugs.kde.org/show_bug.cgi?id=265251

Don't think so. this creates two devices. Not duplicate entry between Devices & Places or am I missing something?
Comment 8 Frank Reininghaus 2015-07-31 16:35:47 UTC
(In reply to Artur O. from comment #4)
> It does not show the red error when trying to mount with "File Open" dialog
> in KWrite however I still got a notification that it failed to mount while
> both entrys shows up in the dialog window.

Thanks. It's not a Dolphin issue then. The file dialog uses a different error handling mechanism though, which is why you do not see the red box.
Comment 9 Elvis Angelaccio 2017-01-28 21:01:30 UTC

*** This bug has been marked as a duplicate of bug 327068 ***