LinuxQuestions.org
Visit Jeremy's Blog.
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 06-12-2011, 03:25 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Rep: Reputation: 51
Editing the list in about:plugins - Is it possible?


Kernel 2.6.21.5, slackware 12.0
Mozilla Firefox 2.0.0.4
Seamonkey 1.1.2

Hi:
Under any of Firefox or Seamonkey web browsers, if I type the URL about:plugins, a list of the installed (I assume they mean "installed in my machine") plugins appears. How do you do if you want to edit that list. Say, to disable a mime type or just delete it from the list? Any suggestion would be greatly appreciated.

Last edited by stf92; 06-12-2011 at 03:30 AM. Reason: To complete the meaning.
 
Old 06-12-2011, 03:34 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
In Firefox, configuration of plugins is done in the main preferences > applications tab. You can also disable a plugin entirely in the add-ons window.

The "about:" screens themselves are generally there for simple information display purposes only.

I haven't used Seamonkey in a long time, but it's probably similar.
 
Old 06-12-2011, 03:56 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
IDK about about:plugins but I have done plenty of tinkering in about:config

Last edited by catkin; 06-12-2011 at 03:57 AM. Reason: Disable smilies in text
 
Old 06-12-2011, 04:00 AM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Original Poster
Rep: Reputation: 51
Actually, in Preferences>Content>File types>Manage (Firefox 2.0.0.4), I only have what has been downloaded by means of Firefox download manager.
I mean, only those file types. It's not possible, there, to add a new type (whereas in Seamonkey and also in Preferences you can).

In the add-ons window I have themes and extensions listed, but no plugins. Thank you very much for your reply, David the H.
 
Old 06-12-2011, 04:56 AM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
No, it's not possible to manually add mime-types to the list. FF will only show ones it's encountered before. The devs apparently decided it was a non-essential function or too likely to cause problems for end-users or something. Once upon a time there was an extension that added it back, but it's been non-functional for a long time now. I don't know if anyone else has created a replacement.

It's likely possible to use about:config to add new types, but I've never looked into it myself.
 
Old 06-12-2011, 06:10 AM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Original Poster
Rep: Reputation: 51
Thanks you for these "things behind the curtains". Well, as I am certain there must be a solution, I'll keep trying to find it.

Meanwhile, thanks for your posts and regards.
 
Old 06-12-2011, 12:37 PM   #7
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
I did a little snooping, and this page has a general run-down of mime-types in mozilla browsers. At least up to FF3.

http://kb.mozillazine.org/File_types...wnload_actions

Whereas this page goes into detail on how the mime-types are stored and tracked.

http://kb.mozillazine.org/MimeTypes.rdf

I used the info in that page to manually add a mime entry of my own.

First, shut down the browser and open up the mimeTypes.rdf file from your profile in a text editor.

Find this section:

Code:
<RDF:Seq RDF:about="urn:mimetypes:root">
    <RDF:li RDF:resource="urn:mimetype:plain/text"/>
     ...etc....
</RDF:Seq>
Add your desired mime-type to the list:
Code:
<RDF:li RDF:resource="urn:mimetype:application/x-foo"/>
Then create a new section like this somewhere in the file. Be careful not to break up any existing entries, and make sure the name is the same as above:
Code:
<RDF:Description RDF:about="urn:mimetype:application/x-foo"
                   NC:value="application/x-foo"
                   NC:description="Foo type files" >
</RDF:Description>
This appears to be the minimum necessary to make the entry show up in the FF preferences.

Save the file and re-start your browser. After that you should be able to use the gui to configure the actions it will take.

I haven't yet tested it out on a real file of the new type though, so I don't know for sure if the added mime-type is handled correctly yet.

Last edited by David the H.; 06-12-2011 at 12:38 PM.
 
Old 06-12-2011, 01:58 PM   #8
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Original Poster
Rep: Reputation: 51
Thank you very much, David the H. I was meanwhile studying the formal structure of these xml files. I saw that, as in C or Pascal, the text is divided and subdivided in blocks, children blocks and so on until reaching a leaf block (= statement).

Code:
{
PARENT BLOCK
    {
    CHILD BLOCK and so on in depth.
    }
PARENT BLOCK CONTINUES       
}
Or
Code:
BEGIN 


  ......,
  BEGIN
    .........
    BEGIN
      .......
    END
    ......... 
  END
  ........
END
And familiarized as I am with the famous slash in the end pair of square brackets of [quote]text[quote], plus having inserted blank lines between the outer blocks, I readily saw the structure. Only a begining, indeed.

I tell you this, because at somebody's suggestion, I inserted a block (of lines) that he posted me, but I did not know at what position in the file to insert it. However, the experiment ended in failure. The reason could have been that I did not put anything in between the RDF:Seg lines.

Also, I have received many good will posts, in threads more or less related to this one, with links refering to standards and specifications.

But, at last, I shall be able to experiment with a sound basis. Please, hold on until I let you know about results. Regards.

Last edited by stf92; 06-12-2011 at 02:08 PM.
 
Old 06-12-2011, 07:03 PM   #9
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Original Poster
Rep: Reputation: 51
Hi, and forgive me. But a terrible doubt assaults me.
Code:
root@darkstar:~# locate -i mimetypes.rdf
/usr/lib/seamonkey-1.1.2/defaults/profile/US/mimeTypes.rdf
/usr/lib/seamonkey-1.1.2/defaults/profile/mimeTypes.rdf
/usr/lib/thunderbird-2.0.0.4/defaults/profile/US/mimeTypes.rdf
/usr/lib/thunderbird-2.0.0.4/defaults/profile/mimeTypes.rdf
/usr/lib/firefox-2.0.0.4/defaults/profile/mimeTypes.rdf
/home/semoi/.mozilla/firefox/u88mwxdz.default/mimeTypes.rdf
/home/semoi/.mozilla/default/x7855eba.slt/mimeTypes.rdf
/home/semoi/.thunderbird/ttuq8oxq.default/US/mimeTypes.rdf
/home/semoi/.thunderbird/ttuq8oxq.default/mimeTypes.rdf
root@darkstar:~#
You said
Quote:
open up the mimeTypes.rdf file from YOUR profile in a text editor.
I supposed it is then the file in /home/semoi/.mozilla/firefox/u88mwxdz.default/mimeTypes.rdf. But what about the paths containing /profile/ as an element? Regards.

Last edited by stf92; 06-12-2011 at 07:06 PM.
 
Old 06-13-2011, 09:43 AM   #10
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
The ones in your home directory are your personal profiles. You'd have to modify, or copy over, the mimeTypes.rdf for each profile you want the changes to appear in.

The ones in /usr/lib are, as the path says, the default files. You could modify these too, and any new profiles you create will then also likely have the same entries, at least until the next time you update the browser and new default files are installed over them.
 
Old 06-13-2011, 08:44 PM   #11
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Original Poster
Rep: Reputation: 51
Hi, David the H. I was just about to post you when I was brought to examine the matter of "which of the many mimiTypes.rdf files" more closely. As a result, I will continue testing.

Of course, by the time I'll come to some result and will be able to come with new questions, you'll have forgotten the whole thing and, if willing, shall be force to reread the whole thread.

Well, we who ask in LQ always run that risk. Or else should study a bit more. Very kind regards.

Last edited by stf92; 06-13-2011 at 08:47 PM.
 
  


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
LXer: Six new editing tools and four plugins. Shutter just got even better LXer Syndicated Linux News 0 07-25-2009 01:10 AM
editing list hallve_revera Linux - Software 2 01-22-2009 10:43 PM
Editing Sources.list Flab0y352 Debian 2 08-14-2007 08:42 PM
editing /etc/apt/sources.list in the GUI carmat06 Linux - Newbie 5 09-22-2005 11:40 PM
trouble editing source.list gonus Debian 8 08-04-2004 10:48 PM


All times are GMT -5. The time now is 08:15 AM.

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