LinuxQuestions.org
Help answer threads with 0 replies.
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-26-2012, 09:39 PM   #1
tb75252
Member
 
Registered: Oct 2010
Posts: 167

Rep: Reputation: Disabled
Association of File Extensions With KDE 4.5.5


I am very inexperienced with Linux.

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!

I might need a fairly detailed explanation...

Thanks.
 
Old 06-27-2012, 03:37 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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.
 
Old 06-27-2012, 04:13 PM   #3
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 651

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by Kustom42 View Post
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.
 
Old 06-27-2012, 05:33 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
I don't use firefox, wasn't aware of that feature. Thanks for pointing it out 414N, on an OS level though I don't know of any other solution.
 
Old 06-27-2012, 09:45 PM   #5
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
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
Attached Thumbnails
Click image for larger version

Name:	blackfriday.jpeg
Views:	18
Size:	62.0 KB
ID:	9986  
 
Old 06-27-2012, 10:02 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,647

Rep: Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655Reputation: 2655
for some standard file like a PDF
okular is used and there "should " be a check box like in the office example above

but
if it is say something like a torrent magnet link and not just a *.jpg
then you need to add the code in
Code:
about:config
--- warning untested - i do not have any MS xlsx files right now
something like this
Code:
network.protocol-handler.app.xlsx /opt/libreoffice3.5/program/soffice
network.protocol-handler.expose.xlsx false
network.protocol-handler.external.xlsx false
i like to leave boolean options set to false so a pop up window dose pop up

but just Google "about:config" for something like 3,460,000 hits

the top 15 should do you .

Last edited by John VV; 06-27-2012 at 10:11 PM.
 
Old 06-28-2012, 01:05 AM   #7
tb75252
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: Disabled
Thanks for your suggestions.

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.
 
  


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
KDE File Association fsck up Ephracis Linux - Software 3 08-11-2006 08:20 PM
KDE Konquerer File association bobinglis Linux - Software 2 01-17-2005 03:17 AM
KDE desktop file association problem neranjana Linux - General 2 10-23-2004 11:01 AM
KDE File Association Issues Eultza Linux - Newbie 7 12-16-2003 04:51 PM
KDE Realplayer permanent file association? jcabral3 Linux - Newbie 1 05-29-2003 08:24 AM

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

All times are GMT -5. The time now is 11:34 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
Open Source Consulting | Domain Registration