Mailing files with KMail from Dolphin

This guide describes how you create a service menu to allow you to right click on one or more files in Dolphin and create a new mail with the files as attachments.

The first thing you need to do is use the command line tool kde4-config to determine where service menu definitions should be located. Type the following on a command line:

kde4-config --path services

On my SuSE 11.2 system I get the following output:

/home/gugrim/.kde4/share/kde4/services/:/usr/share/kde4/services/

The first path shows where your personal ServiceMenus directory should be located. Check if there already is such a directory there, if not create it.

Create a new file called sendto.desktop, in the ServiceMenus directory, with the following content:

[Desktop Entry]
Type=Service
Actions=SendToMailRcp
Encoding=UTF-8
MimeType=application/octet-stream
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
X-KDE-Priority=TopLevel
X-KDE-Submenu=Send To

[Desktop Action SendToMailRcp]
Name=Mail Recipient...
Exec=kmail --attach %F
Icon=kmail

 

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <small> <sup> <sub> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <h4> <img> <br> <br /> <p> <div> <span> <b> <i>
  • Lines and paragraphs break automatically.

More information about formatting options