Menu in Dolphin

O. Sinclair o.sinclair at gmail.com
Tue Nov 24 14:43:06 UTC 2009


Jonas Norlander wrote:
> 2009/11/12 Georgi Kourtev <gkourtev at gmail.com>:
>> Dearest,
>>
>> Any ideas how can I make a change in the menu that appears after right-click
>> on a file in Dolphin to have the option 'send file via email'?  Currently I only
>> have 'Preview File', 'Create K3b project', and some four or five related to
>> Kleopatra (signing).
>>
>> Thanks.
>> gk
> 
> Thats a good idea so i decided to try to make a Service menu in
> dolphin for that and think I got it right (at least it works for me).
> Paste this into a file "emailthis.desktop" in your
> ~/.kde/share/kde4/services directory. the xdg-email command will open
> your default email program with the selected file as an attachment. If
> you have another program or want to pass other command line to that
> program just replace xdg-email with your program.
> 
> [Desktop Entry]
> Type=Service
> ServiceTypes=KonqPopupMenu/Plugin
> MimeType=application/octet-stream
> Actions=EmailThisFile
> 
> [Desktop Action EmailThisFile]
> Name=Email this file
> Icon=kmail
> Exec=xdg-email --attach "%f"
> 
> 
Works great on one file, any idea how to get it to work if  you select 
more than one file?




More information about the kubuntu-users mailing list