Association-DocBook and Thunar

Asked by Ron O

Using Xubuntu (7.10) with Thunar file manager. Also Open Office Writer. The DocBook XML DTD is already installed (either as part of the distro or from OO Writer installation).

 If I try to open DocBook folders in Thunar, I get an error saying it cannot open the folder because Nautilus (which is not installed) has not been started. Rather than installing Nautilus and running 2 file managers, how can I make Xubuntu open these folders in Thunar? To use Windoze terminology, Is there a way to break the association between DocBook and Nautilus?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Ron O
Solved:
Last query:
Last reply:
Revision history for this message
Randy LeJeune (lejeunerandy-fastmail) said :
#1

You may want to have a look at this: http://thunar.xfce.org/documentation/C/working-with-files-and-folders.html#opening-files and see if it helps you.

Revision history for this message
Ron O (ronouel) said :
#2

There is nothing here that helps. The problem is not in opening a FILE in Thunar, but a FOLDER so I can see what is in it.

If you right click a folder, there is no "open with" selection on the menu like there is when you right click on a file. Same with the instructions to select, then menu--file/open with other application. Both methods work with files but not folders.

It almost looks like the DocBook packages for Ubuntu are hard-coded to open folders in Nautilus as if it were the only file manager anyone would ever use.
I may be wrong, but I am guessing this is a bug. But I am not sure which application or library is at fault- Xubuntu, Thunar, or DocBook.

Revision history for this message
Randy LeJeune (lejeunerandy-fastmail) said :
#3

There is a possible solution here:

cp /usr/share/applications/Thunar-folder-handler.desktop ~/.local/share/applications/
vi ~/.local/share/applications/mimecache.info
change to line: x-directory/gnome-default-handler=Thunar-folder-handler.desktop;kfmclient_dir.desktop

See if this helps.

Revision history for this message
Ron O (ronouel) said :
#4

This was entirely my own misinterpretation, which I discovered by trying to duplicate the problem before trying your solution. Sorry for the false alarm.

 I located the Docbook files and folders using the Gnome Search Tool and tried to open the folders from its results page, so I was really not in Thunar but the Gnome Search Tool- and Gnome uses Nautilus. But if I then opened Thunar and followed the path the search tool gave me, I was able to open the folders. So it's an easy work around, and I am not locked out.

Do you think I should try your commands anyway?

Before I do- Thunar 9.0 was just released with a lot of bug fixes. Do you think it is safe to uninstall Thunar in Synaptic and reinstall the new version via apt-get along with its one updated library file, or is Thunar too intimately tied to Xubuntu to do it this way?

Revision history for this message
Randy LeJeune (lejeunerandy-fastmail) said :
#5

No, thunar is not tied to any particular window manager. You can use thunar under Enlightenment of Fluxbox if you so choose, for example. A file manager can be used with pretty much any window manager, so if you want you can go ahead and update it via apt-get. In the same way you could use mc or xfs or nautilus with E or flux as well.

As for the commands, if you have the problem fixed, I wouldn't bother, but you might want to file them away in case they ever do come in handy.

Good luck!

Revision history for this message
Ron O (ronouel) said :
#6

Thanks so much.