Brainstorming
HiMD Auto Detection
Looking for a way to detect a connected HiMD walkman automatically and connect it in qhimdtransfer.
This splits into two different questions, presented with their possible solutions:
Detecting Hi-MD walkmen that are already connected to the computer on start of QHiMDTransfer
Detecting when a new HiMD walkmen gets connected
On Linux: Listen on system DBus for DeviceAdded/DeviceRemoved events
On Windows: Listen for "WM_DEVICECHANGE"-Message with subcodes "DBT_DEVICEARRIVAL"/"DBT_DEVICEREMOVECOMPLETE"
-
On Mac: Listen for "NSWorkspaceDidMountNotification" / "NSWorkspaceDidUnmountNotification"-Notifications
On Linux/Windows: Use autorun/autoplay-like mechanism. The program called by autorun need not to present the full
GUI, it might be enough to just tell an already running QHiMDTransfer the addition of a new device.
Screenshots on how the autorun-like entry works in the gnome file manager (the first image shows the file browser in the root directory of a Hi-MD medium, the second the file manager autorun properties):