Associating non MIME file types to Programs

Associating non MIME file types to Programs

Post by Ton » Thu, 22 Apr 1999 04:00:00



NewsGroup

I am having a problem associating the Staroffice file types
with with the Sar Office Application upon clicking the file icon.  The
files I create have a Question mark (Unknown) against them, which
means I cannot open the corresponding application from clicking on the
file. ( The file types are AStardoc.sdw and  ASpreadS.sdc )

According to the KDE instructions I need to direct the MIME type to
the Application, using the files in $KDEPATH/Share/Applink.  The
properties of the  configuration file  StarOffce.kdelnk expects a MIME
type ?

The problem is that the Star Office Applications produce *.sdw and
*.sdc as the the file types, not MIME Types.

It is not clear to me from the KDE documentation  from  the KDE Help  
how I make the correspondence.

Many Thanks for any Help.

Jules

 
 
 

Associating non MIME file types to Programs

Post by Scott Abbot » Thu, 22 Apr 1999 04:00:00


Tony/Jules:

I'm not sure if this is the "right" way to do it, but I created my own
mime types for GIMP (*.xcf) files as images/xcf and for WordPerfect
files as application/x-wordperfect (which is probably what you want to
do).  Here's how I did it:

In KFM, in your mimelnk folder [Edit | Mime Types], open "application"
folder and create a new mime type [File | New | Mime Type].  Name it
something descriptive like stardoc.kdelnk or starspread.kdelnk.  You may
get some errors popping up here.  I just dismiss them and open the
"Properties" for each mime type, set the "Pattern" under "Binding" to
whatever the file extension is and fill in the Mime Type with
application/stardoc, etc.

Now, in your applnk folder [Edit | Applications], find the kdelnk to
your Star Office applications or create new ones [File | New |
Application], open the "Properties" and on the "Application" tab at the
bottom right scroll until you find your newly-created mime type and
click the arrow to add it to the left box.

This should enable you to open a file by clicking on it in KFM.  If you
need a little more info or these instructions are just too confusing,
don't hesitate to email me and I'll try to make it easier to understand.

Scott Abbott


> NewsGroup

> I am having a problem associating the Staroffice file types
> with with the Sar Office Application upon clicking the file icon.  The
> files I create have a Question mark (Unknown) against them, which
> means I cannot open the corresponding application from clicking on the
> file. ( The file types are AStardoc.sdw and  ASpreadS.sdc )

> According to the KDE instructions I need to direct the MIME type to
> the Application, using the files in $KDEPATH/Share/Applink.  The
> properties of the  configuration file  StarOffce.kdelnk expects a MIME
> type ?

> The problem is that the Star Office Applications produce *.sdw and
> *.sdc as the the file types, not MIME Types.

> It is not clear to me from the KDE documentation  from  the KDE Help
> how I make the correspondence.

> Many Thanks for any Help.

> Jules


 
 
 

1. How to associate one MIME type with multiple file types?

I want to set up kfm associations (icons & applications) for Applix files.

All the various Applix (wp, spreadsheet, graphics, etc) files are
handled by one 'application', which looks at the file type and decides
what part of the suite should open the document:

 applix wp-doc.aw       # opens in Applix Words
 applix ss-doc.as       # opens in Applix Spreadsheet
 ...

So, I want one MIME type 'application/x-applix', handled by one
application, but multiple icons according to the file suffix.

I use kfm (as non-root user) to set this up:
  Edit/New/Application: Execute 'applix', MIME type 'application/x-applix'
  Edit/New/MIME Type: Pattern: '*.aw', MIME type 'application/x-applix'
  Edit/New/MIME Type: Pattern: '*.as', MIME type 'application/x-applix'
but only one is recognized.  E.g., I can get all Applix word documents
(*.aw) associated, but the other Applix file types are still 'Text
editor' files.  If I play around, moving the MIME type .kdelnk's, or
so, I can get a different type associated, but still only one.

Can a MIME type only have one icon/pattern to identify it?  If so,
why?  This seems like a not-unusual situation.

<Joe
--
 Joe Smith

 811 Stellar-Chance/Cardiology                (215) 573-3067
 Philadelphia, PA 19104                       (215) 573-2094 (fax)

2. Has anyone put Solaris x86 on HP servers?

3. Associating Mime types with programs

4. Archive QIC02 card SC402

5. could not open mime types log file /etc/httpd/etc/mime.types.

6. FreeBSD as advanced router?

7. Associating programs with file types

8. Konqueror browser fonts

9. Associating Mime types in KDE

10. Can't associate mpeg with program in MIME

11. Help: Associating a file type with application in Linux?

12. Associating file types

13. Associate file types with executables?