LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2008, 03:48 PM   #1
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Rep: Reputation: 30
mime-types/default actions for new file extensions?


I give up. Nothing in the context-menu and nothing in 10 minutes of google. Am I missing something? Is there some reason this is so elusive even for a seasoned IT professional?

I created a foo.rdp file and though it has no internal mime-type declaration Gnome just insists that it's a text file. I do I convince it that it isn't?

In other words, how the $*@! do I change the mime-types (or something else) so that, for example, .rdp files open with "tsclient". Naturally, Open With is not the issue here.
 
Old 07-09-2008, 04:31 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Indeed, when the file has not a MIME-type association, it is resolved to text/plain if it contains some text or if it is empty, it resolves to application/octet-stream if it contains binary data. Anyway, go straight to the problem and have a look at the GNOME documentation here and see also the next section to associate a default application. Hope this help.

Regarding the "Open With..." issue, I sincerely don't remember how it works in GNOME, but in KDE when you select an application, you can also check a box saying "remember application association for this type of file" and the system automatically does the dirty work for you. But - I repeat - I'm not sure if GNOME has such an option.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.mime.types dive Slackware 3 01-18-2008 11:27 AM
Adjusting default application for file extensions logosys Linux - General 0 10-02-2005 06:01 PM
mime types Nightfrost Linux - General 2 10-01-2004 06:11 AM
file extensions ? types ? executable files ?? abbasakhtar Linux - Newbie 13 10-06-2003 06:12 PM
MIME Types? JoeLinux Linux - Software 6 09-14-2002 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration