! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Thunar opens Arhive Manager when double clicking OpenOffice.org files
Status:
CLOSED: INVALID

Comments

Description Fabian Rodriguez 2006-05-12 21:49:11 CEST
I am using Xubuntu beta, which includes XFCE 4.3.90.2 (Xfce 4.4 BETA1) and Thunar 0.3.1svn-r21434

Problem: when using Thunar to browse files and open them, OpenOffice.org files are opened as archives with Archive Manager

They should be opened with OpenOffice.org instead.
Comment 1 Benedikt Meurer editbugs 2006-05-13 15:19:51 CEST
Hm, I don't have OpenOffice around to test, but this looks like a problem with the shared-mime-database on Xubuntu (maybe upstream problem). There should be glob rules to recognize OpenOffice files, and the magic rules for OpenOffice files should have higher priority than the more generic archiver file types.

CC'ing Jani.
Comment 2 Jani Monoses 2006-05-13 17:21:20 CEST
I still need to read up on this and figure out how to set default mime-action handlers for a stock thunar/xfce/xubuntu install. I have the same prob with gimp,
it opens files for viewing instead of gqview whic is also installed.
Do I need to provide a custom defaults.list file and set the XDG_DATA_DIR envvars
to point to the dir containing it or something like this?

With OOo OTOH it could be that it is not part of the default install so possibly that's why xarchiver tries to open the zipped OO docs.
Comment 3 Benedikt Meurer editbugs 2006-05-13 22:35:47 CEST
You can just put a custom defaults.list into /usr/share/applications.
Comment 4 Jani Monoses 2006-05-14 07:31:02 CEST
there's already a /usr/share/applications/defaults.list in ubuntu installed by desktop-file-utils. The same package installs an /etc/gnome/defaults.list, and there's /usr/share/gnome/applications/defaults.list (which is empty) installed by gnome-vfs. I'll talk to the ubuntu gnome maintainers as this may be an ubuntu specific setup.
Comment 5 Jani Monoses 2006-05-16 10:06:19 CEST
I prepended /etc/xdg/xubuntu to XDG_DATA_DIRS in startxfce4 and put an applications/defaults.list file in that dir with associations for gqview, xfmedia, xarchiver etc.. Now that takes precedence over default ubuntu/gnome in /usr/share/applications when in Xfce, while still overriden by user prefs in ~/.local. I say this can be closed, although if you have a cleaner solution I am all ears.
Comment 6 Benedikt Meurer editbugs 2006-05-17 22:02:13 CEST
Well, the associations are done via defaults.list. If you want different defaults for gnome/xfce, you'll need to set different XDG_DATA_DIRS. Tho, I'd suggest to do the defaults.list via a distro specific package, i.e. on ubuntu a package with /usr/share/applications/defaults.list with gnome apps, and on xubuntu a package with /usr/share/applications/defaults.list with xfce/gtk apps (and kubuntu, edubuntu, etc.). Of course, only if such a package exists.
Comment 7 Jani Monoses 2006-05-18 06:17:26 CEST
(In reply to comment #6)
> Well, the associations are done via defaults.list. If you want different
> defaults for gnome/xfce, you'll need to set different XDG_DATA_DIRS. Tho, I'd
> suggest to do the defaults.list via a distro specific package, i.e. on ubuntu a
> package with /usr/share/applications/defaults.list with gnome apps, and on
> xubuntu a package with /usr/share/applications/defaults.list with xfce/gtk apps
> (and kubuntu, edubuntu, etc.). Of course, only if such a package exists.
Right, the defaults.list is provided by xubuntu-default-settings a native package but XDG_DATA_DIRS still needs to be set by startxfce4. It cannot be put in /usr/share since it would conflict with gnome's and xfce and gnome should be installable along each other.

Comment 8 Benedikt Meurer editbugs 2006-05-20 16:42:12 CEST
Hm, you could add a virtual package "desktop-base-files" which would be provided by xubuntu-desktop-files and ubuntu-desktop-files (for example), and which would install Xubuntu/Ubuntu defaults to /usr/share. On the other hand, simply setting XDG_DATA_DIRS works as well. ;-)

Bug #1806

Reported by:
Fabian Rodriguez
Reported on: 2006-05-12
Last modified on: 2009-07-17

People

Assignee:
Jannis Pohlmann
CC List:
1 user

Version

Version:
0.3.1svn

Attachments

Additional information