[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#784807: plasma-widgets-workspace: devicenotifier is not aware the the device un mounted



Package: plasma-widgets-workspace
Version: 4:4.11.13-2
Severity: normal

Dear maintainer,

When a removable device (USB pen drive, DVD, etc.) is mounted with
devicenotifier, devicenotifier does not seem to be aware that the
device is mounted: it does not provide the option to unmount it
("eject" icon) as in [1].

[1] https://userbase.kde.org/images.userbase/0/0f/Device_Notifier_Widget.png

It is possible to unmount the device with dolphin or in nautilus.

I tried to:

 * uninstall nautilus;
 
 * try with a newly created user;

 * pkill plasma-desktop && plasma-desktop &;

but neither of these solutions seem to fix the issue.

Here is the relevant excerpt of `udisks dump` when the filesystem is
mounted:

~~~
/org/freedesktop/UDisks2/block_devices/sdh1:
  org.freedesktop.UDisks2.Block:
    Configuration:              []
    CryptoBackingDevice:        '/'
    Device:                     /dev/sdh1
    DeviceNumber:               2161
    Drive:                      '/org/freedesktop/UDisks2/drives/SWISSBIT_Victorinox_2_xxx_xxxxxxxxxxxxx'
    HintAuto:                   true
    HintIconName:               
    HintIgnore:                 false
    HintName:                   
    HintPartitionable:          true
    HintSymbolicIconName:       
    HintSystem:                 false
    Id:                         by-uuid-xxxx-xxxx
    IdLabel:                    
    IdType:                     vfat
    IdUUID:                     xxxx-xxxx
    IdUsage:                    filesystem
    IdVersion:                  FAT32
    MDRaid:                     '/'
    MDRaidMember:               '/'
    PreferredDevice:            /dev/sdh1
    ReadOnly:                   false
    Size:                       130268672
    Symlinks:                   /dev/disk/by-id/usb-SWISSBIT_Victorinox_2.0_xxxxxxxxxxxxx-0:0-part1
                                /dev/disk/by-path/pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:0-part1
                                /dev/disk/by-uuid/xxxx-xxxx
  org.freedesktop.UDisks2.Filesystem:
    MountPoints:        /media/xxxxx/xxxx-xxxx
  org.freedesktop.UDisks2.Partition:
    Flags:              128
    IsContained:        false
    IsContainer:        false
    Name:               
    Number:             1
    Offset:             16384
    Size:               130268672
    Table:              '/org/freedesktop/UDisks2/block_devices/sdh'
    Type:               0x0b
    UUID:               xxxxxxxx-xx
~~~

This probably happens on Jessie as well.


This simplified version of devicenotifier shows that the device is
seen as Non-Accessible (run with `qmlviewer -I /usr/lib/kde4/imports/
test.qml`):

~~~test.qml
// Heavily extracted from the devicenotifier source code
import QtQuick 1.0
import org.kde.plasma.core 0.1 as PlasmaCore
import org.kde.plasma.components 0.1 as PlasmaComponents
import org.kde.plasma.extras 0.1 as PlasmaExtras

Rectangle {

    id: page
    width: 500; height: 200

    PlasmaCore.DataSource {
        id: hpSource
        engine: "hotplug"
        connectedSources: sources
        interval: 0
    }

    PlasmaCore.DataSource {
        id: sdSource
        engine: "soliddevice"
        connectedSources: hpSource.sources
        interval: 0
        property string last
    }

    ListView {
        width: 180; height: 200
        model: PlasmaCore.SortFilterModel {
            id: filterModel
            sourceModel: PlasmaCore.DataModel {
                dataSource: sdSource
            }
            filterRole: "Removable"
            filterRegExp: "true"
            sortRole: "Timestamp"
            sortOrder: Qt.DescendingOrder
        }
        delegate: Text {
            text: model["Description"]
              + " - " + model["Device"]
              + ":" + (model["Accessible"] ? "Accessible" : "Non-Accessible")
        }
    }
}
~~~

As far as I understand, Solid::StorageAccess::isAccessible() returns
false, because StorageAccess::isAccessible() returns false because
Device::isMounted() returns false which probably means that for some
reason it is not finding/recognising the `MountPoints` property.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (90, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages plasma-widgets-workspace depends on:
ii  libc6                         2.19-18
ii  libkdecore5                   4:4.14.2-5
ii  libkdeui5                     4:4.14.2-5
ii  libkdewebkit5                 4:4.14.2-5
ii  libkio5                       4:4.14.2-5
ii  libkunitconversion4           4:4.14.2-5
ii  libplasma3                    4:4.14.2-5
ii  libplasmaclock4abi4           4:4.11.13-2
ii  libqt4-declarative            4:4.8.6+git155-g716fbae+dfsg-2
ii  libqt4-network                4:4.8.6+git155-g716fbae+dfsg-2
ii  libqt4-xml                    4:4.8.6+git155-g716fbae+dfsg-2
ii  libqtcore4                    4:4.8.6+git155-g716fbae+dfsg-2
ii  libqtgui4                     4:4.8.6+git155-g716fbae+dfsg-2
ii  libqtwebkit4                  2.3.4.dfsg-3
ii  libstdc++6                    4.9.2-10
ii  libx11-6                      2:1.6.3-1
ii  libxcomposite1                1:0.4.4-1
ii  libxdamage1                   1:1.1.4-2+b1
ii  libxfixes3                    1:5.0.1-2+b2
ii  libxrender1                   1:0.9.8-1+b1
ii  plasma-dataengines-workspace  4:4.11.13-2

plasma-widgets-workspace recommends no packages.

plasma-widgets-workspace suggests no packages.

-- no debconf information


Reply to: