KDE Plasma 5 service menu

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
minitux

KDE Plasma 5 service menu

Post by minitux »

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

Code: Select all

kdesudo kate /usr/share/kservices5/ServiceMenus/kate-root.desktop
copy/paste

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
and save the file
Image

soundkonverter

Code: Select all

kdesudo kate /usr/share/kservices5/ServiceMenus/soundkonverter.desktop
copy/paste

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
and save the file
Image


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
Image

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
k3b iso

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
Image


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
Image
joeaverager

Re: KDE Plasma 5 service menu

Post by joeaverager »

THANK YOU!

I moved to Mint Linux 18 KDE today and I was quickly missing several of the features you detailed out - especially the Root Services Menu.
Post Reply

Return to “Tutorials”