Re: UDisks dbus async calls don't work sometimes when a second mainloop exists

2010-06-29 Thread PCMan
Thank you all for the quick reply. Is there any suggested way to workaround this? I previously tried to schedule a idle handler and call FilesystemMount in it instead, and it works. However, this could make things out of sync. When my idle handler get called, it's possible that the device was alrea

[udisks] CD-ROM polling failed due to O_EXCL flag (poller.c)

2011-02-25 Thread PCMan
Hi list, UDisks failed to perform ForceUnmount when I press the physical eject button on my CDROM. So I downloaded udisks source code from git and traced it for a while and then I found the problem. Here are the related properties of my device. -

Re: [udisks] CD-ROM polling failed due to O_EXCL flag (poller.c)

2011-02-25 Thread PCMan
Please see similar source code from the deprecated HAL.: hal/hald/linux/addons/addon-storage.c: While UDIsks add O_EXCL unconditionally, HAL tries O_EXCL first, and if the device is busy, in some cases it does it without that flag. static gboolean poll_for_media_force (void) { int fd;

Re: [udisks] CD-ROM polling failed due to O_EXCL flag (poller.c)

2011-02-25 Thread PCMan
I made a small patch against the latest udisks in git after hacking HAL daemon and it works. Please review the patch. Thanks a lot. https://bugs.freedesktop.org/attachment.cgi?id=43798&action=edit From d963e58dc5393d770191c2265512f41f9d85d406 Mon Sep 17 00:00:00 2001 From: Hong Jen Yee (P

Re: [udisks] CD-ROM polling failed due to O_EXCL flag (poller.c)

2011-02-26 Thread PCMan
25, 2011 at 14:47, PCMan wrote: >> I made a small patch against the latest udisks in git after hacking HAL >> daemon >> and it works. Please review the patch. Thanks a lot. >> >> https://bugs.freedesktop.org/attachment.cgi?id=43798&action=edit > > mtab is of

Re: policykit authentication agent with dbus

2012-06-20 Thread PCMan
On Thu, Jun 21, 2012 at 2:17 AM, Kevin Chadwick wrote: >> I want to implement a policy agent for kde3 and I want to use only dbus >> calls. > > What's so good about dbus. For years Windows has been criticised for > it's abundant use of difficult to secure RPC. (Ever disabled RPC on > Windows?, qu