Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
4 votes
1 answer
290 views

Kubuntu doesnt' differentiate *.3mf and *.zip files

I can't set different programs for opening the mentioned filetypes in Kubuntu 22.04. I want to open *.zip files with ark and *.3mf files with Ultimaker Cura. When I try to change the default program ...
reneas's user avatar
  • 195
3 votes
1 answer
98 views

How to find what icon file nautilus is choosing to display?

I'm trying to set an icon association for a mime-type, but Nautilus is displaying a blank icon. How can I find which icon file Nautilus is choosing to display (the path to this blank icon)? Relevant ...
jrom's user avatar
  • 51
2 votes
1 answer
128 views

How to set the icon for a file extension, in a portable way, without sudo

I am creating an app that wants to install an icon for an application-specific extension (.crystalopen), in a way that works not just on Ubuntu/GNOME but also is portable to other desktop environments ...
David Foster's user avatar
0 votes
0 answers
31 views

Same file extension registered for different mime-types

I have a my file extension as .xyz and I have it registered for my mime type(ex:myMime) in the .xml file. Now I was unaware that the same extension is already been registerd for some other mime type. ...
Vipul Gupta's user avatar
0 votes
0 answers
219 views

Custom mime-type added via `.mime.types` not recognized

At the header of /etc/mime.types it says: Users can add their own types if they wish by creating a ".mime.types" file in their home directory. Definitions included there will take ...
Hyperplane's user avatar
0 votes
2 answers
192 views

File Association on Ubuntu 20.04 not working

I m trying to launch my application using xdg-open myFile.axsd. This is my StartupLinux.desktop file: [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Terminal=true MimeType=application/x-...
Vipul Gupta's user avatar
2 votes
0 answers
708 views

The databases in /usr/share/applications cannot be updated

I m trying to perform File association to register my custom file extension for my application(ex: if I do xdg-open myFile.myExtension, it should launch my app). I m following this link to do it. I ...
Vipul Gupta's user avatar
0 votes
1 answer
269 views

Help configure `mimeapps.list` to open gedit instead of gnome-text-editor?

On Ubuntu 23.04, I have installed Gedit alongside the default Text Editor (gnome-text-editor). I want to keep gnome-text-editor, but I would like most text files to open in gedit. I have added the ...
Enterprise's user avatar
  • 12.4k
5 votes
2 answers
240 views

The system does not differentiate between text and Arduino files

I use ubuntu 22.04 LTS with Gnome 42.5 on wayland. I have installed the latest version of the Arduino IDE (an .AppImage file). My problem is that when I have to open the sketches from the file manager ...
sim.dll's user avatar
  • 51
0 votes
1 answer
174 views

Wrong MIME type and icon for a file in Nautilus

I am writing a GUI application in Python using PyQt5, with the main application named main_app.py. Despite being simply a Python script, and file -i main_app.py returning the correct MIME type text/x-...
Arducode's user avatar
2 votes
1 answer
207 views

How to use hexadecimal code as a magic value in mime-type file

I know to add a mimetype I must use a code like that: <mime-type type="audio/x-gtp"> <comment>GuitarPro file</comment> <glob pattern="*.gp5"/> </...
Magenta's user avatar
  • 91
2 votes
0 answers
613 views

Is there a GUI-based MIME-type editor?

I remember seeing on some other distro this file type editor. What it had was a table, containing MIME types, their associated names (e.g. text/plain would show as "plain text document"), ...
Kami-kun's user avatar
1 vote
0 answers
206 views

Manually change Okular backend when/after opening a file

Okular has problems detecting Markdown files. For example (adapted from https://bugs.kde.org/show_bug.cgi?id=430538#c9) the following two files, for which only the second one is rendered as Markdown (...
Marijn's user avatar
  • 171
0 votes
1 answer
128 views

Xournal++ file extension gets associated with gzip

I installed xournal++ on kde plasma kubuntu 20.04(LTS) by snap. All went well except the file extension .xopp got associated with gzip. I removed the snap version and reinstalled via deb. The problem ...
pasmon 79's user avatar
2 votes
0 answers
318 views

Set default application for mime type on deb file

I create a deb package using dpkg-deb on Ubuntu 20.04, in myApp.desktop I added a MimeType=text/plain;, but is-it possible to set myApp to open by default the file of mime type text/plain ? I need it ...
pol9595's user avatar
  • 21
6 votes
2 answers
733 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 ...
HolyBlackCat's user avatar
3 votes
1 answer
1k views

mimetype not identifying pdf files: mime hell

I have never had issues with opening pdf files until recently. Then, I wanted to readup on the xcolor package for TeX and entered the following command: texdoc xcolor This has always worked, opening ...
Daniel Doherty's user avatar
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 ...
chronos00's user avatar
  • 691
1 vote
1 answer
129 views

Permissions makes libreoffice go in a crash-loop when opening from terminal

I am having some permission issues with libreoffice that I just don't have the technical provess to understand. ISSUE when I run localc directly from terminal, it goes into a loop: the program crashes ...
emilBeBri's user avatar
  • 234
2 votes
1 answer
2k views

WPS-Office messing up mime types associated with Office documents

After installing WPS-Office the mime type for DOCX files is set to application/wps-office.docx (for instance the mime type reported by this command gio info document.docx is standard::content-type: ...
Vlax's user avatar
  • 171
1 vote
0 answers
540 views

How to set LibreOffice as the default app to open Pages documents

Since LibreOffice can open and edit Pages documents, I would like to set LibreOffice as the default app to open Pages, Numbers, and Keynote documents. For the sake of this question, I will refer to ...
2br-2b's user avatar
  • 113
1 vote
1 answer
396 views

Shutter shows a broken icon on Ubuntu Mate 20.04

An issue has been reported about a GTK app (Shutter) not showing a tray icon on Ubuntu Mate 20.04 with some icon themes (most probably those which don't provide a corresponding icon themselves so the ...
Photon's user avatar
  • 405
1 vote
0 answers
35 views

Different default programs for viewing and editing files?

Wouldn't it be nice if, say, when selecting a file in nautilus (or any other any file manager), hitting enter would open it with a primary default application, while hitting shift+enter would open it ...
J. Brown's user avatar
0 votes
0 answers
26 views

Where can I find a docu about available mime file types [duplicate]

In the file /etc/mailcap are stored different mime file types like application/vnd.oasis.opendocument.graphics; application/vnd.oasis.opendocument.graphics-template; application/vnd.oasis....
nobody's user avatar
  • 5,507
2 votes
2 answers
2k views

How to add an icon for a file type .m (or any specific extension; Ubuntu 20.04)

I am working with MATLAB most of my time and I'd be happy to visually differ code files (.m), data files (.mat), figures (.fig). Quite an obvious thing that turns to be pretty peculiar. Here I am now: ...
Igor Izyurov's user avatar
0 votes
1 answer
43 views

What is the Mime type to display notifications?

I want to replace the ubuntu notification box. What I mean by "notification box" is the little popup that shows up when I change my music on spotify, for example. From what I can tell the OS ...
Icaro Mota's user avatar
26 votes
6 answers
48k 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 ...
AtomX's user avatar
  • 491
1 vote
0 answers
297 views

Created a MIME type but files with that extension are not registering properly

I've tried following the instructions listed here and the source originally referenced in that post (7 years ago for 12.04 LTS). I've tried... Editing /etc/mime.types directly. text/kivy-text ...
J N's user avatar
  • 21
2 votes
0 answers
752 views

update-mime-database is the bottle neck of apt intall now, any workaround?

for ex. sudo apt install gthumb will spend a small time doing everything else. When it calls update-mime-database /usr/share/mime it spends more than 10 minutes!!! I wonder if I could install ...
Aquarius Power's user avatar
2 votes
1 answer
702 views

All files open in browser

Description All files, no matter their type, and no matter what application I associate with the type, open with my default browser (Firefox), which then asks me to choose an application. This is very ...
IanS's user avatar
  • 61
4 votes
2 answers
6k views

`xdg-open` does not open files in the preferred applicaton

xdg-open does not work as expected. It opens most my files in browser, directories in my code editor(VS code) and plain text files using less. It also throws this error message, $ xdg-open $HOME xdg-...
Akash Karnatak's user avatar
5 votes
0 answers
3k views

Icons put in /usr/local/share/icons/hicolor/apps

I want to create a new desktop entry and a new MIME type for an app called FreeFileSync for all users. I read that it recommends to do in directory /usr/local/share. More precisely, the app recommends ...
Bob's user avatar
  • 208
7 votes
1 answer
565 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/...
Quasímodo's user avatar
  • 2,027
4 votes
1 answer
867 views

Set default application by extension not mimetype

Is it possible to set the default application to open a file by extension rather than mimetype? MuseScore saves its files as .mscz files, which are actually just zip-archives containing the data of ...
Lu Kas's user avatar
  • 307
1 vote
1 answer
35 views

Is there a way to associate certain types of hyperlinks with a browser other than the default one?

I would like certain hyperlinks to open with another browser (Chromium) instead of my default browser (Firefox). Is there a way to associate certain domains or sub-domains to Chromium instead of ...
To Do's user avatar
  • 15.6k
3 votes
0 answers
1k views

shared-mime-info

I'm running Ubuntu 20.04 with Gnome Extensions on an ASUS lap-top. On a few occasions recently when updating using the "In built" Software Updater the install hangs on Processing triggers ...
hal_v's user avatar
  • 377
0 votes
0 answers
2k views

Why is the xdg-mime script not found when attempting to install a new MIME type?

I've been running Ubuntu Budgie 20.04 for a few months now (quite smoothly, I might add). That said, a couple days ago I used the “xdg-mime” script to register a MIME type and associate it with my own ...
Barry's user avatar
  • 21
3 votes
1 answer
174 views

Make Gimp default for xcf files, not Krita

The default application for xcf is krita, not gimp. How do I change this? I see this in the MIME Type Editor: Edit:
Al Lelopath's user avatar
1 vote
0 answers
76 views

apt install program without modifying file associations

Certain programs when I install them seem to believe they can open a large number of filetypes. Xournal is was a particularly extreme example in Kubuntu 16.04. In Kubuntu 20.04 imagemagick display ...
Julian Stirling's user avatar
2 votes
1 answer
56 views

Recoll. What is the difference between "mime" and "rclcat"?

I'm trying to figure out what is the difference in Recoll between "mime", "rclcat" operators. As I see they both define the type: "rclcat:text" and "mime:text"....
Daria's user avatar
  • 21
3 votes
1 answer
292 views

Firefox opens Profile Directory with SMPlayer

Each time I go to about:support and click on "Open Directory", Firefox opens it with SMPlayer and then mpv/mplayer complains about : Playing: /home/sebastien/.mozilla/firefox-esr/empty6/...
SebMa's user avatar
  • 2,381
4 votes
1 answer
2k views

How to set default application based on file extension, not mime type?

I have files with extensions .txt, .sln and .csproj, they all have mime type text/plain. But they should be opened by different programs. .txt - by Vim, .sln and .csproj - by Rider. How can I achieve ...
Andrii Siriak's user avatar
2 votes
1 answer
3k views

Assign an icon to a custom mimetype

I tried to create a custom mimetype (text/graphml+xml) by creating the file ~/.local/share/mime/packages/graphml+xml-mime.xml with this content: <?xml version="1.0" encoding="UTF-8"?> <mime-...
Ninguém's user avatar
6 votes
1 answer
810 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 ...
Marcus's user avatar
  • 2,495
2 votes
0 answers
142 views

No files will open from Nautilus

Whenever I double-click a file in Nautilus it does not open. See below screenshots for .pdf and .png files. It does show the icon for document viewer for the .pdf file, but it still displays the ...
Jordan Donovan's user avatar
0 votes
1 answer
2k views

How "file --mime-type path" works for a file wich has no extension

To find a files mime type which we don't know we will use file command with --mime-type argument. We know it is showing results based on given file paths extension(such like text/x-python for *.py). ...
Newtron Malayalam's user avatar
1 vote
1 answer
85 views

Firefox opens clean window from application

When I open a link from another application, like Slack or an IDE, Firefox opens a new window without any of my extensions installed or enabled. It also does this when there is a Firefox window ...
Jelle de Fries's user avatar
0 votes
1 answer
147 views

Forcing gedit to recognize .kv files

On Ubuntu, the language that defines syntax highlighting for kivy layout files is installed by default (or added automatically when installing kivy). The problem is, in gedit, I have to manually ...
BLUC's user avatar
  • 167
2 votes
0 answers
318 views

How to change the type "text/plain" in non .txt files

I have Ubuntu 18.04 I have a program called "transcribe!" (software to reproduce and modify audio) that can open .xsc files. When I make the association of the file type .xsc to Transcribe (...
Joan's user avatar
  • 21
1 vote
1 answer
88 views

How to open a file with a determined application even when the type is opened by default by another application?

Context Okular is a PDF reader with support to annotations, bookmarks, etc. When I want to save the PDF with the annotations and bookmarks embedded, Okular saves a application/zip file. When I open ...
Igorzovisk's user avatar

1
2 3 4 5