Hi, this is my first kde list post ;-)
I have a review request [1] up for tnef, a "transport neutral encapsulation format" (ie outlook rich text email attachment decoder.
Since this is really just a command line program, I spent a bit of time creating a shell script that can be called from gnome/nautilus file manager, and which creates a directory of similar name to the file to decode, and then extracts the contents of the archive into that folder.
Jason notes that this doesn't work for kde.
Unable to find any specific documents regarding this, I tried installing kdebase, and trying it myself. What I found was that the mime-type is known about, and dolphin shows the match terms that I have written. However, I am not automatically offered to extract the archive.
I was able to open with, choose the specific program/terminal/don't close, and then it works OK.
1. Would such integration of a command line program with the dolphin filemanager be welcome ?
2. Is there already kde/qt apps for extracting tnef archives guically (new word) ?
3. If not, where would be some info, on creating the open with association within the rpm package spec, or hints on what to actually do ?
Regards,
David Timms.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
David Timms wrote:
Hi, this is my first kde list post ;-)
I have a review request [1] up for tnef, a "transport neutral encapsulation format" (ie outlook rich text email attachment
decoder.
Since this is really just a command line program, I spent a
bit of time
creating a shell script that can be called from gnome/nautilus
file
manager, and which creates a directory of similar name to the
file to
decode, and then extracts the contents of the archive into
that folder.
Jason notes that this doesn't work for kde.
Unable to find any specific documents regarding this, I tried
installing
kdebase, and trying it myself. What I found was that the mime-
type is
known about, and dolphin shows the match terms that I have
written.
However, I am not automatically offered to extract the
archive.
I was able to open with, choose the specific
program/terminal/don't
close, and then it works OK.
- Would such integration of a command line program with the
dolphin
filemanager be welcome ?
- Is there already kde/qt apps for extracting tnef archives
guically
(new word) ?
- If not, where would be some info, on creating the open with
association within the rpm package spec, or hints on what to
actually do ?
Regards,
David Timms.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=522920 _______________________________________________ fedora-kde mailing list fedora-kde@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/fedora-kde New to KDE4? - get help from http://userbase.kde.org
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.
- --Ben
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
On 09/26/2009 05:13 PM, Kevin Kofler wrote:
David Timms wrote:
- Is there already kde/qt apps for extracting tnef archives guically
(new word) ?
Can't KMail open or import them?
Hi, I don't know how to install or access that program, but there is a sample message (including the tnef attachment) in http://bugs.kde.org/show_bug.cgi?id=79771
Any chance you could try that, and let me know ?
Also, I attach one (from the src) now for a giggle...
Any ideas/answers for the other query, regarding providing a desktop file so that dolphin creates an extract TNEF menu item when such a file is clicked ?
DaveT.
David Timms wrote:
On 09/26/2009 05:13 PM, Kevin Kofler wrote:
Can't KMail open or import them?
Hi, I don't know how to install or access that program,
It's part of kdepim.
But I checked and it can't do anything useful with TNEF, it just displays a binary winmail.dat attachment and has no idea what to do with it.
Any ideas/answers for the other query, regarding providing a desktop file so that dolphin creates an extract TNEF menu item when such a file is clicked ?
A service menu is what you need there. Look at existing entries in /usr/share/kde4/services/ServiceMenus to see how they should look like. If you don't have any, install some KDE apps first. ;-) amarok, kdebase, kdebase-workspace, kdegraphics, kdemultimedia, kdenetwork, kdeplasma-addons, kdesdk, kdesvn, kdeutils, konq-plugins, kplayer and probably others install KDE 4 service menu files.
Kevin Kofler
On 09/26/2009 10:15 PM, Kevin Kofler wrote:
But I checked and it can't do anything useful with TNEF, it just displays a binary winmail.dat attachment and has no idea what to do with it.
So I think it would be useful (until something better comes along), to make an extract with tnef option.
Any ideas/answers for the other query, regarding providing a desktop file so that dolphin creates an extract TNEF menu item when such a file is clicked ?
A service menu is what you need there. Look at existing entries in /usr/share/kde4/services/ServiceMenus to see how they should look like. If you don't have any, install some KDE apps first. ;-) amarok, kdebase, kdebase-workspace, kdegraphics, kdemultimedia, kdenetwork, kdeplasma-addons,
A few messages back in the thread, I mentioned that is what kde calls it. But all efforts thus far have failed to trigger the creation of the correct menu item in dolphin.
Is there a better place to ask about: - the correct place to put the .desktop file (for F11+kde4+dolphin)? - what is needed for the app to notice the new .desktop fileand do what it indicates: (F5, log out, reboot) ?
Cheers, DaveT.
David Timms wrote:
- the correct place to put the .desktop file (for F11+kde4+dolphin)?
As I already wrote: /usr/share/kde4/services/ServiceMenus
- what is needed for the app to notice the new .desktop fileand do what
it indicates: (F5, log out, reboot) ?
It should be picked up automatically, but if not, try running kbuildsycoca4, then starting a new instance of Dolphin. (Sometimes, the automatic system configuration cache rebuild doesn't work for whatever reason.)
Kevin Kofler
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Kevin Kofler wrote:
It should be picked up automatically, but if not, try running
kbuildsycoca4,
then starting a new instance of Dolphin. (Sometimes, the
automatic system
configuration cache rebuild doesn't work for whatever reason.)
As a warning, Dolphin is a KUniqueApplication. You need to close all Dolphin windows or the new window will attach to the existing process and launch from there.
- --Ben