Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have KDE 4.5.5 installed.
I connect to the mail server at work via Microsoft Exchange/Office Outlook Web Access. The web browser used is Firefox 13.
When I click on an attachment to an e-mail message, a window pops up asking if I want to save the attachment or if I want to search for an application to open it.
How do I set things up such that when I click on an attachment with a specific file type, the application of choice is launched and the attachment is opened?
For instance, if the attachment has a .jpg extension, how do I always open the attachment by launching GIMP? Or an .xls attachment with LibreOffice Calc? I tried looking for these applications when the window pops up, but I cannot find them!
Linux does nothing with file extensions, it determines file types by looking at the contents of the file. With linux there really isn't a double click association with files like there is in Windows. You would download the file, open LibreOffice then open your .xls.
Linux does nothing with file extensions, it determines file types by looking at the contents of the file. With linux there really isn't a double click association with files like there is in Windows. You would download the file, open LibreOffice then open your .xls.
This is kinda unrelated. The OP asks for a way inside Firefox to associate file types with some kind of program.
There are 2 ways to do it: you can specify the path to the executable you want to open the file with (i.e. /usr/bin/gimp for gimp) or you can delegate the work to the desktop environment using, for every kind of file, the program /usr/bin/xdg-open (which just calls upon the default program associated to the file type inside the environment). Any way you do it, after the executable choice you have to tick "Do this authomatically for files like this from now on" in order to automate file opening when in Firefox.
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444
Rep:
You have to thick a check on the 'Do this automatically for files like this from now on' on the mozilla download dialog box see picture attached on this post
Just in case some other inexperienced user is wanting to do the same thing, here are the steps that I followed to associate a file extension with a specific application. These instructions are good for e-mails with attachments. (In my case, I want to associate a .jpg attachment with GIMP.) I am using Slackware 13.37 with KDE 4.5.5 and Firefox 13.
1) When clicking on the .jpg attachment, a window pops up.
2) I selected the option Open With and clicked on the Browse button.
3) On the next pop-up window, I selected File System in the left column.
4) In the right column I selected usr and then bin.
5) In the right column I selected gimp-2.6 and then clicked the Open button.
6) I put a check mark in the Do this automatically for files like this from now on statement and clicked the Ok button.
With Slackware 13.37, the next time that I click on a .jpg file (as an attachment to an e-mail), the initial pop-up window will still appear but all I have to do is click on the Ok button and GIMP will launch.
I was taking a look at openSUSE 12.1 with KDE 4.7.2 and the process of associating files with a specific application appears to be different --and easier! But I have not investigated it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.