The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
2answers
363 views

How to add mimetype bindings?

I got an error message when launching "xdg-open" , No applications found for mimetype: inode/mount-point How should I add a binding for "dolphin" ?
4
votes
1answer
2k views

How to setup default browser?

How to change default browser for opening url-s ? For sanity check, I tried: xdg-open 'http://unix.stackexchange.com' And it opens in other browser. I found information about assigning ...
7
votes
3answers
4k views

How to remove Notepad from the applications list?

After installing Wine, Notepad has became a default application to open unknown textual files by double click. I'd like to eliminate this behaviour and remove Notepad from the list of applications ...
2
votes
1answer
1k views

Fixing mime type on Ubuntu

I am using Ubuntu 10.04. Sometime back after an update, all files in Ubuntu started showing a mime type of text/plain. This means that double clicking on any file opened it using gvim which is really ...
6
votes
1answer
284 views

What could cause strange behavior in file(1) command?

What could cause file(1) command to output application/msword application/msword (yes, twice in a row) as the mime type for some of the .doc files? Normally it prints just application/msword. If run ...
1
vote
0answers
186 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 | ...
3
votes
1answer
537 views

How to get the icon for a MIME type?

How to get the icon for a MIME type? I don't want to use g_file_info_get_icon() because its input parameter is a file, not a MIME type. My use case: I have a wrapper file which embeds a media ...
0
votes
2answers
4k views

How can I get the error code (exit code) of “xdg-mime query filetype” command?

I ran xdg-mime query filetype <file name> to check the MIME type of a file, and it failed. How can I print the error code (exit code) of the xdg-mime command? I want to know what error ...
2
votes
2answers
1k 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. ...
2
votes
1answer
381 views

How is MIME type “text/html” registered to shared-mime-info? Where is its *.xml file?

On Ubuntu 10.10, which XML file under the directory /usr/share/mime/applications is for MIME type text/html? I checked xml.xml and xhtml+xml.xml, but neither has a glob pattern of *.html. So where is ...
3
votes
5answers
4k 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
384 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
215 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
717 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 ...