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
0answers
29 views

How does the mime-type system work with the snap-installed applications?

I installed wps office from snap source. Things work ok except that all associated file-icons (docx/xlsx/pptx, etc) are not set what they should be, and no wps items are registered in the mime-type ...
1
vote
0answers
32 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: ...
0
votes
1answer
19 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 ...
1
vote
2answers
255 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 ...
0
votes
0answers
34 views

Change file extension to reflect its mime-type

I have lots of files in different subdirectories. Their filenames and extensions are random. Is there any way (perhaps a bash script or some program) to add a correct extension to every single file ...
1
vote
0answers
30 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 ...
1
vote
0answers
41 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 ...
2
votes
1answer
201 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 ...
1
vote
1answer
363 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-...
4
votes
0answers
302 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 ...
6
votes
1answer
131 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/...
2
votes
1answer
144 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 ...
2
votes
1answer
17 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 ...
0
votes
0answers
17 views

How do you associate separate icons for an executable and for the files it creates?

I am assisting with icons and documentation for an open-source app which I'll call Chimpsky. Chimpsky creates XML documents, with an *.mky extension, which display as flowcharts modelling a dynamic ...
0
votes
0answers
69 views

How do I install mime types so that files show the correct icon in Nautilus and launch app when double-clicked?

History I am working on a dev project for a new app which models various dynamic processes in economics. My job is to supply NEW icons for the executable file and for the document files it produces. ...
0
votes
0answers
67 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 ...
3
votes
1answer
88 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:
1
vote
0answers
44 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 ...
0
votes
0answers
19 views

How do I set up mime types for the Minsky application?

Ubuntu 18.04.4 LTS Bionic Beaver Minsky 2.19.0-beta.17 I have installed an open-source dynamic-systems simulation-builder called Minsky. Minsky stores simulation models in *.myk files, which are well-...
2
votes
1answer
21 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"....
3
votes
1answer
119 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/...
4
votes
1answer
615 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 ...
2
votes
1answer
387 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-...
4
votes
0answers
175 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 ...
2
votes
0answers
66 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 ...
0
votes
1answer
578 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). ...
1
vote
1answer
61 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 ...
0
votes
1answer
92 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 ...
2
votes
0answers
188 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 (...
0
votes
1answer
57 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 ...
0
votes
1answer
353 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 -...
2
votes
1answer
2k 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 ...
4
votes
2answers
1k 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 ...
1
vote
0answers
216 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) ...
3
votes
1answer
521 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-...
2
votes
1answer
208 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/...
1
vote
1answer
551 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 ...
2
votes
0answers
143 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 ...
0
votes
1answer
654 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 ...
1
vote
1answer
552 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 ...
5
votes
2answers
385 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, ...
3
votes
2answers
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?
0
votes
1answer
794 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/...
2
votes
1answer
1k 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?
5
votes
0answers
276 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 ...
2
votes
0answers
378 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/...
8
votes
2answers
910 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
181 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
110 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
69 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 ...