Re: [gnome-love] GNOME and default application for python scripts



Magnus Therning wrote:
On Thu, May 04, 2006 at 11:37:07PM +0200, Ali Sabil wrote:
Magnus Therning wrote:
On Thu, May 04, 2006 at 05:08:53PM +0200, Frederic Ruaudel wrote:
I think this is because it is set at the system level so it can't be
changed throught nautilus.

The solution is probably to edit as root the desktop file of gajim :

/usr/share/applications/gajim.desktop (or something equivalent)

and remove the mimetype of the python files in the "MimeType" entry.
Then you probably have to restart something (X session, computer ??)
The only MIME type related line in its .desktop file is

MimeType=application/x-executable

So I can't really see how gajim would end up being registered for python
files...

I'm thinking this might be something Debian specific. I'll send off a
mail to the Debian mailing list for GTK/GNOME to see what they say.

/M

I have this exact same behavior with a gentoo box, running gnome-2.12.3

Oh? Interesting.

I sent an email to the Debian GTK/GNOME list to see if anyone there
knows what's going on.

This is the only GNOME list I'm on, though I've been looking for an
excuse to get on gnome-list :-)

/M

Please see the following:

http://www.gnome.org/learn/admin-guide/latest/mimetypes-0.html

This explains the MIME type system and should help you get to the root
of the problem. You can use the program gnomevfs-info to figure out what mime type python scripts are resolving to.

I'm getting MIME text/x-python here, and this is defined in the /usr/share/mime/packages/freedesktop.org.xml file.

  <mime-type type="text/x-python">
    <sub-class-of type='application/x-executable'/>
    <sub-class-of type="text/plain"/>

There might not be a desktop file associated with the MIME-type text/x-python, so nautilus is falling back to the subtype application/x-executable and it finds that gajim is registered as the handler for this MIME type. Just a guess.

Hope this helps,


--
Brent Smith <gnome nextreality net>
IRC: smitten



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