Downloaded Files Opening Problem

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
garby
Posts: 48
Joined: 18. Jan 2011, 10:36

Downloaded Files Opening Problem

Post by garby »

I installed chromium browser. But when I try to open the downloaded files (pdf or tar.gz) from the downloaded file tabs within the browser, it opens up midori browser at the same location from where the files were downloaded and asks me to download again instead of opening in epdfview or file-roller or any relevant applications. How could this behavior be corrected? Thanks!
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: Downloaded Files Opening Problem

Post by gapan »

Looks like you have to tell chromium to use the appopriate app for each filetype.
Image
Image
garby
Posts: 48
Joined: 18. Jan 2011, 10:36

Re: Downloaded Files Opening Problem

Post by garby »

Yes, that is what I assumed, but there does not seem to be any option like that to associate an application with a file with specific extension! Still trying to figure out!
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Downloaded Files Opening Problem

Post by thenktor »

What mimetype is returned by: xdg-mime query filetype /path/to/pdf?
Then check what default application is set for this mimetype: xdg-mime query default mime/type
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
garby
Posts: 48
Joined: 18. Jan 2011, 10:36

Re: Downloaded Files Opening Problem

Post by garby »

thenktor wrote:What mimetype is returned by: xdg-mime query filetype /path/to/pdf?
application/pdf; charset=binary (for pdf)
application/x-gzip; charset=binary (for gz file)
Then check what default application is set for this mimetype: xdg-mime query default mime/type
Returns nothing!

man xdg-mime shows that

Code: Select all

xdg-mime default application mimetype

designates an application to specific filetype, but is recommended not to execuate the command as root.

How can i make any application default to a certain filetype universal for all users?
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Downloaded Files Opening Problem

Post by thenktor »

garby wrote:

Code: Select all

xdg-mime default application mimetype

designates an application to specific filetype, but is recommended not to execuate the command as root.

How can i make any application default to a certain filetype universal for all users?
Did you already check if this works for your normal user? No idea how to set it for all users.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
Post Reply