I too would like some help adding K3B as an action to the notifier menu. When a music cd is inserted into the drive, notifier acknowledges the cd and indicates two actions. “Play Audio CD with Amarok” and Play Audio CD with Kaffeine".
How would I add an action for K3B to the actions available in the notifier?
Right click on the device notifier, select “Device Notifier Settings” and then “Device Actions.” You will see a list of already-configured device actions, one of which is “Copy with K3b.” On my system that item never actually appeared as an option when I inserted either a cd or dvd, and I think it’s because it’s configured so that Device Content must contain “Audio|Data|VideoDvd.” I suspect that listing all of those possibilities together like that is somehow making it not match any of them.
I don’t know what the right syntax might be to correct the original item. so what I did is add another device action of my own and call it “Copy audio cd with K3b.” I copied all the settings from the original K3b item, except I set it so that content only needs to include audio. Now “Copy audio cd with K3b” appears as one of the options when I insert an audio cd. I haven’t added individual items for data or videodvd, but I think the same principle would hold.
I am now even more confused - I edited the Device Actions for “Extract Digital Audio”, which is set up to execute "k3b --cddarip %25i ", to be identical to the device Actions for “Play Audio CD with Amarok”.
However, inserting an audio CD still only offers up the Play with Amarok menu option.
My experience with trying to edit the already-existing entries via the device notifier GUI configurator in KDE 4.6 is that it’s fruitless, though the interface gives no indication of this. From what you describe, it sounds like this hasn’t changed in 4.7. You can manually edit the relevant .desktop file in /usr/share/kde4/apps/solid/actions. As to exactly what you would need to change, that I don’t know.
I find it interesting that the edits I made when right clicking on Device Notifier icon are also seen when selecting Personal Settings-Hardware-Device Actions, but as you note the changes are not effective.
OK, some success.
Following the suggestion, as root I navigated to /usr/share/kde4/apps/solid/actions and made a clone of the action file:///usr/share/kde4/apps/solid/actions/k3b_audiocd_rip.desktop, called file:///usr/share/kde4/apps/solid/actions/k3b_audiocd_rip_cjm.desktop.
I then edited the file changing
X-KDE-Solid-Predicate=[StorageVolume.ignored == false AND OpticalDisc.availableContent == 'Audio']
, which I copied from the file file:///usr/share/kde4/apps/solid/actions/amarok-play-audiocd.desktop.
I logged out, logged in and inserted an audio CD.
Device Notifier now offers up my modified action, in addition to play with Amarok.
When I right click on Device Notifier and select Actions - Edit, I have two Actions with the same
requirement: The device property Available Content must contain Audio.
One I created by editing from the Right Click on Device Notifier, one I created by adding an additional action to file:///usr/share/kde4/apps/solid/actions/k3b_audiocd_rip.desktop (see above).
Only the action in file:///usr/share/kde4/apps/solid/actions/k3b_audiocd_rip_cjm.desktop actually is in the pop-up menu after the Device Mounts - seems to confirm that user edited actions don’t work.