summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukáš Tinkl <[email protected]>2014-12-03 14:30:19 +0100
committerLukáš Tinkl <[email protected]>2014-12-03 14:30:19 +0100
commitd92ab6c753219d4d598a2a9124da0a11d1cddbba (patch)
treec57bd2aa7a3fe76db8fddf21092f96fe94cf5998
parent23163a9b0a20b0e6d7c9b0aaf4e5fd6d81d3d3f4 (diff)
add a Solid action to play Audio CD
to be used as an action in the Device Notifier applet
-rw-r--r--misc/CMakeLists.txt2
-rw-r--r--misc/dragonplayer-openaudiocd.desktop9
2 files changed, 10 insertions, 1 deletions
diff --git a/misc/CMakeLists.txt b/misc/CMakeLists.txt
index 2af680f..534e5ad 100644
--- a/misc/CMakeLists.txt
+++ b/misc/CMakeLists.txt
@@ -1,5 +1,5 @@
install(PROGRAMS org.kde.dragonplayer.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
-install(FILES dragonplayer-opendvd.desktop DESTINATION ${DATA_INSTALL_DIR}/solid/actions )
+install(FILES dragonplayer-opendvd.desktop dragonplayer-openaudiocd.desktop DESTINATION ${DATA_INSTALL_DIR}/solid/actions )
install(FILES dragonplayer_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install(FILES dragonplayerrc DESTINATION ${CONFIG_INSTALL_DIR})
install(FILES dragonplayer_play_dvd.desktop DESTINATION ${SERVICES_INSTALL_DIR}/ServiceMenus)
diff --git a/misc/dragonplayer-openaudiocd.desktop b/misc/dragonplayer-openaudiocd.desktop
new file mode 100644
index 0000000..a293470
--- /dev/null
+++ b/misc/dragonplayer-openaudiocd.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+X-KDE-Solid-Predicate=[ StorageVolume.ignored == false AND OpticalDisc.availableContent == 'Audio' ]
+Type=Service
+Actions=open;
+
+[Desktop Action open]
+Name=Play Audio CD using Dragon Player
+Exec=dragon --play-dvd
+Icon=dragonplayer