Bug 9310 - rexx mime type
Summary: rexx mime type
Status: RESOLVED MOVED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium enhancement
Assignee: Shared Mime Info group
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-12 09:14 UTC by Colin Brace
Modified: 2018-10-13 10:38 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
sample Rexx file (82 bytes, text/plain)
2006-12-13 13:57 UTC, Colin Brace
Details

Description Colin Brace 2006-12-12 09:14:09 UTC
xdg-utils currently appears to identify a Rexx file on the basis of the string
"/*" (or maybe "/* [...] */") at the beginning of the first line. This is
correct for Rexx files which are used under OS/2, which is how the OS/2 shell
recognizes them as such.

However, when writing a Rexx program under Linux, you customarily put a shebang
in the first line pointing to the Regina interpreter:

#!/usr/bin/regina

so as to enable the files to be executable. It would be very helpful if this
pattern could be added to the xdg-mime database. This would enable, for example,
gedit to properly recognize Rexx files under Linux and automatically switch on
syntax highlighting.
Comment 1 Kevin Krammer 2006-12-12 10:59:12 UTC
Could you please add which desktop platform you were running this test on 
(GNOME, KDE, XFCE, other) and maybe attach such a file for testing?

The platform is important, because there are different MIME databases involved 
depending on desktop environment, i.e. KDE3 uses a different one, older GNOME 
versions might not use the freedesktop.org specified either.

Comment 2 Colin Brace 2006-12-13 13:57:22 UTC
Created attachment 8095 [details]
sample Rexx file
Comment 3 Colin Brace 2006-12-13 13:59:27 UTC
I am encountering this with Gnome 2.16 under Fedora and Ubuntu.

Rexx was open-sourced awhile back by IBM, and it has come to my attention that
the most up-to-date version, ooRexx, is probably the most common flavor. It uses
this shebang:

#!/usr/bin/rexx

In addition, it was pointed out to me in this newsgroup thread:

http://groups.google.com/group/comp.lang.rexx/browse_thread/thread/e87e18958f497db4/eabedf0f3e4f866c#eabedf0f3e4f866c

that this first line

/*bin/true;exec rexx "$0" "$@";exit # REXX */

which was proposed in 1999, is platform-independent. I have just tested it and
works; it is obviously compatible with the entry for Rexx in the current xdg
mime database, so I for one will be using it for the time being.

Comment 4 Rex Dieter 2010-07-09 08:18:48 UTC
seems more appropriate for shared-mime-info
Comment 5 Bastien Nocera 2011-05-25 05:45:23 UTC
Please follow the instructions at:
http://cgit.freedesktop.org/xdg/shared-mime-info/tree/HACKING#n31
for mime-type additions.
Comment 6 GitLab Migration User 2018-10-13 10:38:23 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/40.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.