.desktop integration for command line app

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/25/2009 12:54 PM, Ben Boeckel wrote:
> There are service menus you can add to handle specific filetypes
> (and execute commands). A KIO slave could do something similar
> as well, but it's a little more involved. If you really want it
> /in/ KDE, code for Ark to open such files would be best.
Yey,
The term "service menus" drew me toward an answer , however, after 
realizing that the info found was for kde3/konquerer [1], then finding 
kde4/konquerer, kde3/dolphin, kde3d3lphin, kde4dolphin differing paths, 
and differing .desktop file contents required, I have exhausted my 
patience. Eg: [2]

Let's say I create a file called tnefextract.desktop containing:
=====
[Desktop Entry]
Type=service
X-KDE-ServiceTypes=application/vnd.ms-tnef
Actions=tnefExtractToSubfolder;

[Desktop Action tnefExtractToSubfolder]
Name=extract TNEF archive
Icon=application-x-archive
Exec=tnef.sh %f
=====
and place that in:
/usr/share/kde4/services/ServiceMenus/
along with two other .desktop files, and they seem to have the same 
format as the above.

What else is required (on Fedora) to actually make the association work ?

DaveT.
[1] http://developer.kde.org/documentation/tutorials/dot/servicemenus.html
[2] http://kubuntuforums.net/forums/index.php?topic=3088743.0



[Index of Archives]     [KDE Users]     [Fedora General Discussion]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Triage]     [Coolkey]     [Yum Users]     [Yosemite Forum]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux