Questions tagged [mime-type]
MIME type is a standard way that computers use to refer to the file-type/format
204
questions
0
votes
2
answers
54
views
File Association on Ubuntu 20.04 not working
I m trying to launch my application using xdg-open myFile.axsd.
This is my StartupLinux.desktop file:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=true
MimeType=application/x-...
2
votes
0
answers
51
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 ...
0
votes
1
answer
31
views
Help configure `mimeapps.list` to open gedit instead of gnome-text-editor?
On Ubuntu 23.04, I have installed Gedit alongside the default Text Editor (gnome-text-editor).
I want to keep gnome-text-editor, but I would like most text files to open in gedit.
I have added the ...
1
vote
0
answers
30
views
The system does not differentiate between text and Arduino files
I use ubuntu 22.04 LTS with Gnome 42.5 on wayland. I have installed the latest version of the Arduino IDE (an .AppImage file). My problem is that when I have to open the sketches from the file manager ...
0
votes
1
answer
45
views
Wrong MIME type and icon for a file in Nautilus
I am writing a GUI application in Python using PyQt5, with the main application named main_app.py. Despite being simply a Python script, and file -i main_app.py returning the correct MIME type text/x-...
0
votes
0
answers
99
views
How to configure the mime type for magnet links?
In reference to a related question, how is transmission configured as the default?
nicholas@mordor:~$
nicholas@mordor:~$ xdg-mime default deluge.desktop x-scheme-handler/magnet
nicholas@mordor:~$
...
0
votes
0
answers
30
views
Using Hexdump to Read Hexadecimal Headers
I am using a file-carving tool to recover lost TXT and SRT files. According to the information I have, TXT UTF-8 has the following signature:
EF BB BF
And SRT has this signature:
31 0A 30 30
...
2
votes
1
answer
68
views
How to use hexadecimal code as a magic value in mime-type file
I know to add a mimetype I must use a code like that:
<mime-type type="audio/x-gtp">
<comment>GuitarPro file</comment>
<glob pattern="*.gp5"/>
</...
0
votes
0
answers
32
views
PCManFM - Thumbnailer working for .kra files but not .ora
I have the following thumbnailer to create thumbnails for .ora files under /usr/share/thumbnailers/ora.thumbnailer
[Thumbnailer Entry]
TryExec=unzip
Exec=sh -c "unzip -p %i Thumbnails/thumbnail....
0
votes
0
answers
127
views
Jdownloader2 captcha queries in browser do not work
System Ubuntu 20.04 LTS
Hello
When JDownloader2 starts a captcha query, a Librewolf tab opens with the message: File not found.
In the address bar it shows "file:///home/user/jd2/%u".
I have ...
0
votes
0
answers
370
views
How to fix dpkg: error processing archive /var/cache/apt/archives/unzip_6.0-26ubuntu3.1_amd 64.deb (--unpack):
After I run the command md@md-hp-laptop-15s-du3xxx:~$ sudo apt --fix-broken install
I get
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting ...
0
votes
0
answers
173
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"), ...
1
vote
0
answers
92
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 (...
0
votes
1
answer
76
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
0
answers
47
views
Is there a skript to change MIME-Settings to another version of an application program?
From time to time I install development versions for LibreOffice. I see myself changing the MIME settings for those many types of files associated with LibreOffice and I am looking for a skript to ...
2
votes
0
answers
189
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 ...
6
votes
2
answers
577
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 ...
3
votes
1
answer
722
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 ...
5
votes
2
answers
3k
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 ...
1
vote
1
answer
109
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
1
answer
1k
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: ...
1
vote
0
answers
342
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
1
answer
251
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 ...
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 ...
0
votes
0
answers
25
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....
1
vote
1
answer
1k
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
1
answer
36
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 ...
12
votes
3
answers
26k
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 ...
1
vote
0
answers
210
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 ...
2
votes
0
answers
342
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
1
answer
522
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 ...
2
votes
2
answers
4k
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-...
5
votes
0
answers
2k
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 ...
7
votes
1
answer
339
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/...
3
votes
1
answer
702
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 ...
1
vote
1
answer
29
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 ...
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 ...
0
votes
0
answers
1k
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
1
answer
152
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
0
answers
70
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 ...
2
votes
1
answer
47
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
1
answer
266
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
1
answer
2k
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 ...
1
vote
1
answer
2k
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-...
5
votes
0
answers
567
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
0
answers
107
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
1
answer
1k
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
1
answer
82
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
1
answer
134
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
0
answers
271
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 (...