same bug for me. But after investigation, I have found
DeviceDetection.py in the source. Here is the file :

import dbus

def get_compatible_devices():
        devices = []

        bus = dbus.SystemBus()
        hal_manager_obj = bus.get_object("org.freedesktop.Hal", 
"/org/freedesktop/Hal/Manager")
        hal_manager = dbus.Interface(hal_manager_obj, 
"org.freedesktop.Hal.Manager")

        volume_udi_list = hal_manager.FindDeviceByCapability ('volume')

        for udi in volume_udi_list:
                volume = bus.get_object("org.freedesktop.Hal", udi)
                fstype = volume.GetProperty ('volume.fstype')
                mount_point = volume.GetProperty ('volume.mount_point')
                is_mounted = volume.GetProperty ('volume.is_mounted')
                is_mounted_read_only = volume.GetProperty 
('volume.is_mounted_read_only')

                device_file = volume.GetProperty ('block.device')
                storage_udi = volume.GetProperty ('block.storage_device')

                storage = bus.get_object("org.freedesktop.Hal", storage_udi)
                drive_type = storage.GetProperty ('storage.bus')

                # Check if it is a Mass Storage Device and we can write to it
                if drive_type != "usb" or not is_mounted or 
is_mounted_read_only:
                        continue        

                info_udi = volume.GetProperty ('info.parent')
                info = bus.get_object("org.freedesktop.Hal", info_udi)

                # Only accept N770 and Portable Audio Players
                try: 
                        player_type = info.GetProperty 
('portable_audio_player.type')
                except dbus.DBusException, e:
                        if info.GetProperty ('info.product') == "770":
                                player_type = "770"
                                pass
                        else:
                                continue

                # Ignore iPods as they work differently than other Mass Storage 
Devices
                if player_type == "ipod":
                        continue

                for i in range(4):
                        info_udi = info.GetProperty ('info.parent')
                        info = bus.get_object("org.freedesktop.Hal", info_udi)

                product_name = info.GetProperty ('info.product')

                devices.append( (product_name, mount_point) )

        return devices

the instruction : fstype = volume.GetProperty ('volume.fstype') gave me
:

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied:
Rejected send message, 2 matched rules; type="method_call",
sender=":1.112" (uid=1000 pid=7470 comm="python) interface="(unset)"
member="GetProperty" error name="(unset)" requested_reply=0
destination=":1.21" (uid=0 pid=1762 comm="/usr/sbin/hald))

I think this is the point where syncropated crash and is not able to
detect devices. If someone more tuned with dbus can help ...

-- 
Syncropated can't find devices 
https://bugs.launchpad.net/bugs/165026
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to