KDE Plasma 5 service menu

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
User avatar
minitux
Level 5
Level 5
Posts: 584
Joined: Tue Sep 12, 2017 10:05 am

KDE Plasma 5 service menu

Postby minitux » 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

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
Sorry for my English, is not my language

When you ask for support, put the output of inxi -Fxz

Return to “Tutorials”