https://bugs.kde.org/show_bug.cgi?id=393416

--- Comment #59 from RJVB <rjvber...@gmail.com> ---
I indeed did not implement any kind of event handling, if memory serves me well
the backend just queries the current state. My argument was that there was
little reason to implement event handling (or indeed support for many of the
other things Solid does on Linux) because that is mostly interesting for the
desktop shell and possibly "system utilities" that are tightly integrated with
that shell. On Mac (and MSWin), there are a priori only KDE applications, and
the consensus among the KDE team is that this is how it should be - they don't
even approve of the idea to make the system-settings app available, some even
object to providing DrKonqi.

This suited me because I hardly know IOKit myself, and I didn't really see the
added value to dive in and become an expert on it.

I'm pretty certain I tested if SD cards were detected; IIRC they show up as any
other volume does. FWIW, you must have noticed that IOKit doesn't use the same
abstraction for disks and volumes; this is quite clear in the Dolphin sidebar.
I can't remember the exact difference right now, but I do remember that there
wasn't really a way around it, not if I wanted to support the different
categories Solid supports.

Digikam shouldn't have a need to be informed immediately and with minimal
overhead when a device becomes available, I think. You should be able to work
around the missing events by using "aboutToXX" signals to get current
information about available devices for populating menus or lists. And possibly
by setting a KDirWatch on album directories on removable devices (if memory
serves me well you can set a watch on a non-existent directory and get a
creation event when it is created).

I guess I could take a look at how complicated it would be to add support for
device events to the Mac backend. I'm handicapped here by the fact that my sole
Mac still runs 10.9.5 which I don't really plan to upgrade enough to be able to
run the Qt version that is required by the latest KF5 frameworks. I'm a bit
tired of spending lots of time upgrading every few weeks. Maybe Solid still
builds against Qt 5.9; if not I'd be developing for KF5 5.60 and someone else
would need to incorporate it in git/master.

I'm not in touch with the Solid team (if such a team exists). The bugtracker is
managed by a separate team as far as I know, it would have been up to them to
notice that there should be a libsolid-mac section.

Re: iPhone: doesn't accessing those require a different library which probably
has its own event hooks?! iDevices do not appear as disks/volumes on Mac, so my
Solid backend does not have support for them.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to