The tag has no wiki summary.

learn more… | top users | synonyms

19
votes
4answers
1k views

Is there an “open with” command for the command line?

Does the command line have a way to get a recommended list of programs used to open a particular file, based on the file type? For example, a .pdf file would have an open with... recommendation using ...
19
votes
4answers
7k views

How to properly and easy configure `xdg-open` without any enviroment?

I'm using OpenBox window manager without any desktop enviroment. xdg-open behaves strangely. It opens everything with firefox. $ xdg-settings --list Known properties: default-web-browser ...
3
votes
2answers
338 views

Is there a glibc API that can find the default handing application for a MIME type on linux?

I want to find the default handling application in my C program. Is there a C API with same functionality as xdg-mime query default mime-type on Linux?
3
votes
1answer
314 views

“file” command confusing C & C++

When using file to check some file types, I noticed that it seems to incorrectly label C++ files as C files: $ file User.* User.cpp: C source, ASCII text User.h: C++ source, ASCII text User.o: ELF ...
3
votes
1answer
38 views

Where are recognizers for media types stored and how to add one?

When one writes a html file, linux can state that the MIME-type is text/html. How is this handled? Where are the "recognizers" stored? How can one add a MIME type with with an implemented recognizer?
3
votes
1answer
573 views

How can I find the application for a MIME type on linux?

Is there a linux API that can find the default application for a MIME type? Then I can use this application to open a file. I can not use xdg-open(url) because the file format is a wrapper format and ...
2
votes
1answer
358 views

How to make difference between .wxm (wxMaxima) and .c files in Linux Mint?

I installed wxMaxima on my laptop a few days ago. The issue is that files with the extension .wxm, that are used with wxMaxima, are identified as a C source files. Therefore, when I double click on ...
2
votes
2answers
971 views

Why does `xdg-mime query filetype …` fail to find a new added file type?

I installed a new file type to share MIME database. But xdg-mime query filetype cannot tell the new type. This problem only happens on my own Linux OS which does not use GNOME or KDE as its desktop. ...