LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 03-13-2007, 08:17 PM   #1
buckdog
Member
 
Registered: Mar 2006
Distribution: Puppy, KnopMyth
Posts: 36

Rep: Reputation: 15
Set defaults applications in Firefox.


I am using KDE on Ubuntu 6, and am trying to open a PDF from an attachment in the fewest steps possible. I am setting the computer up for senior citizens, and using Ubuntu to avoid Windows ME and giving more money to M$. It also looks cool and doesn't get those damn viruses

I guess what I really need to do is make the PDF viewer the default application in either my system or Firefox, but when I go into the Firefox settings, I don't know which directory my applications are in.

I tried making a shortcut to my PDF viewer on the desktop, but it doesn't work when I select it in Firefox.

I know that I can save it, open the PDF Viewer, and do a File-Open, but is there an easier way.

I am trying to figure out how to do this with other file types to.

Is there a control panel setting for default application, or do I just need to choose a default application in Firefox?
 
Old 03-13-2007, 09:38 PM   #2
Valdis Grinbergs
Member
 
Registered: Dec 2005
Distribution: Debian
Posts: 30

Rep: Reputation: 25
To my knowledge, there is no way in Firefox to change the settings for how it handles each file type after it is set. However, Firefox will asked how you want to handle each file type the first time you open it up. I recommend that you make Firefox "forget" how to handle files. Then you can teach Firefox how to handle files again the next time you open up each file type. You can make Firefox forget how to handle file types by renaming the mimeTypes.rdf file while Firefox is closed and letting Firefox create a new one. The mimeTypes.rdf file is located in your Firefox preferences folder, something like ~/.mozilla/firefox/abcdefgh.default/ ("abcdefgh.default" will be different on your machine). You could also try editing the file to remove specific file types (which, of course, is more error prone). Good luck!
 
Old 03-13-2007, 09:41 PM   #3
buckdog
Member
 
Registered: Mar 2006
Distribution: Puppy, KnopMyth
Posts: 36

Original Poster
Rep: Reputation: 15
So then it will default to Ubuntu's default application for whatever file type I am trying to open?
 
Old 03-14-2007, 05:16 AM   #4
666
Member
 
Registered: May 2005
Distribution: Arch
Posts: 36

Rep: Reputation: 16
You can install add-on called "pdf download" where you can set how firefox will handle pdf files.

from: https://addons.mozilla.org/firefox/636/

"Allows to choose if you want to view a PDF file inside the browser (as PDF or HTML), if you want to view it outside Firefox with your default or custom PDF reader, or if you want to download it!"
 
Old 03-14-2007, 02:46 PM   #5
buckdog
Member
 
Registered: Mar 2006
Distribution: Puppy, KnopMyth
Posts: 36

Original Poster
Rep: Reputation: 15
Good idea, but what about Word Documents to AutoOpen in OpenOffice?
 
Old 03-14-2007, 09:46 PM   #6
Valdis Grinbergs
Member
 
Registered: Dec 2005
Distribution: Debian
Posts: 30

Rep: Reputation: 25
buckdog,
The answer to your question is basically yes, it defaults to Ubuntu's default application. However technically, I think the default is defined by your desktop environment, not by Ubuntu. My Gnome desktop suggests I open a pdf using evince - but I prefer Kpdf, so I set Firefox to use Kpdf instead. Your KDE desktop might already select Kpdf for you.<br>
I just tested the following steps on my pc:
1) I closed Firefox
2) I renamed my mimeTypes.rdf file to mimeTypes.rdf.bak so I could restore it if I needed it
3) I opened Firefox and opened a pdf file on a web site
A Firefox dialog box opened up titled "Choose Helper Application" with the following contents:<br>
"You have chosen to open filename.pdf which is a: PDF document
What should Firefox do with this file?<br>
(radio button 1) Open with Document Viewer (default) <br>
(this is a pull down menu that lets you select a different
application for opening the document)<br>
(radio button 2) Save to Disk<br>
(checkbox) Do this automatically for files like this from now on.<br>
(button) Cancel<br>
(button) OK<br>
<br>
4) I changed the default application to Kpdf, checked the checkbox to make this the automatic choice going forward, and clicked on the OK button
<br>
I hope this works for you.
 
Old 03-15-2007, 05:54 AM   #7
buckdog
Member
 
Registered: Mar 2006
Distribution: Puppy, KnopMyth
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Valdis Grinbergs
buckdog,
The answer to your question is basically yes, it defaults to Ubuntu's default application. However technically, I think the default is defined by your desktop environment, not by Ubuntu. My Gnome desktop suggests I open a pdf using evince - but I prefer Kpdf, so I set Firefox to use Kpdf instead. Your KDE desktop might already select Kpdf for you.<br>
I just tested the following steps on my pc:
1) I closed Firefox
2) I renamed my mimeTypes.rdf file to mimeTypes.rdf.bak so I could restore it if I needed it
3) I opened Firefox and opened a pdf file on a web site
A Firefox dialog box opened up titled "Choose Helper Application" with the following contents:<br>
"You have chosen to open filename.pdf which is a: PDF document
What should Firefox do with this file?<br>
(radio button 1) Open with Document Viewer (default) <br>
(this is a pull down menu that lets you select a different
application for opening the document)<br>
(radio button 2) Save to Disk<br>
(checkbox) Do this automatically for files like this from now on.<br>
(button) Cancel<br>
(button) OK<br>
<br>
4) I changed the default application to Kpdf, checked the checkbox to make this the automatic choice going forward, and clicked on the OK button
<br>
I hope this works for you.
This is my train of thought exactly, but I do not know where the actual application is so I can point Firefox to it.

Thanks!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
set defaults (fluxbox) WOP1337 Linux - General 5 08-03-2006 02:33 PM
Downloader Defaults in Fedora Core 4 with Firefox diz12 Linux - General 2 07-17-2005 04:37 PM
Preferred Applications/Program defaults for FC3 dubya Fedora 3 03-19-2005 01:26 PM
iptables defaults set by system-config-securitylevel: why are ports 50 and 51 opened? meonkeys Fedora 1 09-23-2004 11:41 AM
How can i set system defaults for gnome? ac1980 Linux - General 0 12-12-2003 03:01 PM


All times are GMT -5. The time now is 06:26 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration