Questions tagged [mime-type]

MIME type is a standard way that computers use to refer to the file-type/format

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

apt-get remove messages (triggers for shared-mime-info): Unknown media type in type '...' [duplicate]

I uninstalled quite a few programs today and in every removal there are the following messages on terminal. What are they supposed to mean? Is something to be fixed? I have seen that there are ...
Adam's user avatar
  • 2,648
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 ...
mizech's user avatar
  • 1,269
1 vote
0 answers
302 views

Recognize file type by content

In Ubuntu 12.10 there was a nice app called Assogiate. It has ability to add new mimetype, add recognition by content of file and new icon, all done by mouse clicking. Now assogiate disappears from ...
QkiZ's user avatar
  • 1,225
0 votes
1 answer
304 views

Can’t add Mediainfo to Open With list (using Nemo or mimeopen)

[While researching this problem I have found a work-around, but I’m still curious to see if anyone can explain why this is happening.] In the past I’m certain I’d added mediainfo-gui to the Open With ...
Moilleadóir's user avatar
1 vote
1 answer
1k views

Handling file open (mime type) with Python [closed]

I created a file mymime.xml <?xml version='1.0' encoding='utf-8'?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> <mime-type type="text/myapp"> ...
eri0o's user avatar
  • 756
3 votes
2 answers
13k views

How can I view binary .log files with application/octet-stream mime type?

I have downloaded some log files from my server which I want to search for a specific string for debugging purposes. All of them have the .log extension. The problem is that one file has the plain ...
Parto's user avatar
  • 15.3k
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 --...
beauxq's user avatar
  • 211
3 votes
2 answers
399 views

dolphin create service menu for all files

I want to create my own service menu entry in dolphin, that will appear for all file/directory types. Which mime type would be necessary for that? Also: where do I find the available mime-types, that ...
TheTrowser's user avatar
1 vote
2 answers
261 views

Error with subprocess

during installation of enlightenment, I asked to run following command: sudo apt-get install -f Which results to sub-process error which is not understandable for me. Reading package lists... ...
Sadegh's user avatar
  • 1,105
3 votes
1 answer
312 views

File Manager Type Classification - Document (pdf/docx)

I have a folder with pdf, doc and docx files, I would like to sort them using the default File manager, displaying pdfs and word docs separately. Unfortunately in the 'Type' column, they are all ...
user99062's user avatar
-2 votes
1 answer
853 views

Chrome Magnet Links (Xdg-open fail) - Popcorn time theft

I have tried and tried and tried (i've never actually asked a Q Before, always figured it out) But this is completly messed up so i urge you who have knowledge to help me. On Chrome, Magnet links ...
Ameeno's user avatar
  • 1
1 vote
0 answers
52 views

Every file opens the "Open With..." dialogue after updating mime types!

Not only that, but the open with dialogue is empty! This is my first question here, so if I made a mistake, please tell me! Some info: Kubuntu 15.04 (KDE/Openbox)
Jeddunk's user avatar
  • 11
2 votes
0 answers
154 views

Open html file with gedit from Unity Dash (Files lens)

I search a html file wit super-f. The file was found and Ubuntu displays these choices: open folder open file email file The above items where translated from german back to english. If I chosse "...
guettli's user avatar
  • 1,787
2 votes
1 answer
2k views

Change or reset default download application in Firefox

Every time I download a file in Firefox with an unknown extension, Firefox offers to open it with Password Gorilla (default). Firefox does show the proper application for known file types, e.g. pdf. ...
NZD's user avatar
  • 3,241
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: ...
Chris's user avatar
  • 568
3 votes
1 answer
4k views

Update mime type from ~/.mime.types?

The file /etc/mime.types tells that you can have a file named ~/.mime.types in your user directory and Ubuntu will grab all your defined types from there. However, I couldn't do that. I've read that ...
autorun's user avatar
  • 273
0 votes
1 answer
1k views

Ubuntu 14.04 how to change icon for .docx file type?

I tried many approaches: creating xml in ~/.local/share/mime/packages and using assogiate app, nothing works for me, most guides are outdated and not working for the latest ubuntu build. the request ...
Alx Key's user avatar
  • 21
1 vote
0 answers
177 views

Running an installation routine of a third party programm on Ubuntu 14.04

Please help me with the following problem: I try to install a third party program install.bin that is from mime type application/octet-stream. Typing sudo ./install.bin; echo $? in the terminal - ...
Bob Baumeister's user avatar
3 votes
1 answer
1k views

Files starting with a comment have the wrong mime type

In Ubuntu 14.04 I have a directory with a set of LESS files, all with the .less extension. All but three of the files show a mime type of plain text document (text/plain) under Properties > Basic. The ...
Andy's user avatar
  • 163
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 ...
MAKZ's user avatar
  • 455
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
PHP Learner's user avatar
  • 2,788
2 votes
1 answer
4k views

How to open folders with `nemo` by clicking on folder icons on the desktop handled by nautilus or directly within nautilus?

My aim is to replace nautilus with nemo from universe in ubuntu devel (currently vivid) using unity. I am close to this goal, after reading about DefaultFileManager from ubuntu help and this or this ...
setempler's user avatar
  • 510
3 votes
0 answers
742 views

Invalid MIME types

So each time I try to install a new package, I get an error saying: Error in file "/usr/share/applications/AESCrypt.desktop": "all/allfiles" is an invalid MIME type ("all" is an unregistered media ...
TheBrenny's user avatar
  • 131
2 votes
0 answers
2k views

How can I open gliffy diagrams by double clicking?

I installed a program "Gliffy" as a Google Chrome app. It saves it's diagrams as *.gliffy files. I'm wondering if I could set things up so that I can double click on this *.gliffy file and it opens ...
Selah's user avatar
  • 2,905
2 votes
2 answers
250 views

chmod only certain mime-types

I'm using file --mime-type * to find the mime-types of all files in a selected directory. Many of these files should not be executable and are .conf or their type is text/plain. Is there a ...
Chris Bornhoft's user avatar
0 votes
1 answer
81 views

Making sense of MIME mappings

I'm having a little trouble understanding exactly how MIME works on the desktop. The specific issue I'm having is that certain file types (C++ source, PHP source, and a couple others) open with Geany ...
Chuck R's user avatar
  • 4,948
0 votes
1 answer
1k views

Mime type missing description?

I am trying to create file associations so I can double click a file and it will open with my program - and will associate an icon with that file type. I created the file myapp-xxx.xml: <?xml ...
Thalia's user avatar
  • 333
2 votes
0 answers
853 views

Confusion for mime files: magic, magic.mgc, magic.mime

I'm using Ubuntu. I'm trying to use ruby gem 'shared-mime-info' for an application I'm writing. I understand that magic.mgc is a compiled version of magic file which has magic number definitions for ...
Florence Foo's user avatar
1 vote
2 answers
2k views

14.04 MIME type "png"

Error message clicking on nnn.png images (and no image display): No default application found for the MIME type image/x-apple-ios-png. Open the "File types and programs" page in the Control Center to ...
user308051's user avatar
4 votes
2 answers
874 views

Mimetype mess after calibre installation. How can I fix it?

I always get text/plain or application/octet-stream when running "mimetype" on all file types. The command "file --mime-type" seems to identify correctly the different file types. For instance, if I ...
Charo's user avatar
  • 3,631
5 votes
3 answers
4k views

How Do I Create Mime Types For New Documents (Command Line)?

How do I give my application's custom document a custom icon? Additionally, how do I make the file manager open these documents when a user double clicks on them? I have to do this on the command ...
user293406's user avatar
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 ...
wa4557's user avatar
  • 900
0 votes
1 answer
1k views

Firefox: change default application

Me default djvu viewer is okular: xdg-mime: $ xdg-mime query default image/vnd.djvu okular.desktop in $HOME/.local/share/applications/mimeapps.list: [Added Associations] image/vnd.djvu=okular....
Adobe's user avatar
  • 3,891
0 votes
1 answer
1k views

'file --mime-type' vs 'mimetype' for php files

I'm trying to understand the difference between file --mime-type and mimetype. They are giving me different results on Ubuntu 12.04.4 LTS for this simple php file. <?php echo 'Hello world!'; ?&...
user avatar
1 vote
1 answer
822 views

xoj (Xournal) files handled as gzip despite presence of correct MIME type

So I had to uninstall the ppa version of Xournal and build from source (with a modification). And now .xoj files open automatically with KDE's archive manager Ark, and are identified as being of type ...
Archelon's user avatar
1 vote
2 answers
98 views

Script showing file type?

I want to make a script that shows what type of file is for example : ./file.sh haha test lala ssss haha --> file test --> directory lala --> symbolic link ssss --> executable Im ...
user233233's user avatar
4 votes
2 answers
3k views

How to add a mimetype icon in the home directory?

About the mimetype I have created a mimetype and I want to add an icon for it. The mimetype is for To-do lists, it matches the TODO pattern and is of type text/todo. I can confirm that upon ...
Severo Raz's user avatar
  • 5,981
0 votes
1 answer
853 views

Remove option from "open with..." menu item? [duplicate]

I'm using 13.10. I want to remove LibreOffice Writer from my "open with..." menu for html, xml and tex documents, because I almost never use writer (except when someone sends my a word document) and I ...
alpacahaircut's user avatar
3 votes
2 answers
839 views

How to get Icon-Names for MIME-types in a bash script?

is there a way to convert the output of file --mime-type FILE e.g. "application/pdf" into an icon-name, depending on the current icon-theme, or even a full link? Where is that specified? I can't ...
user156968's user avatar
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 ...
Michael Clayton's user avatar
4 votes
1 answer
2k views

Problem associating file type to application

I'm trying to make gpxviewer the default application to open .gpx files. The problem is that it doesn't appear in the "Open with" window neither I can add it. What I have tried: Using Ubuntu Tweak as ...
Salem's user avatar
  • 19.7k
5 votes
2 answers
4k views

How is it determined which application is to open a file of specific mime-type?

I saw the following question, but I can't comment yet. So I decided to create a separate one. I have both transmission and deluge installed. And I have no association for application/x-bittorrent ...
x-yuri's user avatar
  • 581
3 votes
1 answer
1k views

file command reports text/plain for .css file

I'm trying to get xdg-open to open css files with correct editor, but can't get file to report correct mimetype for a file.css file. There is an entry both in /etc/mime.types and a file already exist ...
grm's user avatar
  • 704
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 ...
hytromo's user avatar
  • 4,903
1 vote
1 answer
480 views

docx format opened simultaneously with LO writer and Kingsoft writer

im using ubuntu raring 64 bit now, i just downloaded kingsoft office for i686 arhcitecture, unfortunantely it seemed that i downloaded it wrongly (i downloaded the 32 bit rpm version!) and forced to ...
Musto's user avatar
  • 303
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 ...
Anita's user avatar
  • 61
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 ...
mniess's user avatar
  • 10.6k
4 votes
4 answers
4k views

Places opens in Disk Usage Analyzer in Ubuntu 13.04

I have updated my ubuntu from 12.10 to latest Ubuntu 13.04. everything is fine but when i go to Places and click any place, it opens in Disk Usage Analyzer by default and i found no way to either stop ...
xkeshav's user avatar
  • 579
0 votes
1 answer
1k views

Icons for custom mime-type does not show up with Ubuntu-mono-dark theme

I manually installed LuxRender 1.2.1 under /usr/local/bin/ and it works fine and dandy. I then created 5 new mime-types for LuxRender *.lxs, *.lxo, *.lxm, *.lxv and *.flm file formats (scene, objects, ...
Federico's user avatar
  • 121
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-...
Andrew's user avatar
  • 61