Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mime-type]

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

-1
votes
0answers
66 views

Why my javascript is not working and shows not a valid javascript mime type?

Here is the error I am getting in console : The script from “http://localhost/Project/public/dashboard /js/components.js” was loaded even though its MIME type (“text/html”) ...
0
votes
1answer
44 views

How to configure what starts when inserting a medium in Lubuntu / LXQt?

How can I configure what is executed under LXQt for a newly inserted medium? I would like the pcmanfm-qt file manager of LXQt to start in every case. Because the current behavior is useless and ...
0
votes
0answers
44 views

Nautilus opens HTML file in mail client dependent on HTML XMLNS tag

I have the following strange problem: When I double-click a HTML file I'd like to see the file in the web browser (of course). However sometimes Nautilus will open the E-Mail client (Thunderbird) ...
0
votes
1answer
47 views

How can I associate a custom file type with a custom executable?

I have a custom file type, made a custom MIME type for it, associated an icon with it. Now I want to open it with my custom executable. If I click OpenI get a dialogue Could not display ... There is ...
2
votes
1answer
37 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, ...
2
votes
2answers
94 views

How can I run exe files in Dolphin on Kubuntu

I have wine installed. But how can I set it default for running exe files?
0
votes
0answers
242 views

Files associations (MIME) in Ubuntu 18.04

I'm trying to figure out how files associations work in Ubuntu 18.04. I looked around the web (quite a lot actually) and found these files: [A] /etc/gnome/defaults.list [B] /usr/share/applications/...
0
votes
0answers
121 views

Install mime types on server

I have problem with determine mime types of .png .bmp .gif .ico in web application. With .jpg .jpeg I don't have this problem. To solve this problem some recommend to install mime types on server. ...
1
vote
1answer
78 views

How to execute a file based on the mime type in Nautlius?

I can execute the file via terminal. But how can I tell Nautilus to do the same on double click?
2
votes
0answers
71 views

When does /usr/share/applications/mimeinfo.cache get updated and can I protect it?

I find it really irritating that some applications (e.g. pdfshuffler and calibre) end up a higher priority in /usr/share/applications/mimeinfo.cache than my desired application for PDFs (okular). I ...
0
votes
0answers
46 views

Can '$HOME/.mailcap' be used to have 'edit' launch 'nano' instead of 'vim-tiny'?

Can $HOME/.mailcap be used to have the command line edit launch nano instead of vim-tiny? If yes, then how? Background: On Ubuntu 16.04 and 18.04, edit links to run-mailcap which -a edit # /usr/...
1
vote
0answers
70 views

Where is a detailed GUI for file associations?

I am using Gnome on Ubuntu 18.04. I just fixed an irritating feature whereby Firefox would open PDFs with PDFShuffler instead of Okular (which Dolphin launches). I fixed it by editing /usr/share/...
4
votes
1answer
196 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: ...
3
votes
1answer
71 views

Is it Safe to Change the Name of a .desktop File in /usr/share/applications?

I use Lubuntu (18.04) and several Gnome apps. By default Gnome apps are given generic association names like 'Terminal' for gnome-terminal and 'text editor' for gedit, which is confusing considering ...
1
vote
1answer
41 views

Set priorities for file-open applications

Most of the time I open .sla scribus files ("application/vnd.scribus" mimetype) with Scribus application, but sometimes I have to edit them with Geany (.SLA files are a kind of flat XML files). I do ...
0
votes
0answers
75 views

Create mime type with custom icon for file with generic mime type

I have an application whose files are of mimtype text/xmlbut it has unique filename extensions. Now I would like to have custom icons for this file type. I found out how I can add icons for specific ...
0
votes
0answers
45 views

Thunar: set different default applications for *.rkt files and *.txt files

The problem: whenever I set a default program for opening *.rkt files, it also becomes the default program for opening *.txt files. Whenever I set a default program for opening *.txt files, it also ...
2
votes
0answers
44 views

ubuntu think my C/C++ source file is plain file

Today I suddenly find that when I create a C or C++ source code file like using vi or touch touch test.c The Ubuntu don't think it is source code file and recognize it as plain text. And when i use ...
1
vote
0answers
151 views

PCmanFM - How can I remove an entry from the context menu?

I am using Lubuntu 18.04. When clicking right on a file the context menu of the file manager opens up. The file manager is PCmanFM, a great tool. I would like to remove programs from the list of ...
2
votes
1answer
280 views

Mime type for iso files in Kubuntu 18.04

Posted in order to provide the answer. I have some desktop files for context menu actions (or service menus for Dolphin) to be applied to iso images (like mount/unmount). For example, the Dolphin ...
0
votes
1answer
28 views

Steam using wrong file association for inode/directory (kid3)

Kubuntu 16.04, latest Steam. kid3 is not a preferred application in both /usr/share/applications/mimeapps.list and ~/.config/mimeapps.list and ~/.local/share/applications/mimeapps.list is a symlink to ...
0
votes
0answers
25 views

Deleted Gstreamer codec and can't play mp3 or mp4 files

I had accidentally deleted one of the G-streamer codec and now i can't play any mp3 or mp4 file. Whenever, I try to open one of these files it gives a message of "Additional MIME type require". Please ...
1
vote
1answer
35 views

File associate by MIME subtype / extension

I'm writing files in markdown format using the markdown editor Remarkable and I name these files with the extension *.md. I'd like to associate the these files with Remarkable but if I do so the ...
1
vote
0answers
94 views

How to force Nautilus to check file extension before file content for default application

Nautilus first checks the file content before the file extension to decide which mime type to use. I have a bunch of raw file with different first few bytes: Nautilus doesn't follow the type ...
0
votes
1answer
33 views

Nemo sort php files and javascript as type program

Nemo and nautilus sort php files and javascript files as type program How can i modify this feature, so i can sort javascript as javascript and php as php? Thank YOu in advance enter image ...
0
votes
1answer
113 views

17.10 seahorse-nautilus mime association for “decrypt file”, getting really frustrated at the ubuntu way

I'm a proficient linux user, just recently I've been learning how to deploy server with ansible+vagrant so I just spent an entire week on centOS and various other flavour of linux getting a complex ...
4
votes
1answer
391 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?...
2
votes
0answers
663 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 ...
3
votes
0answers
143 views

How to launch only shell scripts from Nautilus

This is related to questions like “How do I run executable scripts in Nautilus?” or “How to execute a script just by double clicking like .EXE files in Windows?”. I would also like to have shell ...
1
vote
1answer
138 views

How to get the icon of a window class?

I'm writing a script to quickly list my many opened windows. I have grouped them according to their class. I would like to add an icon to the group. I use wmctrl to get the list of windows: wmctrl ...
1
vote
0answers
155 views

Open files only opens terminal instead of file browser

I have a problem: For some reason, if I open a file from inside an application (such as in Firefox "Open downloaded file in folder", for example), it only opens gnome-terminal in the home directory, ...
0
votes
1answer
375 views

How to Open (.sps,.csv and .sav) with SPSS as default application?

I installed SPSS24 (a statistics application) on my laptop because i need it for work. I created a SPSS.desktop file and now i can find ich with the Dash search. So far so good. But now i want that ...
1
vote
1answer
636 views

List of file types and default Ubuntu applications to open with

I'm writing a humble file manager and am seeking a list of different file types and what default applications Ubuntu uses to open them with. So far I've only figured out "text" open with gedit, "...
1
vote
1answer
944 views

I deleted MIME directories and update-mime-database doesn't work anymore! Help!

update-mime-database was getting very slow recently, so I decided to remove all associations and start over, thus I ran: sudo rm -fr /usr/share/mime /usr/share/mime-info /usr/share/mimelnk I thought ...
1
vote
1answer
529 views

How MIMEs are detected

I've searched around but can't seem to find any information on the topic. How do you set the MIME type for an existing file? For example, I'm trying to create a file with type text/html
25
votes
1answer
69k 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 ...
0
votes
2answers
742 views

Unable to open local .swf in any browser

When trying to open locally saved .swf (any) in Chromium or Firefox instead of opening it browser opens save prompt. Flash plugin is installed for both, flash is working when viewed embedded into ....
0
votes
1answer
2k views

Can't run “shared library” in nautilus

I recently re-installed Ubuntu in 64 bit, (before I had it in 32 bit). I had the home folder on a partition and the system on another. So when I re-installed I kept my old home folder. My problem is ...
1
vote
3answers
732 views

Impossible to launch graphic executables in nautilus

I recently re-installed Ubuntu in 64 bit, (before I had it in 32 bit). I had the home folder on a partition and the system on another. So when I re-installed I kept my old home folder. My problem is ...
3
votes
1answer
506 views

Ubuntu think my text file is “C source code” file

When I create a file without file extension and put some text like this in it: //this file is just a simple text file and you are reading it Ubuntu think it's C source code file and change the icon ...
5
votes
0answers
163 views

“Launch Dropbox–Website” opens in my editor instead of the browser

When I use the "Dropbox–Website starten" entry from the Dropbox App menu (I guess this would be "Launch Dropbox–Website" in English), a file is generated at /tmp/….html and opened in my editor (...
1
vote
1answer
2k views

How to handle jupyter notebook files in Ubuntu?

Recently the project jupyter added the mime-type to the ipynb files: application/x-ipynb+json, and I'd like to launch easily these files without having to allways launch the terminal command: cd /...
4
votes
4answers
372 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/...
0
votes
0answers
453 views

file -i test.xlsx returns application/octet-stream instead of real mime type

$ file -i import_test.xlsx import_test.xlsx: application/octet-stream; charset=binary The mime type should be "application/zip" but the command returns "application/octet-stream". This is working in ...
10
votes
1answer
757 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 ...
1
vote
1answer
514 views

xls/xlsx extentions not associated properly (considered as archives)

For some reason, xls/xslx files are associated with file-roller app (for archives) and cannot be associated separately with WPS. As I understand, these extentions are same MIME types with different ...
5
votes
1answer
1k 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 ...
0
votes
0answers
21 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 ...
70
votes
7answers
17k views

Do file-extensions have any purpose (for the operating system)?

Linux determines the type of a file via a code in the file-header. It doesn't depend on file-extensions for to know which software is to use for opening the file. That's what I remember from my ...
1
vote
0answers
172 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 ...