Questions tagged [mime-types]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
16 views

How do I set priority of which application opens a url schema (rdp://) in kde?

I have several applications installed that handles url schema rdp:// (for example, rdp://myadmin@1.2.3.4). These applications are Krdc and Remmina. I want such links to be opened in krdc, but they are ...
3
votes
2answers
44 views

File Provides Different Mime-types on Different Operating Systems

So I have a bash script that in part does the following: file -b --mime-type "$1" I then have logic to check if it is the expected type of file. if [[ $type == "application/gzip" ]]...
0
votes
0answers
14 views

How to add a command-line argument for mime-type default applications in KDE?

I want to register a software (XCrysDen) to a number of file type as the default application (that opens when I click the file). The thing is, the software needs a specific command-line option for ...
0
votes
0answers
31 views

Sending HTML with Mutt mangles the reply history badly; How can I make replies survive a call to Pandoc?

In mutt, I'm trying to write formatted emails, but the pre-processing step that converts markdown to HTML is mangling the previous messages. I'm using this answer to convert my messages to HTML. In ...
0
votes
1answer
9 views

show “detailed type” instead of “type” as default in nemo

I would like to differ between SVG, JPEG, PNG images in a folder. It is anoying to always change it, so I want to set "detailed type" instead of "type" as default.
0
votes
1answer
32 views

Sorry mime the second (mate-control-center vs. firefox)

My OS is Debian stretch (mate Desktop) Since about 2 years I have a problem with default setting for application browser(in mate-control-center) and firefox. whenever I let firefox set itselfs as ...
0
votes
1answer
38 views

messed up systemwide mime data base

In debian stretch (mate desktop) i messed up systemwide my mime data base. How can I restore it. Note I renamed first my /usr/share/mime/mimeinfo.cache. but the Problem is, I think it is broken. ...
0
votes
1answer
74 views

Make Firefox open app without first prompting to choose from window with one choice

No posted answer in StackExchange worked: they are years-old and pertain to very old versions of Firefox. EDIT: At first I posted about opening files from the downloads list. I later discovered I get ...
0
votes
0answers
10 views

xdg-mime not doing anything

Created an empty file in ~ called test.desktop. Ran xdg-mime default test.desktop inode/directory, which returned success (returned 0). After this, xdg-mime query default inode/directory returned caja-...
0
votes
0answers
20 views

How to properly use mailx to attach a file (not replace content)?

I am using $ mailx -V mailx (GNU Mailutils) 3.5 Copyright (C) 2007-2017 Free Software Foundation, inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free ...
2
votes
0answers
214 views

How to set all youtube links to open in mpv

I would like to set my system to open all links is mpv as default ie. I click link to youtube video in IRC, mumble, discord, signal etc. it opens in mpv. I have read through xdg-open and xdg-mime but ...
0
votes
2answers
668 views

Getting MP4 to play in Firefox in OpenSuse

I'm not sure since when, but MP4 videos are not playable anymore on Firefox. There's an error message in the Web-Console saying HTTP-Content-Type "video/mp4" is not supported. OS: OpenSuse ...
1
vote
0answers
84 views

xdg-scheme-handler doesn't open script with same terminal that launching it from a desktop menu does

I'm trying to set a x-scheme-handler URI for my python application. This application is launched via a shell script in /usr/bin. I've had a desktop file for a while, and it's worked fine, opening the ...
0
votes
0answers
14 views

Why is Chromium the default application for every MIME type?

I've configured a pretty standard Arch Linux desktop environment, and every file type I've tried so far (MP4, PDF, PNG, etc) opens in Chromium unless I configure some other program to open it. This ...
3
votes
1answer
170 views

How to register new mimetypes not available in xfce4-mime-settings so that they are recognized with xdg-open under XFCE4?

I am trying to register new mimetypes under XFCE4. In particular, I would like to register the protocol zoommtg so I can launch Zoom meetings from links in the webbrowser Chrome. Chrome will launch ...
1
vote
1answer
19 views

The most common commenting marks and mimetypes

I'd like to write a shell script to optionally view files without comments (which sometimes take a lot of space so that it becomes difficult to see the lines active in a config file, etc.) and this ...
0
votes
1answer
419 views

Executable binaries labelled as shared library files

After compiling software from source code, I can usually launch the compiled binary by double-clicking on it. Recently however, most of my compiled binaries are not responding to double-click, even if ...
10
votes
4answers
944 views

Removing files based on MIME types in linux

I'm quite a beginner to Linux and I'm having trouble removing files based on the mime type. Currently, I have a set of files on my Linux machine, and below are the types for a small subset. 0FiTahKc: ...
0
votes
1answer
57 views

help debugging thumbnailer script in nemo

I recently installed 'stl-thumb' as a thumbnailer plugin to the file managers, but I notice that it isn't converting all files with the .stl extension. Upon closer inspection using the shell 'file --...
1
vote
0answers
27 views

Is it possible to require both glob and magic specified in mimetype definition?

Given the following freedesktop shared-mime-info file: <?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info&...
2
votes
0answers
33 views

Is it possible to use unicode character within glob pattern in mime definition file?

I'm issuing the command xdg-mime install nv-custom.xml - using this file: <?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns="http://www.freedesktop.org/...
1
vote
1answer
62 views

Where does xdg-mime save its per-user default app settings?

Where does xdg-mime save the settings I make with commands which set the default app to handle MIME types? i.e. commands such as: xdg-mime default evince.desktop application/pdf ? I'm using SLES (...
1
vote
1answer
375 views

How to set MIME priority for applications?

Image types (e.g. image/jpeg, image/png etc.) are widely supported by ImageMagick and Eye of GNOME, so the only way I see to set priority for EOG is to check it's supported formats in .desktop and ...
4
votes
0answers
279 views

Debian Buster XFCE: make PCManFM default, including for Open a Directory, as in Chromium - downloads - show in folder

Using Debian Buster XFCE. XFCE is married to Thunar, so cannot remove thunar. I would prefer Chromium (or any other app that might choose to open a directory), as when viewing Downloads and clicking '...
3
votes
1answer
407 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-...
0
votes
0answers
79 views

Cannot make xdg-mime query return chosen browser

After maybe one year of using Chromium as the default browser, my Linux switched spontaneously to using Firefox (probably because of some updates). I want to switch back. Based on this answer, I ...
3
votes
1answer
1k views

How to associate a new (custom) mime type with files (based on file extension)?

This is part 2 of How to install a new (custom) mime type on my Linux system using CLI tools? Using the steps in the accepted answer at the above question, I created the following mime-type mx-...
2
votes
1answer
396 views

Click link to download a file, but KDE tries to open it with an application. How to download instead?

I'm running Riot.im (an Electron desktop app) in KDE (on Arch Linux). For many file types, when I click a link to download the file in Riot, the file is downloaded as expected. I am presented with KDE'...
4
votes
3answers
741 views

KDE is not saving a mime-type file association

I'm running Arch Linux and KDE and I am exploring how mime-types are behaving (and misbehaving) on my system. Consider this mime-type file association. The following console output shows that I have ...
2
votes
1answer
60 views

Digging deeper into differing mime-type associations

I would like to gain a deeper understanding of mime-types. So far I understand the following thanks to @munzir-taha It is normal to have different mime-type file associations on different systems, ...
10
votes
1answer
1k views

How to install a new (custom) mime type on my Linux system using CLI tools?

I would like know the full steps to create and register a new custom mime type on my system. If it matters, I am running KDE on Arch Linux. The steps should include writing the XML file and ...
4
votes
1answer
1k views

How to completely remove a mime association from my Linux system using the CLI tools?

I'm running Arch Linux and KDE. I have installed Arch KDE on several devices and in the usual case there is no specific mime-type association for .pub files (which are public keys in my case). They ...
2
votes
1answer
622 views

What is the purpose of mime.cache files?

What is the purpose of the mime.cache files on an Arch Linux KDE desktop system? The Arch Wiki discusses mimeapps.list files, but does not mention mime.cache. On my system, there is only one ...
1
vote
5answers
310 views

XDG_DATA_DIRS contains duplicate paths; How to fix?

I'm running Arch Linux and KDE and curious to learn about mime type file associations. While investigating my system I noticed this issue: $ echo $XDG_DATA_DIRS /usr/share:/usr/share:/usr/local/...
4
votes
1answer
1k views

What is the procedure to update mime type associations in KDE?

I would like to revert to the default mime definitions at the system level, and also rebuild my local mime database. I am running Arch Linux KDE. The Arch Wiki says, If you use a desktop ...
5
votes
1answer
351 views

Where is /usr/share/applications/defaults.list on Arch?

Where is /usr/share/applications/defaults.list on Arch?
0
votes
1answer
13 views

how to change k4dirstat folder browsing action?

Changing the cleanup action "Open a file browser" directly on the settings won't be saved. So, ~/.config/k4dirstatrc will not store anything about cleanup actions (not implemented?). So, on next run ...
0
votes
0answers
45 views

Text files open with pdf reader instead of Sublime

I have Ubuntu 16.04. For some reason, the way text files were opened changed a few days ago. Before, all of them opened with Sublime. Now, they open with a pdf reader. Text files have "Python File (no ...
1
vote
1answer
312 views

MIME type text/html: how & where defined?

I've asked a related question on AskUbuntu (How to open *.htm differently than *.html?) with no interest yet, so I'm addressing the same issue with a more fundamental question. I cannot find how and ...
3
votes
2answers
887 views

How do I add a new mime type for file -i?

On our server, we have some issues with mime types. I need to add the mime type for Microsoft Publisher files, so that file -b -i theFile.pub prints application/x-mspublisher to the command line. I ...
2
votes
0answers
281 views

Automatic generation of mimeapps.list database

In a previous question I enquired about manually setting default applications for different mime types. Other than use tools one among several tools, it boiled down to add an entry to ~/.config/...
1
vote
1answer
67 views

How reclaim pdf file type from FoxitReader?

I installed FoxitReader. Now when I look at the detailed listing in my file browser (Thunar), it displays the filetype of any pdf as 'FoxitReader document'. How do I get it to display simply as PDF?
0
votes
1answer
91 views

Remove MIME description from mutt pager

Like described here, mutt displays an indicator in the message pager for the attachments displayed, for example: [-- Attachment #1: Description --] [-- Type: text/plain, Encoding: 7bit, Size: 10000 --...
3
votes
1answer
548 views

Open a file in the default text editor programmatically

I'm writing a program and I need to implement opening a particular file in a text editor. The file type has a different association by default (it's associated to the program itself), so calling xdg-...
0
votes
1answer
1k views

Mime type for all files (*.*) Linux?

How to set ALL mime types to open with the same program, like this: xdg-mime default someprogram.desktop */* In a single command, in others words. xdg-mime default <my program> <ALL MIME ...
1
vote
2answers
1k views

Config files for mime settings

I have an Aweseome-wm + xfce system. Where does xfce4-mime-settings stores its values? In particular as regards default apps. The GUI values are different for me from those on ~/.config/mimeapps....
3
votes
2answers
961 views

How does 'Open with' a custom executable in Linux work?

I have a file called foo.txt. I want to associate my own program with the mime-type .txt so that my program opens a terminal and shows the contents of foo.txt as standard output. I would prefer Ruby, ...
1
vote
0answers
203 views

How to ensure the text file will be read as Markdown file by an external user?

Mime type is set for md extension in the following file: $ cat /etc/mime.types | grep markdown text/markdown md markdown But, on checking the Mime type of .md file ...
2
votes
0answers
126 views

Chrome opens a second Transmission window with magnet links. How does it check if there is a transmission open or not?

The magnet link is correctly set with xdg-mime to open in transmission, and also in .local/share/applications/mimeapps.list. If transmission is NOT running, everything works as expected (click a ...
3
votes
1answer
874 views

How to set Midnight Commander as the default File Manager?

I want graphical applications such as transmission-gtk and Firefox to open up directories with Midnight Commander through new instances of my default terminal emulator running on Debian. I've noticed ...