It seems that xdg-open recognizes the file as text/plain . In the /usr/share/applications/mimeinfo.cache is the following line:
text/plain=libreoffice-writer.desktop;vim.desktop;org.gnome.gedit.desktop; and when I comment out the line, xdg-open fails to open test.c . Regards, -- David Rabel Linux Consultant & Trainer B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
signature.asc
Description: OpenPGP digital signature