Bug#681451: gvfs-bin: gvfs-open (via xdg-open) opens pdfs in wrong application
Bill Wohler
wohler at newt.com
Sun Aug 12 21:27:24 UTC 2012
Looks like there is a remnant of OpenOffice:
$ xdg-mime query default application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
openoffice.org-calc.desktop
I also found this:
$ grep -r gnumeric .local
.local/share/applications/mimeapps.list:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=openoffice.org-calc.desktop;gnumeric.desktop;libreoffice-calc.desktop;file-roller.desktop;
Compare the locations of the applications listed:
$ locate openoffice.org-calc.desktop
/usr/share/app-install/desktop/openoffice.org-calc.desktop
$ locate gnumeric.desktop
/usr/share/app-install/desktop/gnumeric.desktop
/usr/share/applications/gnumeric.desktop
/var/lib/menu-xdg/applications/menu-xdg/X-Debian-Applications-Office-gnumeric.desktop
$ locate libreoffice-calc.desktop
/usr/share/applications/libreoffice-calc.desktop
I think what is happening is that /usr/share/app-install/desktop is not
in the search path and /usr/share/applications is, so
gnumeric.desktop is being used in favor of openoffice.org-calc.desktop
since the former is found and the latter is not. The correct
application, libreoffice-calc.desktop, doesn't even get to play.
I removed the offensive line from
.local/share/applications/mimeapps.list and then ran:
$ xdg-mime default libreoffice-calc.desktop application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Now, when I run xdg-open on a .xlsx file, I get libreoffice as desired.
At least in my case, it would seem that this is fallout from the
OpenOffice to LibreOffice conversion. Norbert, does this help you?
--
Bill Wohler <wohler at newt.com> aka <Bill.Wohler at nasa.gov>
http://www.newt.com/wohler/
GnuPG ID:610BD9AD
More information about the pkg-gnome-maintainers
mailing list