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



On Thu, May 04, 2006 at 09:28:25PM -0600, Brent Smith wrote:
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.

Ah, yes, that explains it. Thanks!

I also noticed that the up-n-comming Debian package of 0.10 doesn't have
that MIME type listed and gajim is indeed gone from the Open With...
list for python scripts.

I really should read the document I guess :-)

/M

-- 
Magnus Therning                    (OpenPGP: 0xAB4DFBA4)
magnus therning org
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

DRM discourages piracy like Thalidomide promotes healthy childbirth.
     -- Mark Hewitt, on the ORG discuss list

Attachment: pgpT0_UwoTYi9.pgp
Description: PGP signature



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