summaryrefslogtreecommitdiffstats
path: root/src/servicemenus/media_lock.desktop
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2020-10-18 12:37:15 +0800
committerMichele Calgaro <[email protected]>2020-10-18 12:37:15 +0800
commit549e06a219069ea41acf119453d0f97431f891d1 (patch)
treeba15fc48bad692b91063dd13fc29d76469f9a801 /src/servicemenus/media_lock.desktop
parentda3ecba44ddfb9a78dbba61776bae04f17dbfc3e (diff)
downloaddolphin-549e06a219069ea41acf119453d0f97431f891d1.tar.gz
dolphin-549e06a219069ea41acf119453d0f97431f891d1.zip
Added lock/unlock media actions and made safe removal and locking avaiable also for unlocked and mounted medium.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/servicemenus/media_lock.desktop')
-rw-r--r--src/servicemenus/media_lock.desktop10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/servicemenus/media_lock.desktop b/src/servicemenus/media_lock.desktop
new file mode 100644
index 0000000..d575653
--- /dev/null
+++ b/src/servicemenus/media_lock.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+X-TDE-ServiceTypes=media/bluray_encrypted_unlocked,media/cdrom_encrypted_unlocked,media/cd-r_encrypted_unlocked,media/cd-rw_encrypted_unlocked,media/dvd_encrypted_unlocked,media/hdd_encrypted_unlocked,media/removable_encrypted_unlocked
+Actions=MediaLock;
+X-TDE-Priority=TopLevel
+X-TDE-MediaNotifierHide=true
+
+[Desktop Action MediaLock]
+Exec=tdeio_media_mounthelper -l %u
+Icon=encrypted
+Name=Lock