SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2010-01-26 07:24:52

nabilalk
#! Die Hard
From: U.S.A.
Registered: 2009-01-28
Posts: 531

Chromium & Thunar integration

I use Chromium as my default web browser and Thunar as my default file manager. When I download a file using Chromium and click on "Show in Folder", nothing happens. How can I get Chromium to use Thunar to open up the Download folder? Thanks.

I'm using
Chromium version 4.0.306.0
Thunar version 1.0.1

Last edited by nabilalk (2010-01-26 08:37:38)


#! 10 “Statler” r20110207 32-bit & Openbox

Offline

Be excellent to each other!

#2 2010-01-26 08:26:54

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,057
Website

Re: Chromium & Thunar integration

I am running Google Chrome 4.0.295.0 unstable on my Debian box and when I click "Open Folder", it works and opens Thunar. I should think it is possible to have the same happen with Chromium on your system, but I am just not sure where to look to make it happen. Maybe Chromium is relying on a system variable to define the file manager?

Offline

#3 2010-01-26 08:29:48

nabilalk
#! Die Hard
From: U.S.A.
Registered: 2009-01-28
Posts: 531

Re: Chromium & Thunar integration

corenominal wrote:

I am running Google Chrome 4.0.295.0 unstable on my Debian box and when I click "Open Folder", it works and opens Thunar. I should think it is possible to have the same happen with Chromium on your system, but I am just not sure where to look to make it happen. Maybe Chromium is relying on a system variable to define the file manager?

Strange. I followed this Wiki to set Thunar as the default file manager, but Chromium still doesn't recognize it.


#! 10 “Statler” r20110207 32-bit & Openbox

Offline

#4 2010-01-26 16:17:58

danielninja
Member
From: Oporto, Portugal
Registered: 2010-01-14
Posts: 26

Re: Chromium & Thunar integration

Hi, i've got the same problem. When i click on "open folder" it doesn't do anything :s


drs

Offline

#5 2010-01-26 22:25:41

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,413

Re: Chromium & Thunar integration

Could it be a difference between Chrome and Chromium? I have Chromium and it doesn't open the folder.

Edit: http://code.google.com/p/chromium/issue … l?id=19987

Edit 2: http://bbs.archlinux.org/viewtopic.php?id=81611

Last edited by anonymous (2010-01-27 20:24:33)

Offline

#6 2010-08-18 13:50:25

Tiomaidh
#! Member
From: Narnia
Registered: 2010-07-12
Posts: 80
Website

Re: Chromium & Thunar integration

I have the same problem. Crunchbang 9.04, Google Chrome 5, both Thunar and PCManFM installed.

Offline

#7 2010-08-18 15:44:28

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,413

Re: Chromium & Thunar integration

Try installing libfile-mimeinfo-perl then see if Chrome/Chromium will open folders/files properly.

Offline

#8 2010-08-18 16:20:34

Sunai
#! Member
From: Denmark
Registered: 2009-07-16
Posts: 61

Re: Chromium & Thunar integration

The following package worked for me in Arch linux with openbox: perl-file-mimeinfo
after that chromium recognized thunar smile

EDIT: it seemed that it also helped on dropbox big_smile, now I can open the dropbox folder directly by clicking on the dropbox icon in the sys tray.

Last edited by Sunai (2010-08-18 16:22:53)

Offline

#9 2010-08-18 22:21:15

richjack
Member
Registered: 2010-08-11
Posts: 24

Re: Chromium & Thunar integration

Chromium uses the xdg-mime specification for opening downloaded files and folders.

A couple of steps are required to make your setup compatible:

1. Add this line to your Openbox autostart.sh file:

export DE=gnome

This makes Openbox pretend that it's Gnome to system calls and therefore makes your desktop xdg compliant.

2. The xdg-mime specifications are found in a file called defaults.lst in any of these places /usr/share/applications, usr/local/share/applications, ~/.local/share/applications. The latter ones taking precedence.

If you have ever opened a file by right-clicking on it in Thunar and specifying which application you want to use by default, the defaults.list file is where this information is stored. Unfortunately there won't be an entry for all mime types and in your case for the folder mime-type. So, open the file:

~/.local/share/applications/defaults.list

and add this line:

application/x-directory=Thunar-folder-handler.desktop

take care with the capital T for Thunar.

Logout and back in and Chromium should now open folders in Thunar following a download.

If you want to make sure that other downloaded files can be opened straight from download, then you need to figure out the correct mime-type definition and the corresponding .desktop (launcher) file and add it to your defaults.list file. Use the command:

xdg-mime query filetype [path/filename.extension]
eg

xdg-mime query filetype $HOME/Pictures/wallpaper.jpg
image/jpeg

Find out what your favourite application launcher is by doing:

dir /usr/share/applications

So I might add to the defaults.list:

image/jpeg=viewnior.desktop

Don't worry, you don't need to make an entry for every default as many will already be set in the system-wide files, only when Chromium fails to open a file in your preferred application.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo