Zim

How does zim know what programs to use for opening links/files. Does it support only limited number of desktop environments?

Asked by stefan.kamien

It seems that Zim is using desktop environment/xdg-open settings to open linked/attached files with certain programs. Am I right?

But in context menu (right click) of links to files 'Open with' is a bit strange. For most file types it shows the same programs as file manager but sometimes it shows nothing while file managers context menu shows other programs.(Ubuntu9.10, Gnome, Nautilus file manager) So I dont know how it really works.
How does Zim know what programs to show in 'Open With' context menu? Does it support only a limited number of file managers / desktop environments?

Question information

Language:
English Edit question
Status:
Solved
For:
Zim Edit question
Assignee:
No assignee Edit question
Solved by:
stefan.kamien
Solved:
Last query:
Last reply:
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#1

The default is determined by what you set in the preferences. The default preference on unix is indeed "xdg-open" which will do the right thing under Gnome, KDE or XFCE.

The "open with..." is populated based on the mimetype of the file. We use the XDG mimetpye database to determine the mimetype and the XDG desktop entry file registry to determine what application can open this mimetype.

In theory this should give the accept same result as nautilus, because both zim and nautilus follow the same specification. If you see differences apparently there are some implementation details that differ. The implementation in zim is based on the Rox file manager.

If you see significant differences. Please try to find out where the .desktop files for the missing applications are located and put the information in a bug report.

Revision history for this message
stefan.kamien (stefan-kamien) said :
#2

Thank you for answer. I think that it is not a big problem.

Actually it occurs only in case of one strange audio file(.spx filetype extension, audio/x-speex+ogg mimetype).

Revision history for this message
stefan.kamien (stefan-kamien) said :
#3

I made a related feature request:
https://bugs.launchpad.net/zim/+bug/533170