Questions tagged [mime-type]
MIME type is a standard way that computers use to refer to the file-type/format
203
questions
90
votes
7
answers
35k
views
Do file extensions have any purpose in Linux?
Linux determines a file's type via code in the file's header. This process doesn't depend on file extensions to know which software to use for opening the file.
(That's what I remember from my ...
85
votes
4
answers
102k
views
How to get the mime type of a file from the command line?
I'm trying to get the mime type of a file from the command line as a printed string (eg. application/vnd.oasis.opendocument.spreadsheet).
I looked up how to do this and found the xdg-mime command.
...
81
votes
11
answers
84k
views
Where are file associations stored?
How does Ubuntu or any other Linux systems store file associations?
Is there some /etc/asscociations file or something?
I know that I can right click on file and change it via "open with", but I'm ...
49
votes
3
answers
50k
views
How do I change the icon for a particular file type?
I'm trying to change the icon for application/x-hwp files. I've added the icons to the proper places, and checked it with assoGiate (after reading this thread). It shows that my desired icon is ...
46
votes
5
answers
26k
views
How to prevent Wine from adding file associations?
Wine automatically adds certain mimetypes and file associations (e.g. notepad.exe for .ini files). There already is an answer that explains how to remove these associations.
But how can one prevent ...
38
votes
2
answers
20k
views
Remove Wine's Notepad from "Open With" options
A few facts: I use Wine. Wine ships its own version of Notepad. For some files, this copy of Notepad has somehow become associated. There is no possibility of me ever actually wanting to open anything ...
34
votes
2
answers
158k
views
gzip: stdin: not in gzip format
When I run:
tar -zxvf john-1.7.0.2.tar.gz
I get this:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
It should start unpacking.
Some ...
26
votes
4
answers
17k
views
Why does update-mime-database complain about uri/rtspt and other unusual types?
When running update-mime-database - usually automatically launched by apt-get - why do I reliably get complaints like:
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
...
26
votes
5
answers
43k
views
How to play a webm video file?
I have tried vlc, Banshee and Totem but none of them recognize the webm format. Even the system does not recognize its mime-type. How do I play it ?
23
votes
2
answers
24k
views
How to assign (set) a MIME type to a file?
Is there any command that could set MIME type of a file? for example:
mime --set --MIME="image/pjpeg" filename.jpg
22
votes
5
answers
44k
views
How can I create a desktop entry for an AppImage?
I want to create desktop entry for Inkscape AppImage. I'm having some issues because I don't have all MIME types or a clear idea about running that kind of app on desktop entry.
Does anyone know how I ...
22
votes
3
answers
23k
views
What is the relationship between MIME types and File .extensions?
I may have the wrong idea here, but I thought that:
MIME types are identifying codes, embedded inside a file.
File .extensions are idenifying codes, suffixed to the file's name.
I thought, from ...
19
votes
6
answers
12k
views
Why do PDF documents open with ImageMagick?
Query shows evince is my default handler.
But, double clicking a pdf file opens ImageMagick. A pdf file's Properties shows ImageMagick as the default handler.
Why is this happening ?
After ...
16
votes
4
answers
8k
views
Firefox's "Open folder" opens Gwenview
Upgrading to 12.04 caused some problems to my Firefox.
It seems like that Firefox doesn't know how to handle downloads.
After some researches, I've found this solution :
Kubuntu 12.04 Firefox and ...
13
votes
6
answers
7k
views
Where is "open with..." in Nautilus?
In Ubuntu 11.04 I usually edit my *.fig files by clicking on the icons. The application (script) which opened the file was texfig. This script was chosen by "open with..." in nautilus. But now there ...
13
votes
4
answers
14k
views
How can I remove / change the "Open With" list?
I have one problem. Just look at image:
So I want to remove one of Dev-C++ IDE and Microsoft Visual Studio Version Selector (I've tried to install Microsoft Visual Studio and it doesn't works,and one ...
13
votes
7
answers
16k
views
Firefox application associations not working in the 'Downloads' window
No matter what changes i make to file associations (actions) in the 'Applications' tab in Firefox, they're totally ignored.
For example, i set .wmv and .avi files to open with 'smplayer' but when i ...
12
votes
3
answers
91k
views
How to add MIME Type for the Apache webserver?
In ubuntu, i am running simple html page that can run mp4 video, i have configured Apache Server and have run simple test page for hello world, its working fine. In Apache Webserver i have read that ...
12
votes
1
answer
3k
views
How are file-extensions/mime-types/icons/default applications associated?
Is there a way / application to add a file extension / mime-type to the system. What I want to achieve is:
Have a default program for opening files of this type
Have a special icon for this filetype
...
12
votes
1
answer
1k
views
Can Gedit default highlighting style be set for files without an extension?
I frequently work with text files that do not have an extension or which have a non-standard extension using Gedit (a .sample file for example, for which the mime type is not understood), and Gedit ...
11
votes
1
answer
8k
views
How to change file association for files opened in Dolphin from command line in GNOME?
I would like to change several default applications for files opened in Dolphin. I know I could do it manually with kcmshell4 filetypes, keditfiletype or however else but is there a way how to change ...
10
votes
2
answers
836
views
How do I set Gnome's default open behavior for file types?
I'd like to set 10.10 to open MP3 files in Muinshee when I open them from a file manager. I don't really like Totem very much, and opening all of Banshee is a little bit too heavy for just playing a ...
10
votes
2
answers
3k
views
Double-clicking on .md or .mkd or .markdown files doesn't open them in ReText but in the default text editor
I installed ReText 3.1.3* and all suggested dependencies on Lubuntu 12.10 using apt-get.
If I run touch ~/Desktop/abcd.md, and subsequently double-click on abcd.md in PCManFM or on its icon on the ...
9
votes
4
answers
6k
views
'file --mime-type' and 'mimetype' Commands Returning Different Results
Hi I am trying to work out why PHP is returning an 'msword' file type when it should be 'excel' so have tested on my Ubuntu box using both the 'file' and 'mimetype' commands. As you can see from the ...
9
votes
4
answers
5k
views
xdg-open stopped working since 16.04 upgrade
xdg-mime query default inode/directory
correctly gives me:
nemo.desktop
like I expect, and want it to.
But
xdg-open $HOME
Gives an error:
xdg-mime: mimetype argument missing
Try 'xdg-mime --...
8
votes
3
answers
56k
views
How do I change the MIME type for a file?
I have a file that is formatted as a .doc, but Nautilus and LibreOffice insists that it is a .txt. Both precise and Ubuntu 12.10 are that way, but Google Docs can convert it (after playing with it).
8
votes
2
answers
2k
views
How to change handler of APT: URLs?
In Firefox on a fresh install of 10.10 when visiting apt.ubuntu.com/p/banshee (for example) I get prompted with the following window:
However, I was under the impression that apturl was supposed to ...
8
votes
2
answers
1k
views
Nautilus and Nemo don't recognize python 3 files
Nautilus and Nemo use two different icons for python files:
But I want them to show the python icon for all python files.
mimetype gives the same result for both files:
$ mimetype *.py
buy_test.py: ...
8
votes
3
answers
7k
views
How to associate all file types within Wine with its corresponding native application?
This is easily done for a single file type, as answered in How to associate a file type within Wine with a native application?, by creating a .reg for the desired filetype. But this is for AVI only. I ...
8
votes
1
answer
7k
views
How do mimeinfo.cache files relate to mimeapps.list?
The different mimeinfo.cache files are populated by update-desktop-database from the .desktop files you have around.
However, file browsers and such seem to use mimeapps.list files. Manipulating ...
7
votes
4
answers
6k
views
VS Code open directory instead of system file manager in Ubuntu 19.10
After upgraded to Ubuntu 19.10 I notice a stranger behaviour in code: if I double click a directory or a unit or right click a directory and try open the directory was open by code unless nemo or ...
7
votes
1
answer
527
views
Find all programs associated with a MIME type
How to find all programs associated with a MIME type? One could look for the MIME type
in the default, system-wide directory. For example, for application/pdf,
grep -ls application/pdf /usr/share/...
7
votes
1
answer
3k
views
How to change default program for http(s):// links in Xubuntu/XFCE
I am using XFCE on Xubuntu. I want my default browser to be Chromium.
In Settings Manager > Preferred Applications web browser is set to Chromium.
In gconf-editor: /desktop/gnome/url-handlers/http ...
7
votes
1
answer
1k
views
Add right click menus to nautilus without nautilus-actions
I want to know how I can add action when the user right-clicks on specific MIME-types or folders without the use of nautilus-actions.
I would be happy if this was possible using Nautilus Scripts as ...
7
votes
3
answers
4k
views
Why can't I make a file association in Nautilus?
After upgrading to 11.10, the association I had created to open SGF files with an application called quarry is lost.
If I select Right-button->Properties->Open With... on an SGF file, quarry is not ...
7
votes
1
answer
606
views
How to make my application accept folders from Unity Launcher?
When dragging a file, all the entries on the launcher that are able to open that file stay lightened while the others fade. As far as I know, this is based on the Mime Types specified on the .desktop ...
6
votes
1
answer
10k
views
adding mimetypes in Ubuntu 14.04
Ok, so here's what I want to do:
I have a file with a specific extension (*.ipynb) that I want to connect with a specific program. Ubuntu however thinks it is a text/plain file.
There are a lot of ...
6
votes
3
answers
4k
views
Broken file type associations after running update-mime-database
After running sudo update-mime-database /usr/share/mime my gnome doesn't recognize any file types anymore. In Nautilus all files are now text/plain type and all now open with gedit by default. Gnome-...
6
votes
2
answers
719
views
How do I set different file associations for .fon and .exe files, if both have the same MIME type?
I sometimes need work with .fon bitmap font files.
When I try to set a default application for them (using the GUI), it also changes the application for .exe files, and vice versa. But I'm trying to ...
6
votes
2
answers
7k
views
Kubuntu 12.04 Firefox and Rekong don't know how to open downloaded files
I just installed Kubuntu 12.04 beta 1.
Both Rekong and Firefox don't know how to "Open Containing Folder" for downloaded items. They also don't know how open the item itself. (I'll give the specific ...
6
votes
1
answer
2k
views
How to set icon for tex files?
In Ubuntu 12.04 with all mate, cinamon, gnome, unity desktops, the following issue:
I use Latex frequently. My files end with extension .tex. The mime.types associated with tex is text/x-tex. The ...
6
votes
3
answers
3k
views
Changing default applications doesn't work in system settings or on file types
Despite several attempts at a solution, I still can't change the default applications in Ubuntu 11.10. If I change them in system settings they revert back as soon as I close the dialogue. Next time I ...
6
votes
1
answer
767
views
How to set the Preferred applications on Ubuntu MATE 20.04, for a given user?
On Ubuntu MATE 18.04, I could add and set preferred applications, for a given user, this way:
# Create an application entry
cat > ~/.local/share/applications/browser.desktop << EOF
[Desktop ...
6
votes
0
answers
907
views
What is the replacement for AssoGiate?
During the update to Saucy, the AssoGiate module is removed as it has been declared obsolete.
I can find no replacement for the editor of the MIME file types database which is compatible with UBUNTU ...
5
votes
3
answers
5k
views
open whatsapp links with web.whatsapp.com
There is still no way to install a native Linux application for whatsapp, so I always use whatsapp's webapp with my daily browser (chromium based brave-browser).
Everything works [mostly] fine, except ...
5
votes
4
answers
2k
views
Why the difference between the results with "file --mime-type" and "xdg-mime query filetype"?
I am trying to find the mime-type of a file. I used either 'file --mime-type' or 'xdg-mime', but get different answers? I am not sure to understand?
$ file --mime-type -b gePlugin.kmz
application/...
5
votes
2
answers
1k
views
Krusader sees doc, docx, xls, xlsx as zip archive
After I updated Kubuntu from version Zesty (17.04) to Artful (17.10) krusader suddenly sees office formats (doc, docx, xls, xlsx) as zip archives, where as dolphin sees them correctly. How do I fix it?...
5
votes
1
answer
3k
views
File association to unlisted application
While browsing files in nautilus, I want to open a tex file with Kile. But, when I get to a dialog similar to the screenshot below, I do not see Kile. Yet, I see it in the "Open With" menu.
How do I ...
5
votes
2
answers
969
views
Promote evince in /etc/mailcap.order
GIMP very unexpectedly took over opening PDF files a while ago when issuing the see command. It is listed in /etc/mailcap before the more appropriate evince. Of course I can edit this file by hand, ...
5
votes
1
answer
1k
views
Can't change PDF default
Up until yesterday my default PDF viewer was evince. Today, I tried to open a PDF and it opened with ImageMagick. I am trying to change it back to evince but with no success. What I 've tried:
...