KDE Plasma 5 service menu
Posted: Tue Oct 03, 2017 5:10 pm
I have created some delphin menu service for kate root, k3b, soundkonverter and convert to pdf, the NAME= of services and some Actions= is in italian, you can change in english or other languages
kate root copy/paste
and save the file
soundkonverter copy/paste
and save the file
k3b audio cd
k3b data cd/dvd
k3b iso
convert to pdf (converte to pdf from .doc, .docx, .odt, .jpeg, .jpg, .png, .tif, .tiff, .gif, .text)
kate root
Code: Select all
kdesudo kate /usr/share/kservices5/ServiceMenus/kate-root.desktop
Code: Select all
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=text/plain;text/html;text/xml;text/css;text/x-sh;text/x-csv;text/x-diff;
Actions=openRootKate;
X-KDE-AuthorizeAction=shell_access
[Desktop Action openRootKate]
Name=Apri con Kate come Amministratore
Exec=kdesudo "kate" %U
Icon=kate
soundkonverter
Code: Select all
kdesudo kate /usr/share/kservices5/ServiceMenus/soundkonverter.desktop
Code: Select all
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin,audio/x-wav,audio/aac,audio/x-flac,audio/x-mp3,audio/mpeg,audio/x-mpeg,audio/mpeg3,audio/x-mpeg3,audio/mpg,audio/x-mpg,audio/x-mpegaudio,audio/mp3,audio/vorbis,audio/x-ms-wma,audio/vnd.rn-realaudio,application/vnd.rn-realaudio,audio/mp4,audio/x-musepack,audio/x-wavpack,audio/x-m4a,audio/x-real-audio,audio/x-vorbis+ogg,audio/amr,audio/x-amr
Actions=AudioConverter;
X-KDE-AuthorizeAction=shell_access
[Desktop Action AudioConverter]
Name=Converti Audio con Soundkonverter
Exec=soundkonverter %F
Icon=soundkonverter
k3b audio cd
Code: Select all
kdesudo kate /usr/share/kservices5/ServiceMenus/k3b-cd-audio.desktop
Code: Select all
[Desktop Entry]
Type=Service
Actions=K3bCdAudio;
ServiceTypes=KonqPopupMenu/Plugin
MimeType=audio/*;
[Desktop Action K3bCdAudio]
Exec=k3b --audiocd
Name=Crea Cd Audio Con K3b
Icon=k3b
k3b data cd/dvd
Code: Select all
kdesudo kate /usr/share/kservices5/ServiceMenus/k3b-dati.desktop
Code: Select all
[Desktop Entry]
Actions=K3bDati;
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=all/all;
ExcludeServiceTypes=application/x-cd-image
[Desktop Action K3bDati]
Exec=k3b --data
Name=Crea CD/DVD Dati Con K3b
Icon=k3b
Code: Select all
kdesudo kate /usr/share/kservices5/ServiceMenus/k3b-iso.desktop
Code: Select all
[Desktop Entry]
Type=Service
Actions=K3bIso;
ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/x-cd-image;inode/ISO-image;
[Desktop Action K3bIso]
Exec=k3b --image %F
Name=Scrivi Immagine Iso Con K3b
Icon=k3b
convert to pdf (converte to pdf from .doc, .docx, .odt, .jpeg, .jpg, .png, .tif, .tiff, .gif, .text)
Code: Select all
kdesudo kate /usr/share/kservices5/ServiceMenus/convert-to-pdf.desktop
Code: Select all
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/vnd.oasis.opendocument.text;application/msword;application/vnd.openxmlformats-officedocument.wordprocessingml.document;image/pjpeg;image/jpeg;image/png;image/x-tiff;image/tiff;image/gif;text/plain;
Actions=Converti in pdf;
[Desktop Action Converti in pdf]
Exec=soffice --headless --invisible --convert-to pdf
Name=Converti in PDF
Icon=/usr/share/icons/oxygen/base/22x22/mimetypes/application-pdf.png