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 ...
0
votes
0answers
219 views

Is there a graphic tool to add new url schemes like XX://?

I would like to add a few url scheme, e.g magnet://, and add a simple mimetype for it. So that I would be able to handle these links within my browser. Is there any graphic tool I could utilize ?
4
votes
1answer
241 views

How to fix xdg-mime for text formats

My xdg-mime makes mistakes. It recognizes an .html file containing Java code as a C++ file. I don't quite know the internal mechanism of xdg (eg. how it determines filetype). And I want to know how ...
1
vote
1answer
196 views

Where to submit new mimetypes?

I've defined new mimetypes with file suffix, where should I submit my work, so that it will be included in future linux/unix distros ?
18
votes
4answers
6k 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 ...
1
vote
0answers
176 views

Desktop Actions and mime types for a DRM file format

I want to handle a DRM file format, which adds an encryption wrapper outside of the protected content. Please see the diagram. _________________________ | DRM wrapper MIME | ...
2
votes
2answers
941 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. ...
3
votes
2answers
333 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
205 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
540 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
1answer
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 ...