On Mon, Oct 4, 2010 at 17:42, Kay Sievers <kay.siev...@vrfy.org> wrote: > On Mon, Oct 4, 2010 at 17:30, Stef Bon <s...@bononline.nl> wrote: > >> To be sure, the command >> >> udisk --poll-for-media /dev/sr0 >> >> results in: >> : > ps aux | grep udisks | grep -v grep >> root 2792 0.0 0.0 14408 3060 ? SNl 12:09 0:00 >> /usr/lib/udisks/udisks-daemon >> root 2793 0.0 0.0 5884 668 ? SN 12:09 0:03 >> udisks-daemon: polling /dev/sr0 /dev/sdc /dev/sdd /dev/sr1 >> >> So while giving the command to poll the /dev/sr0 device only, it starts >> polling all the removable devices. That's what I mean with not intended >> behaviour. You mention that the intended behaviour is only polling the >> device on the command line right? > > I think the polling is started even before you run that command. > > Make sure you start udisks somehow, its usually done by the desktop > calling into D-Bus.
Maybe I wasn't clear. Running the above command probably causes the D-Bus bus activation of the udisks daemon. The actual --poll-for-media does not specifically start the periodic polling, it starts the daemon. With the daemon startup, periodic polling is always started too. Kay _______________________________________________ devkit-devel mailing list devkit-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/devkit-devel