From ada53cb9c6e53dddabd4fcdb176a8bf509b75bbd Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 25 Nov 2019 21:56:24 +0100 Subject: [PATCH] Add an integration with Dolphin --- dolphin/README.md | 14 ++++++++++++++ dolphin/mat2.desktop | 11 +++++++++++ 2 files changed, 25 insertions(+) create mode 100644 dolphin/README.md create mode 100644 dolphin/mat2.desktop diff --git a/dolphin/README.md b/dolphin/README.md new file mode 100644 index 0000000..9e7da44 --- /dev/null +++ b/dolphin/README.md @@ -0,0 +1,14 @@ +Dolphin integration +=================== + +Thanks to [Miguel Marco](https://riemann.unizar.es/~mmarco/), here is an neat +integration for [Dolphin](https://kde.org/applications/system/org.kde.dolphin), +the KDE file manager: + +1. Add the `mat.desktop` file either in + - `/usr/share/kservices5/ServiceMenus/` to install it globally + - `~/.local/share/kservices5/ServiceMenus/` for a specific user +2. Run `kbuildsycoca5` to update the corresponding database +3. Enjoy your new contextual menu to remove metadata from your files! + + diff --git a/dolphin/mat2.desktop b/dolphin/mat2.desktop new file mode 100644 index 0000000..f2727ce --- /dev/null +++ b/dolphin/mat2.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +X-KDE-ServiceTypes=KonqPopupMenu/Plugin +MimeType=application/pdf;application/vnd.oasis.opendocument.chart ;application/vnd.oasis.opendocument.formula ;application/vnd.oasis.opendocument.graphics ;application/vnd.oasis.opendocument.image ;application/vnd.oasis.opendocument.presentation ;application/vnd.oasis.opendocument.spreadsheet ;application/vnd.oasis.opendocument.text ;application/vnd.openxmlformats-officedocument.presentationml.presentation ;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet ;application/vnd.openxmlformats-officedocument.wordprocessingml.document ;application/x-bittorrent ;application/zip ;audio/flac ;audio/mpeg ;audio/ogg ;audio/x-flac ;image/jpeg ;image/png ;image/tiff ;image/x-ms-bmp ;text/plain ;video/mp4 ;video/x-msvideo; +Actions=cleanMetadata; +Type=Service + +[Desktop Action cleanMetadata] +Name=Clean metadata +Name[es]=Limpiar metadatos +Icon=/usr/share/icons/hicolor/scalable/apps/mat2.svg +Exec=kdialog --yesno "$( mat2 -s %U )" --title "Clean Metadata?" && mat2 %U