>>> On 8/19/2010 at 05:24 PM, in message <[email protected]>, 
>>> "Rony G.
Flatscher" <[email protected]> wrote: 
> Thank you all very much for your kind help! 
>  
> Just stumbled over "xdg-open" which is available on the newer Linux 
> systems (part of the xdg-utils). 
>  
> ---rony 
>  

By the way, you can register new mime types for XDG, and it will be picked up 
by both Gnome and KDE. I think it would be quite useful for ooRexx under Linux. 
The spec is available here:

http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html


To do this, you just need to create a file at the proper place (in this case, 
/usr/share/mime/packages/oorexx.xml) with the following contents:

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info";>
 <mime-type type="text/x-rexx">
 <comment>OO Rexx</comment>
 <glob pattern="*.cls;*.rex;*.rexx"/>
 </mime-type>
 <mime-type type="text/x-rexx">
 <comment>OO Rexx</comment>
 <glob pattern="*.cls;*.rex;*.rexx"/>
 </mime-type>
</mime-info>


Then run the following command (as root):

update-mime-database /usr/share/mime

REXX scripts should now be visible with the proper mime-type, and can be 
associated with programs.

Anyway, sorry for hijacking this thread, but what IS the official mime-type for 
REXX files? I've assumed "text/x-rexx" following the example of other widely 
used languages present in the current mime database shipped with most distros, 
but this mime-type is not currently registered with IANA. 

Shouldn't this mime-type be registered, and the package updated to contain 
these definitions?

The mime-type can be registered at:

http://www.iana.org/cgi-bin/mediatypes.pl





------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to