Bug#293482: zopeedit: cannot use it with epihany or firefox
Igor Stroh
stroh at scan-plus.de
Thu Nov 2 13:28:17 CET 2006
Just for the record:
Epiphany uses the freedesktop mime database to determine the
handler for a mime type, so in order to be able to use zopeedit
for "External Editor" links you need to do the following:
1) Create .local/share/mime/packages/zopeedit-mimetypes.xml
with following content:
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/x-zope-edit">
<comment>External Zope Editor Link</comment>
</mime-type>
</mime-info>
and run `update-mime-database ~/.local/share/mime`.
This will add 'application/x-zope-edit' to the list
of mime-types recognized by your application which
use the freedesktop mime db.
2) Create .local/share/applications/zopeedit.desktop :
[Desktop Entry]
Encoding=UTF-8
Name=Zope Editor
GenericName=ZopeEdit
Comment=Edit Zope Objects in an external editor
Exec=/usr/bin/zopeedit
Terminal=false
MultipleArgs=false
Type=Application
Categories=Application;Network
MimeType=application/x-zope-edit
and add "application/x-zope-edit=zopeedit.desktop" to
your "~/.local/share/applications/defaults.list". This
will mark zopeedit as the default app for application/x-zope-edit"
NOTE: this will also put a "Zope Editor" entry in your
"Applications/Internet" gnome menu, I have no idea though how to
get rid of it, since it doesn't make sence here.
3) Add the line "<mime-type type="application/x-zope-edit"/>" to the
<safe> category in /usr/share/epiphany-browser/mime-types-permissions.xml
If you omit this step, epiphany will assume, that the mime-type is not safe
to be opened directly and will offer a download dialog instead.
NOTE: Unfortunatelly, this is a system-wide setting, I'm pretty sure
there's a way to do it for a single user too...
4) Restart epiphany
Cheers,
Igor
More information about the pkg-zope-developers
mailing list