Questions tagged [mime-type]
MIME type is a standard way that computers use to refer to the file-type/format
53
questions with no upvoted or accepted answers
6
votes
1
answer
764
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 ...
6
votes
0
answers
907
views
What is the replacement for AssoGiate?
During the update to Saucy, the AssoGiate module is removed as it has been declared obsolete.
I can find no replacement for the editor of the MIME file types database which is compatible with UBUNTU ...
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 ...
5
votes
1
answer
1k
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 ...
5
votes
0
answers
200
views
"Launch Dropbox–Website" opens in my editor instead of the browser
When I use the "Dropbox–Website starten" entry from the Dropbox App menu (I guess this would be "Launch Dropbox–Website" in English), a file is generated at /tmp/….html and opened in my editor (...
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 ...
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 ...
3
votes
1
answer
327
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 ...
3
votes
0
answers
324
views
How to launch only shell scripts from Nautilus
This is related to questions like “How do I run executable scripts in Nautilus?” or “How to execute a script just by double clicking like .EXE files in Windows?”.
I would also like to have shell ...
3
votes
0
answers
742
views
Invalid MIME types
So each time I try to install a new package, I get an error saying:
Error in file "/usr/share/applications/AESCrypt.desktop": "all/allfiles" is an invalid MIME type ("all" is an unregistered media ...
2
votes
1
answer
102
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 ...
2
votes
0
answers
602
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 ...
2
votes
0
answers
562
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"), ...
2
votes
0
answers
305
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 ...
2
votes
0
answers
713
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
0
answers
139
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 ...
2
votes
0
answers
304
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 (...
2
votes
0
answers
622
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/...
2
votes
0
answers
236
views
ubuntu think my C/C++ source file is plain file
Today I suddenly find that when I create a C or C++ source code file like using vi or touch
touch test.c
The Ubuntu don't think it is source code file and recognize it as plain text. And when i use ...
2
votes
0
answers
802
views
Open files only opens terminal instead of file browser
I have a problem: For some reason, if I open a file from inside an application (such as in Firefox "Open downloaded file in folder", for example), it only opens gnome-terminal in the home directory, ...
2
votes
0
answers
154
views
Open html file with gedit from Unity Dash (Files lens)
I search a html file wit super-f.
The file was found and Ubuntu displays these choices:
open folder
open file
email file
The above items where translated from german back to english.
If I chosse "...
2
votes
0
answers
2k
views
How can I open gliffy diagrams by double clicking?
I installed a program "Gliffy" as a Google Chrome app. It saves it's diagrams as *.gliffy files. I'm wondering if I could set things up so that I can double click on this *.gliffy file and it opens ...
2
votes
0
answers
852
views
Confusion for mime files: magic, magic.mgc, magic.mime
I'm using Ubuntu. I'm trying to use ruby gem 'shared-mime-info' for an application I'm writing.
I understand that magic.mgc is a compiled version of magic file which has magic number definitions for ...
1
vote
0
answers
189
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 (...
1
vote
1
answer
128
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 ...
1
vote
0
answers
503
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 ...
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 ...
1
vote
0
answers
291
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
1
answer
34
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 ...
1
vote
0
answers
75
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 ...
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 ...
1
vote
0
answers
746
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)
...
1
vote
1
answer
1k
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 ...
1
vote
1
answer
1k
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/...
1
vote
1
answer
193
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 ...
1
vote
1
answer
81
views
File associate by MIME subtype / extension
I'm writing files in markdown format using the markdown editor Remarkable and I name these files with the extension *.md. I'd like to associate the these files with Remarkable but if I do so the ...
1
vote
0
answers
140
views
How to force Nautilus to check file extension before file content for default application
Nautilus first checks the file content before the file extension to decide which mime type to use.
I have a bunch of raw file with different first few bytes: Nautilus doesn't follow the type ...
1
vote
1
answer
1k
views
xls/xlsx extentions not associated properly (considered as archives)
For some reason, xls/xslx files are associated with file-roller app (for archives) and cannot be associated separately with WPS.
As I understand, these extentions are same MIME types with different ...
1
vote
0
answers
302
views
Recognize file type by content
In Ubuntu 12.10 there was a nice app called Assogiate. It has ability to add new mimetype, add recognition by content of file and new icon, all done by mouse clicking. Now assogiate disappears from ...
1
vote
0
answers
52
views
Every file opens the "Open With..." dialogue after updating mime types!
Not only that, but the open with dialogue is empty!
This is my first question here, so if I made a mistake, please tell me!
Some info:
Kubuntu 15.04 (KDE/Openbox)
1
vote
0
answers
177
views
Running an installation routine of a third party programm on Ubuntu 14.04
Please help me with the following problem:
I try to install a third party program install.bin that is from mime type application/octet-stream.
Typing sudo ./install.bin; echo $? in the terminal - ...
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.
...
0
votes
0
answers
192
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 ...
0
votes
1
answer
124
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 ...
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 ...
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 ...
0
votes
0
answers
103
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 ...
0
votes
0
answers
67
views
Deleted Gstreamer codec and can't play mp3 or mp4 files
I had accidentally deleted one of the G-streamer codec and now i can't play any mp3 or mp4 file. Whenever, I try to open one of these files it gives a message of "Additional MIME type require". Please ...
0
votes
1
answer
73
views
Nemo sort php files and javascript as type program
Nemo and Nautilus sort PHP files and JavaScript files as type "Program".
How can I modify this feature, so I can sort JavaScript as JavaScript and PHP as PHP?
0
votes
0
answers
1k
views
file -i test.xlsx returns application/octet-stream instead of real mime type
$ file -i import_test.xlsx
import_test.xlsx: application/octet-stream; charset=binary
The mime type should be "application/zip" but the command returns "application/octet-stream". This is working in ...