Bug 358085

Summary: Regression: Device Notifier ignores the setting of "Removable Devices Only"
Product: [Plasma] plasmashell Reporter: Paul <pip.kde>
Component: Disks & DevicesAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED UPSTREAM    
Severity: normal CC: kde, sonichedgehog_hyperblast00
Priority: NOR    
Version: 5.5.2   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Device Notifier ignoring setting "Removable Devices Only"
As requested: plasma-org.kde.plasma.desktop-appletsrc
As requested: udiskctrl dump

Description Paul 2016-01-16 17:28:38 UTC
Device Notifier does not obey the setting of "Removable Devices Only".

See attached screenshot. (Only the first device is a removable device, the remaining four are fixed SSD/HDD drives.)



Reproducible: Always

Steps to Reproduce:
1. In "Device Notifier Settings -> General" set option to "Removable Devices Only" -> Apply -> OK
2. Insert a removable device. (USB stick for example.)
3. 

Actual Results:  
Device Notifier shows fixed devices as well as the just inserted removable device.

Expected Results:  
Only the removable device is shown.

KDE Frameworks 5.17.0
plasma5-workspace 5.5.2-1.1
Comment 1 Paul 2016-01-16 17:30:25 UTC
Created attachment 96687 [details]
Device Notifier ignoring setting "Removable Devices Only"
Comment 2 David Edmundson 2016-01-19 12:18:31 UTC
Works here. 

Can I see your ~/.config/plasma-org.kde.plasma.desktop-appletsrc ?

Also the output of "udisksctl dump"
Comment 3 Paul 2016-01-19 13:50:15 UTC
Created attachment 96733 [details]
As requested: plasma-org.kde.plasma.desktop-appletsrc
Comment 4 Paul 2016-01-19 13:51:01 UTC
Created attachment 96734 [details]
As requested: udiskctrl dump
Comment 5 Paul 2016-01-19 13:52:16 UTC
Requested information attached.
Comment 6 David Edmundson 2016-01-19 15:21:52 UTC
Both the drive on sda and sdc are both marked as ejectable by udisks.

/org/freedesktop/UDisks2/drives/Corsair_Force_LS_140681530000994605e6:
    Ejectable:                  true

/org/freedesktop/UDisks2/drives/WDC_WD2500AAKS_2_WD_WMART1815083:
  ConnectionBus:              
    Ejectable:                  true

From a Plasma POV we're doing the right thing with the data we're given.
Please follow this up with udisks: http://www.freedesktop.org/wiki/Software/udisks/ 

Thanks
Comment 7 Paul 2016-01-19 16:53:13 UTC
Hmm... yes, it seems that it was introduced with the udisks2 update to 2.1.6

I have another machine which still has 2.1.5 and that gives the following:

...           
    Ejectable:                  false
    Id:                         Corsair-Force-LS-140681530000994605e6
...

I don't have plasma5 on that machine, but I'm guessing the device notifier would (correctly) not show the above drive.

OK. Thanks. Sorry for the erroneous bug report.
Comment 8 Paul 2016-01-20 12:43:35 UTC
(In reply to David Edmundson from comment #6)
> Please follow this up with udisks:
> http://www.freedesktop.org/wiki/Software/udisks/ 

Just for information. Bug report against udisks2:
https://bugs.freedesktop.org/show_bug.cgi?id=93789
Comment 9 Kai Uwe Broulik 2016-01-20 12:58:26 UTC
*** Bug 358250 has been marked as a duplicate of this bug. ***