Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do you change file associations in Thunar?

58 views
Skip to first unread message

Jason Hsu

unread,
Aug 12, 2011, 7:20:01 PM8/12/11
to
OS: antiX Linux M11 (based on MEPIS)
File managers: Thunar and ROX-Filer
Window manager: IceWM

I know that the file associations in the Rox-Filer file manager are in the ~/.config/rox.sourceforge.net/MIME-types directory. These scripts control what application opens up when I click on a file in the Rox-Filer file manager.

Where are the file associations in the Thunar file manager, and how do I change them? When I click on a file in the Thunar window manager, I still get AbiWord for *.doc and *.odt files and Gnumeric for *.xls files.

Please note that I'm aware of right-click -> Open with Another Application. I'm looking for the solution that involves command line or directly editing files, as I need to automate the procedure on behalf of Swift Linux users.

--
Jason Hsu <jhsu8...@jasonhsu.com>
Founder and lead developer of Swift Linux (http://www.swiftlinux.org)


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20110812173921.e1...@jasonhsu.com

Camaleón

unread,
Aug 13, 2011, 6:40:02 AM8/13/11
to
On Fri, 12 Aug 2011 17:39:21 -0500, Jason Hsu wrote:

(...)

> Where are the file associations in the Thunar file manager, and how do I
> change them? When I click on a file in the Thunar window manager, I
> still get AbiWord for *.doc and *.odt files and Gnumeric for *.xls
> files.

(...)

Take a look into this forum thread (specially message #5) and see if that
helps:

https://bbs.archlinux.org/viewtopic.php?id=76836

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/pan.2011.08...@gmail.com

AG

unread,
Aug 13, 2011, 7:00:01 AM8/13/11
to
On 12/08/11 23:39, Jason Hsu wrote:
> OS: antiX Linux M11 (based on MEPIS)
> File managers: Thunar and ROX-Filer
> Window manager: IceWM
>
> I know that the file associations in the Rox-Filer file manager are in the ~/.config/rox.sourceforge.net/MIME-types directory. These scripts control what application opens up when I click on a file in the Rox-Filer file manager.
>
> Where are the file associations in the Thunar file manager, and how do I change them? When I click on a file in the Thunar window manager, I still get AbiWord for *.doc and *.odt files and Gnumeric for *.xls files.
>
> Please note that I'm aware of right-click -> Open with Another Application. I'm looking for the solution that involves command line or directly editing files, as I need to automate the procedure on behalf of Swift Linux users.
>
Jason

While I can't help with the command line solution you are seeking, I
have found that by right clicking on the file you wish to open (e.g. a
*.doc) and selecting "properties" from the context menu, you can then
change the association in a way that is far more permanent than trying
to fix it via the "open with" option.

But, as I admitted, this will not help you with the command line solution.

AG


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/4E4654A...@gmail.com

Jason Hsu

unread,
Aug 13, 2011, 12:00:01 PM8/13/11
to
I looked at the /usr/share/mime/glob and /usr/share/mime/glob2 files, and it says at the top that these files should not be edited because they were generated with the update-mime-database command.

So how do I use the update-mime-database command to make the changes I need to make?

On Sat, 13 Aug 2011 10:30:32 +0000 (UTC)
Camaleón <noel...@gmail.com> wrote:

> On Fri, 12 Aug 2011 17:39:21 -0500, Jason Hsu wrote:
>
> (...)
>
> > Where are the file associations in the Thunar file manager, and how do I
> > change them? When I click on a file in the Thunar window manager, I
> > still get AbiWord for *.doc and *.odt files and Gnumeric for *.xls
> > files.
>
> (...)
>
> Take a look into this forum thread (specially message #5) and see if that
> helps:
>
> https://bbs.archlinux.org/viewtopic.php?id=76836
>

--
Jason Hsu <jhsu8...@jasonhsu.com>
Founder and lead developer of Swift Linux (http://www.swiftlinux.org)

--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/20110813105445.fe...@jasonhsu.com

Camaleón

unread,
Aug 13, 2011, 2:30:02 PM8/13/11
to
On Sat, 13 Aug 2011 10:54:45 -0500, Jason Hsu wrote:

> On Sat, 13 Aug 2011 10:30:32 +0000 (UTC) Camaleón <noel...@gmail.com>
> wrote:

>> > Where are the file associations in the Thunar file manager, and how
>> > do I change them? When I click on a file in the Thunar window
>> > manager, I still get AbiWord for *.doc and *.odt files and Gnumeric
>> > for *.xls files.
>>
>> (...)
>>
>> Take a look into this forum thread (specially message #5) and see if
>> that helps:
>>
>> https://bbs.archlinux.org/viewtopic.php?id=76836

> I looked at the /usr/share/mime/glob and /usr/share/mime/glob2 files,


> and it says at the top that these files should not be edited because
> they were generated with the update-mime-database command.
>
> So how do I use the update-mime-database command to make the changes I
> need to make?

Hum... true. That scares a bit, I agree :-)

If you want to take the correct path, take a look at GNOME docs for mime
types and how to edit them in the right way:

http://library.gnome.org/admin/system-admin-guide/stable/mimetypes-modifying.html.en

or this one from FreeDesktop:

http://www.freedesktop.org/wiki/Specifications/AddingMIMETutor

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/pan.2011.08...@gmail.com

0 new messages