Author Topic: File Type Association On C860  (Read 6013 times)

sornette

  • Newbie
  • *
  • Posts: 5
    • View Profile
File Type Association On C860
« on: February 09, 2005, 01:29:22 pm »
Hi,
I seem to have lost all file types / programs associations on my C860 with its original Sharp ROM.

It doesn't know anymore how to open a .txt file for instance.

Is there a file somewhere that maps mime/types to given applications ?
Thanks!

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
File Type Association On C860
« Reply #1 on: February 09, 2005, 09:16:45 pm »
Do you have a file named:

/home/QtPalmtop/etc/mime.types

What does it contain?  I have attached my copy.
« Last Edit: February 09, 2005, 09:19:05 pm by qx773 »

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
File Type Association On C860
« Reply #2 on: February 11, 2005, 12:39:39 pm »
Do you know what file actually associates the registered mime types (the mime.types file) with applications? I can't find any way of picking a specific app for a file extension...
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
File Type Association On C860
« Reply #3 on: February 11, 2005, 09:14:11 pm »
/home/QtPalmtop/etc/mime.types is the file that you need to modify if you want to associate a different application with a particular file extension in the file browser.  You must then reboot.  I tested this by commenting out the:

application/x-troff-me     me

line in the mime.types file and adding the me extension to:

text/plain     asc me txt c cc h hh cpp hpp

Sometimes I see files named, "read.me", which should be opened as a plain text file.  I found that I had to reboot to make this change active.  Perhaps there is some way to do this without rebooting, but I do not know what that is.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
File Type Association On C860
« Reply #4 on: February 11, 2005, 09:33:55 pm »
The .desktop file has the association between mime type and apps.

If you want an app to open a specific fiel extension you will need to create/edit the MimeType= (and probably the MimeTypeIcon=) line in the app's .desktop file

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
File Type Association On C860
« Reply #5 on: February 17, 2005, 06:08:26 pm »
Quote
The .desktop file has the association between mime type and apps.

If you want an app to open a specific fiel extension you will need to create/edit the MimeType= (and probably the MimeTypeIcon=) line in the app's .desktop file

Stu
[div align=\"right\"][a href=\"index.php?act=findpost&pid=66686\"][{POST_SNAPBACK}][/a][/div]

Perfect! The version of Opera in the Cacko feed associates itself with PDFs, which seems to block qpdf2. I can't just click on a PDF file - I have to open qpdf2, then find the file.

Hopefully removing the PDF association in Opera will fix it...
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
File Type Association On C860
« Reply #6 on: February 18, 2005, 09:19:20 am »
You may need to add the PDF association to the qdf2 .desktop file (if its not already there)
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
File Type Association On C860
« Reply #7 on: February 18, 2005, 03:28:38 pm »
Quote
You may need to add the PDF association to the qdf2 .desktop file (if its not already there)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67700\"][{POST_SNAPBACK}][/a][/div]

The problem seems to stem from the fact that it is listed in both the Opera desktop file, and the qpdf2 desktop file. In both cases that I tried (Cacko 1.22, and 1.22 lite) Opera was installed first. What I wonder about is why Opera has it associated at all - all it seems to be able to do with PDFs is download them. Opera also has things like Shockware associated with it, and we can't view those at ALL on the Z. (Sadly.)

Removing the PDF entry from the Opera desktop file did fix the issue.
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive