Re: mime-type globbing
- From: Adam Schreiber <sadam CLEMSON EDU>
- To: kanyon12 netscape net
- Cc: desktop-devel-list gnome org
- Subject: Re: mime-type globbing
- Date: Sun, 15 Jan 2006 17:34:19 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
kanyon12 netscape net wrote:
> I'd like to add a program which can be launched from the right-click
> menu, similar to "Create Archive" or "Encrypt...".
> How do you add a mime type for *ANY* kind of file? All the examples I've
> seen have a line like this:
> <mime-type type="application/bluefish-project">
> <glob pattern="*.bfproject"/>
>
> I want to change it to <glob pattern="*"/>, but this doesn't seem to work.
Take a look at seahorse_nautilus_get_file_items() in
http://cvs.gnome.org/viewcvs/seahorse/plugins/nautilus-ext/seahorse-nautilus.c?view=markup
There's some code for doing various things based on mime types there.
Adam Schreiber
- --
Why isn't all of your email protected?
http://gnupg.org
http://enigmail.mozdev.org
http://seahorse.sourceforge.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFDys3rjU1oaHEI4wgRAgDtAJ4tXSAINEZyl4PHEYjP9YafgH3P3gCfUFAu
r+SevOD0jMShgp/dwKsC26Y=
=+EGE
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]