2022 Developer Survey is open! Take 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
1 vote
0 answers
33 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 ...
user avatar
  • 11
6 votes
1 answer
353 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 ...
user avatar
3 votes
1 answer
131 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 ...
user avatar
0 votes
1 answer
624 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 ...
user avatar
  • 571
1 vote
1 answer
52 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 ...
user avatar
  • 204
1 vote
1 answer
428 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: ...
user avatar
  • 131
0 votes
0 answers
31 views

ubuntu 20.04 Gnome desktop strange behavior - Open with other application not working for pdf

I installed a snap package of wine application acrobat reader on my system and it broke "open with other application" option for pdf files. now openwith menu doesn't respond when it is ...
user avatar
  • 1
1 vote
0 answers
106 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 ...
user avatar
  • 113
1 vote
1 answer
94 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 ...
user avatar
  • 395
1 vote
0 answers
32 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 ...
user avatar
0 votes
0 answers
21 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....
user avatar
  • 4,206
1 vote
1 answer
360 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: ...
user avatar
0 votes
1 answer
28 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 ...
user avatar
9 votes
2 answers
12k views

How can I create 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 MimeTypes or an clear idea about running that kind of app on desktop entry. Does anyone knows how ...
user avatar
  • 281
1 vote
0 answers
77 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 ...
user avatar
  • 21
1 vote
0 answers
97 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 ...
user avatar
2 votes
1 answer
386 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 ...
user avatar
  • 51
2 votes
1 answer
2k 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-...
user avatar
5 votes
0 answers
968 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 ...
user avatar
  • 186
6 votes
1 answer
185 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/...
user avatar
  • 1,896
3 votes
1 answer
455 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 ...
user avatar
  • 168
1 vote
1 answer
21 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 ...
user avatar
  • 14.4k
2 votes
0 answers
884 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 ...
user avatar
  • 347
0 votes
0 answers
401 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 ...
user avatar
  • 11
3 votes
1 answer
124 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:
user avatar
1 vote
0 answers
60 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 ...
user avatar
2 votes
1 answer
34 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"....
user avatar
  • 21
3 votes
1 answer
203 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/...
user avatar
  • 1,467
4 votes
1 answer
1k 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 ...
user avatar
2 votes
1 answer
996 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-...
user avatar
4 votes
0 answers
358 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 ...
user avatar
  • 2,098
2 votes
0 answers
91 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 ...
user avatar
0 votes
1 answer
944 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). ...
user avatar
1 vote
1 answer
73 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 ...
user avatar
0 votes
1 answer
127 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 ...
user avatar
  • 167
2 votes
0 answers
262 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 (...
user avatar
  • 21
0 votes
1 answer
73 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 ...
user avatar
1 vote
1 answer
654 views

Escaping spaces in .desktop file Exec line with "bash -c"

I have a desktop file for a GTK application that I have created which has the following structure: [Desktop Entry] Version=1.0 Name=My GTK Application Comment=Desktop File Exec=bash -c 'sudo taskset -...
user avatar
  • 209
3 votes
2 answers
3k 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 ...
user avatar
4 votes
2 answers
2k views

How to change all file associations (MIME-types) of one particular application in KDE?

I have installed a closed source office suite called Freeoffice. Generally, I use Libreoffice for all my work and need Freeoffice only as a backup to check if there are any inconsistencies in ...
user avatar
  • 9,537
1 vote
0 answers
362 views

Associate custom icon to file extension

Problem: show custom icon for files with *.xyz extension (to be used in deb package) Adopted solution 0) Install a fresh ubuntu 19.04 on virtualbox 1) Create a new icon (xyz.svg and xyz.png 48x48) ...
user avatar
  • 151
3 votes
1 answer
919 views

Why does "MimeType=text/x-shellscript;" not work in this .desktop file?

OS: Kubuntu 18.04 The default file manager, dolphin, has the facility to use Service Menus, somewhat like Custom Actions in thunar and pcmanfm or Nautilus Actions. Quoting from here: In KDE-...
user avatar
  • 38.2k
2 votes
1 answer
256 views

How to open *.htm differently than *.html?

I'm trying to get *.htm files to open in a different application than for *.html (MIME Type text/html), as generally described in GNOME Help > Add a custom MIME type for all users. I've created /usr/...
user avatar
  • 143
1 vote
1 answer
715 views

How do I fix some broken thumbnail preview settings in Nautilus?

Okay, I wanted previews for psd files in Nautilus. So I tried the scripts found on this page: How to make Nautilus display .psd thumnails? This did not work, so then I found this maintained PPA, and ...
user avatar
3 votes
1 answer
193 views

Update-mime-database deletes .xml mime file

I'm still very much a novice, so please let me know if this has been asked before. I'm running Ubuntu 19.04. .ris files are plaintext files that can be imported into citation managers. I would .ris ...
user avatar
0 votes
1 answer
966 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 ...
user avatar
  • 5,459
1 vote
1 answer
832 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 ...
user avatar
  • 1,567
5 votes
2 answers
589 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, ...
user avatar
  • 1,921
3 votes
2 answers
2k 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?
user avatar
0 votes
1 answer
884 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/...
user avatar
  • 228