After many versions, many layout problems let me introduce you the new device notifier :
Another screenshot :
As we can see on screenshot it display recent plugged devices in a list with the number of actions associated to the device. It you have one action for a device and you click on it, it open directly the action. If you have many actions associated to the device it open solidUiServer with the action list.
When you plug a device the notifier pop up on top to inform you when a new device is plugged.
Actually i do a sample file wich recognize only usb key but for applications it will be easy to associate an action to a device. You can see the following example :
[Desktop Entry]
X-KDE-Solid-Predicate=[[ StorageVolume.ignored == false AND StorageVolume.usage == 'FileSystem' ] OR [ IS StorageAccess AND StorageDrive.driveType == 'Floppy' ]]
Type=Service
Actions=open;
[Desktop Action open]
Name=Dolphin
Exec=dbus-launch dolphin
You have just to create a solid predicate which match with the device you want to associate and after you install this .desktop file in installdir/solid/actions and hotplug engine will do everything for you…
You can give me feedback it’s the goal of my post…
Thanks.