Sample Header Ad - 728x90

How does the xdg-open command know which application to use to open a file?

57 votes
3 answers
64710 views
I would expect xdg-open command to use the same application that opens when I double-click the file in the default file manager, but this is not always true. For example my DE is XFCE, my file manager is Thunar and my default picture viewer is Ristretto. However, xdg-open example.png opens the example PNG file in Pinta. Why?
Asked by Ivan (18358 rep)
Dec 23, 2015, 02:44 AM
Last activity: Nov 26, 2024, 10:20 PM