Bug 320754 - device notifier for external USB drive opens wrong directory in filemanager
Summary: device notifier for external USB drive opens wrong directory in filemanager
Status: RESOLVED UNMAINTAINED
Alias: None
Product: plasma4
Classification: Unmaintained
Component: widget-devicenotifier (other bugs)
Version First Reported In: 4.10.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-05 06:47 UTC by Martin Koller
Modified: 2018-05-12 12:49 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Koller 2013-06-05 06:47:18 UTC
With openSuse 12.3 when I attach an external USB harddisc and click on "open with filemanager" in the notifier popup, konqueror opens but shows my home directory instead of the mounted directory.
This worked before on an older openSuse and KDE version.
What I see with this version is that the mountpoint is no longer something below /media but
/run/media/koller/bdfc13a8-d3c5-440d-936f-72520d9e77a1 AND
/var/run/media/koller/bdfc13a8-d3c5-440d-936f-72520d9e77a1
No idea why this is mounted twice.

Reproducible: Always
Comment 1 Dennis Grunert 2013-06-14 22:09:38 UTC
Actually this is not always reproducible but depends on the USB device.

Here the steps to produce a "bad" usb device, with which one can always reproduce the bug:

1. Take a usb pin drive of your choice, plug it in and have it under e.g. /dev/sdc
2. mkdosfs -F 32 -n '1AA9-0EED' -I /dev/sdc [notice the label definition]
3. unplug it and plug it in again
4. device notification widget should show up, press "open with dolphin"
5. Instead /var/run/media/<user name>/1AA9-0EED/ dolphin opens /home/<user name>

Keep in mind that

a) the device is mounted correctly and is accessible under /var/run/media/<user name>/1AA9-0EED/ but is not opened by dolphin.
b) the label of the device is important: If you choose the label "test" everything works fine. The hyphen seems to make the difference! Martin Koller also has a hyphen in the label name of his device.
c) The same label was working with openSUSE 12.2 (KDE 4.8) and stopped working with openSUSE 12.3 (KDE 4.10), so it seems to be a regression bug in KDE or openSUSE (since Martin is also using openSUSE). Can anyone test this with another distro please?

So this one should now be easy to hunt down.
Comment 2 Dennis Grunert 2013-12-14 10:39:10 UTC
This bug is fixed for me with KDE 4.11.2 under openSUSE 13.1.

If I now follow the steps under comment 1 (of course step 1.5 would be to umount /dev/sdc), in step 5 it will open /var/run/media/<user name>/1AA9-0EED/ as it is supposed to be.

@Martin Koller: Can you check again under openSUSE 12.3 (then the fix needs to be backported since 12.3 is still maintained) or confirm that it is fixed under openSUSE 13.1 ?
Comment 3 Martin Koller 2013-12-14 11:56:35 UTC
I'm already also at openSuse 13.1 and am using KDE 4.12 RC1 (4.11.95) and the bug is still there, sorry.
But it has some strange behavior:
I plug in the USB stick, get the popup, click "open with filemanager", but my $HOME is shown.
I unmount the stick, plug it in again, do the same action, and suddenly it shows /var/run/media/koller/74D3-673A which is the correct dir of the USB stick.
When this is happening, I can no longer reproduce the bug. Even when unmounting, unplugging again.
I need to test if that also happens after logout or reboot ...
Comment 4 Jaka 2014-06-24 18:15:27 UTC
I also experience this bug, but for me it is a regression from 4.12 — it worked fine before with the same device.
Comment 5 kde2eran 2016-06-11 14:39:09 UTC
I get the same problem with Fedora's plasma-workspace-5.6.4-1.fc23.x86_64 .
Comment 6 Martin Koller 2017-12-17 10:48:13 UTC
Since plasma4 is dead and I already have my own desktop shell, liquidshell, I don't care any longer.