The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
5answers
3k views

Script to list only files of type ASCII text in the current directory?

How to write a shell script which searches the current UNIX directory and returns the names of all files of type ASCII text?
3
votes
2answers
347 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?
2
votes
2answers
209 views

Can shared-mime-info associate a MIME type to a desktop applications?

I can add a new MIME type in shared MIME-info, but how can I associates this MIME type with an application?
3
votes
1answer
601 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 ...
5
votes
2answers
2k views

Gentoo default application for opening files

On my Gentoo box running without a desktop environment, every time I try to open a file the system tries to open it with Firefox. I understand that without a desktop environment "open file" cannot ...