← Back to team overview

touch-packages team mailing list archive

[Bug 1354543] Re: mediascanner fails to watch removable devices if /media/$USER doesn't exist when starting

 

The way Mediascanner currently gets to know about mounted drives is a
bit hacky as it listens to inotify events in that directory. Is there a
more reliable way of getting mount/unmount events from the system? Maybe
over dbus?

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mediascanner2 in Ubuntu.
https://bugs.launchpad.net/bugs/1354543

Title:
  mediascanner fails to watch removable devices if /media/$USER doesn't
  exist when starting

Status in “mediascanner2” package in Ubuntu:
  Confirmed

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.10.20140805-0ubuntu1
  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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mediascanner2/+bug/1354543/+subscriptions


Follow ups

References