mediascanner fails to watch removable devices if /media/$USER doesn't exist when starting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mediascanner2 (Ubuntu) |
Fix Released
|
Critical
|
Jussi Pakkanen |
Bug Description
If the system has never mounted a removable device then /media/$USER does not exist which causes mediascanner to fail it's watch with this error:
Mount directory does not exist
if something is mounted after this, then it just doesn't notice it.
starting mediascanner after /media/$USER is created allows everything to work.
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: mediascanner2.0 0.102+14.
Uname: Linux 3.4.67 armv7l
ApportVersion: 2.14.5-0ubuntu3
Architecture: armhf
Date: Fri Aug 8 14:39:22 2014
InstallationDate: Installed on 2014-08-08 (0 days ago)
InstallationMedia: Ubuntu Utopic Unicorn (development branch) - armhf (20140808-020205)
SourcePackage: mediascanner2
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- James Henstridge: Approve
- PS Jenkins bot (community): Approve (continuous-integration)
- Sergio Schvezov (community): Approve
-
Diff: 219 lines (+81/-31)2 files modifiedsrc/daemon/SubtreeWatcher.cc (+1/-1)
src/daemon/scannerdaemon.cc (+80/-30)
Jussi can you take a look? this is to make SD cards work properly for media playback