The tag has no usage guidance.

learn more… | top users | synonyms

4
votes
2answers
2k views

How to set the Linux Mint desktop environment to use a mime type?

As a extension to this question: How to make difference between .wxm (wxMaxima) and .c files in Linux Mint? I'm using Linux Mint. I created a mime type. Now I want the desktop environment to use it. ...
2
votes
0answers
162 views

MIME type changes if file edited in *nix systems

I have an excel file created in Windows machine. If I check MIME type with file -b --mime users.xlsx the result is application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=binary ...
2
votes
2answers
91 views

Something like a symbolically linked file, but with change details attached?

Is there a file type or method for using files in which certain files look and behave like symbolically linked files, but contain extra meta information for changing the data when they are read? ...
1
vote
0answers
24 views

Configure nautilus icon for new mime type

How does nautilus find the icon for a given mimetype? I have just registered a new mimetype for Umlet on my system. Additionally I added an icon with using: xdg-icon-resource install --novendor --...
1
vote
0answers
13 views

MIME RSA encryption

i have this scheme how can i use session-key in MIME to encrypt the message? i used this command but i don't think it is correct openssl enc -e -des3 -salt -in MSg_sign.txt -out session.txt can ...
0
votes
1answer
17 views

XDG resolves filename as text/plain

I have a MIME definition file which is installed as part of a package: $ rpm -ql virt-viewer | grep mime /usr/share/mime/packages/virt-viewer-mime.xml $ cat /usr/share/mime/packages/virt-viewer-mime....
2
votes
1answer
234 views

Files are opened by wrong applications if opened from a number of programs

History: I had problems with mime associations under Firefox. Firefox opened downloaded files with wrong programs. I deleted ~/.local/share/applications/mimeapps.list and now it works. Now I noticed ...
48
votes
7answers
4k views

How are file types known if not from file suffix?

I would like to know how file types are known if filenames don't have suffixes. For example, a file named myfile could be binary or text to start with, how does the system know if the file is binary ...
0
votes
1answer
39 views

Easy Way to Wrap CRON Output in HTML PRE?

I use Gmail and every so often I have to hack it back in that text/plain email should be rendered in a monospace font. This makes it much easier to skim system-generated reports, &c. The problems ...
4
votes
5answers
2k views

How to use Emacs to recognize and automatically open GPG encrypted file in ASCII armored format?

gpg -ca passwords.txt create encrypted ASCII file passwords.txt.asc. Emacs open the file as a normal text file: -----BEGIN PGP MESSAGE----- Version: GnuPG v2.0.19 (GNU/Linux) jA0EAwMCkIp3+...
1
vote
2answers
783 views

How to add a software to the list under “open with” other applications in Linux Mint 16?

I want to add a software to the "open with" other applications list that drops down after clicking on a photo to open. I installed Photoscape on my Linux Mint 16 system but it does not show in the ...
2
votes
1answer
167 views

How to set an icon for custom mimetype in Linux Mint Mate?

I'm using Linux Mint 17.2 MATE I have a problem assigning an icon for custom (newly created) file type. My task: To set new double-click action and new icon for *.session files. My sequence of ...
3
votes
1answer
503 views

Open .desktop files in text editor by default

I wonder if it's possible to open files with the .desktop suffix in a text editor of choice by a simple double-click in a file manager. Even assigning the corresponding MIME type to a text editor with ...
0
votes
0answers
51 views

Front-end to `~/.config/mimeapps.list`

SOLVED: Apparently, Xfce does not use ~/.config/mimeapps.list anyway, because even though ~/.config/mimeapps.list names Firefox as the default browser, links open in Chromium. Is there a front-end ...
1
vote
0answers
46 views

How to ignore mime type for maff file extension?

I have this Mozilla Archive Format, with MHT and Faithful Save addon installed with Iceweasel on debian 8.3 jessie stable. The addon is useful in saving webpages into single file with extension maff. ...
1
vote
0answers
65 views

How to preserve mime type in CUPS forwarding?

I installed a small CUPS printer which accepts only application/postscript and converts this into a bitmap. Using a generic postscript printer driver I can directly print to this device without ...
8
votes
4answers
5k views

How to remove Notepad from the applications list?

After installing Wine, Notepad has became a default application to open unknown textual files by double click. I'd like to eliminate this behaviour and remove Notepad from the list of applications ...
1
vote
0answers
511 views

Is there a graphic tool to add new url schemes like XX://?

I would like to add a few url scheme, e.g magnet://, and add a simple mimetype for it. So that I would be able to handle these links within my browser. Is there any graphic tool I could utilize ?
2
votes
2answers
282 views

Using Evince instead of Okular for Alpine (MIME configuration for PDF viewers)

Within Alpine, if I hit enter on a PDF attachment, my system brings up Okular. I would prefer if it brought up Evince, because that's the PDF viewer I normally use. How can I do that? This is clearly ...
7
votes
2answers
9k views

How can I make chrome (stop asking to be) the default browser?

I am running Linux Mint Debian edition (essentially Debian testing) and the Cinnamon desktop environment. Every time I launch google-chrome it asks to become the default browser. I have told it to do ...
5
votes
2answers
928 views

What to do with a message/partial MIME type?

I used a copier/scanner to scan a document and email me the resulting image. It sent me several emails, each with a message/partial MIME attachment. mutt doesn't seem to understand these messages. ...
0
votes
1answer
115 views

MimeType Desktop entry for all image files

I want a desktop entry like MimeType=image/ETC to create a context menu action in Dolphin (File Manager in Linux Mint KDE) that would appear only for images. To the question "Is there a generic ...
4
votes
1answer
217 views

How does Linux detect mime type? [duplicate]

I have a PDF file with extension .pdf. If I remove .pdf - the file is still recognized as PDF file ($ file sample - output sample: PDF document, version 1.4.) What is the mechanism of filetype ...
2
votes
1answer
102 views

List mimetypes that default to a given .desktop file

I can list the mimetypes potentially handled by a .desktop file doing something like this: $ grep 'MimeType' /usr/share/applications/eog.desktop | tr ';' '\n' MimeType=image/bmp image/gif image/jpeg ...
3
votes
2answers
1k views

Given a mime-type get the corresponding file extension

I want to download a file using curl to a temporary directory with the appropriate extension. Currently I do something like this: tmp="$(mktemp -t 'curl')" curl -o "$tmp" http://example.com/...
3
votes
1answer
205 views

kioclient KMimeTypeRepository::parents: “/usr/share/mime/subclasses” refers to unknown mimetype “application/vnd.ms-excel…”

Whenever I open something with xdg-open in my new OpenSUSE 13.2 install, I am spammed by a sequence of warnings like $ xdg-open ./flask.wsgi kioclient(10634) KMimeTypeRepository::parents: "/usr/...
1
vote
2answers
103 views

name of binary vs. name in GUI

I wish I could title this better. An example seems the best way of making the point: In icedove>preferences>attachments, for 'JEPG image' one can select 'Image Viewer' or 'Use other ...'. It turns ...
2
votes
1answer
320 views

How does filetype determination by filename extension in addition to XDG spec (mimeapps.list) work

I'm trying to set the default application for R noweb files but fail to find the place where this is specified. The reason for this is that my file managers seem to determine the file type by filename ...
0
votes
1answer
698 views

Sending a HTML file (with images) as email body using command line

This seems like a basic question and there are variations of it. I have a ONE-COLUMN html file (let us call it status.html). I would like to send this file which has a few images as the BODY of an ...
8
votes
2answers
720 views

Finding a file type assuming wrong extension

I have an image archive I keep up. Sometimes, the sites I pull them from reformat the file while keeping the extension the same, most often making PNG images into JPG's that are still named ".png". ...
3
votes
1answer
1k views

How an application is chosen over others to open a particular filetype in Linux

Earlier my text/xml files were by default opened by firefox I think. Not sure of this because I do not remember exactly. Then I think I installed geany and then my text/xml files were always by ...
2
votes
2answers
876 views

file command apparently returning wrong MIME type

Why doesn't the following return text/csv? $ echo 'foo,bar\nbaz,quux' > temp.csv;file -b --mime temp.csv text/plain; charset=us-ascii I used this example for extra clarity but I'm also ...
3
votes
1answer
260 views

Why do desktop environments make custom xdg-open replacements?

Related to this answer on my previous question. So, XDG can handle it on its own: It can manage default applications - xdg-mime It can open file with associated application - xdg-open. Why do ...
5
votes
1answer
4k views

How do get an html file to open in preferred html application from command line on linux?

How do get an html file to open in preferred application from command line on linux? I have an xterm window open and an html file I want to do something like open test.html and that will start my ...
2
votes
2answers
518 views

Where does Nautilus get its file type description

I've created and registered some shared-mime-info files for custom file types. For example, in ~/.local/share/mime/packages I've added files like x-myokit.xml containing a mime type description, ...
0
votes
1answer
332 views

How can I fix my .html file association in Linux Mint 17?

PCManFM 1.2.0 and Caja 1.8.1. When I double-click an HTML document in Caja or PCManFM, it tries to open the document in Thunderbird. In Start -> Preferences -> Preferred Applications, Firefox is ...
5
votes
2answers
3k views

Gentoo default application for opening files

On my Gentoo box running without a desktop environment, every time I try to open a file the system tries to open it with Firefox. I understand that without a desktop environment "open file" cannot ...
4
votes
0answers
253 views

xdg-open just opens Nautilus [closed]

I'm running Fedora 20 with Gnome 3.12. Recently, I installed KDE via yum but decided to stick with Gnome. Ever since installing KDE, the xdg-open and gnome-open commands do not open files with the ...
2
votes
1answer
185 views

Lynx is trying to unzip my downloads

I am having a problem with the Lynx text browser. When I try to download a some tar.gz files, Lynx is not downloading it. It is putting it in a tmp directory and then trying to unpack it with the ...
28
votes
4answers
17k views

How to properly and easy configure `xdg-open` without any enviroment?

I'm using OpenBox window manager without any desktop enviroment. xdg-open behaves strangely. It opens everything with firefox. $ xdg-settings --list Known properties: default-web-browser ...
3
votes
0answers
595 views

Why are all files detected as application/octet-stream in nemo?

nemo sees all files as Binary (application/octet-stream), so these kinds of things happened: All files (.mkv, .mp4, .torrent, anything) lost their association to any program All .pdf files could not ...
3
votes
1answer
711 views

“file” command confusing C & C++

When using file to check some file types, I noticed that it seems to incorrectly label C++ files as C files: $ file User.* User.cpp: C source, ASCII text User.h: C++ source, ASCII text User.o: ELF ...
6
votes
1answer
303 views

What could cause strange behavior in file(1) command?

What could cause file(1) command to output application/msword application/msword (yes, twice in a row) as the mime type for some of the .doc files? Normally it prints just application/msword. If run ...
2
votes
1answer
717 views

Detect file-type with the help of magic-file and rename file-suffix accordingly

I have a folder (the iPhone Backup) with various files without a suffix. I want to run a batch process over these files, which detects each file's file-type (with the help of the magic-file database (...
2
votes
0answers
110 views

Why does xdg-open text_file differ from sudo -u me xdg-open text_file?

If I run the following command, the text file opens in my preferred editor (kate). $ xdg-open text_file However, if I try the following, where sparhawk is my username, I get several warnings, and ...
20
votes
4answers
3k views

Is there an “open with” command for the command line?

Does the command line have a way to get a recommended list of programs used to open a particular file, based on the file type? For example, a .pdf file would have an open with... recommendation using ...
1
vote
1answer
551 views

xdg-mime not behaving

I am trying to set the default application for magnet links using: ~ $ xdg-mime default deluge.desktop x-scheme-handler/magnet Checking this with grep -i deluge ~/.local/share/applications/* ...
1
vote
2answers
347 views

How to save “text/pdf” PDF files on the disk from an incoming mail in Mutt

I receive emails with PDF attachments that have the MIME type "text/pdf". This is obviously not good, but some mail clients are doing that... The problem is that saving such an attachment in Mutt ...
1
vote
2answers
349 views

`file` doesn’t show proper mime-type for .m2ts files

I need to define mime type of various video files and I got a problem with .m2ts files. Before I stumbled on this, I used file utility with -iL keys and parsed the output with sed. Today I found that ...
5
votes
1answer
468 views

How can I configure OpenBox session for opening files by mime type?

I've started using OpenBox and I really like it. But my chromium opens everything with firefox. Is there any fix for that? I'm looking for most lightweight solution, but also with easy and fast ...