linux: register .jdf/.jdfx as recognized file types - #9
Open
DenizSAHIN570 wants to merge 1 commit into
Open
DenizSAHIN570 wants to merge 1 commit into
DenizSAHIN570 wants to merge 1 commit into
Conversation
.jdf/.jdfx were never actually recognized as their own file types on Linux. The .desktop file's MimeType= entries say JDF Reader handles application/jdf+json and application/jdf+zip, but nothing registers the glob mapping those extensions to the types - rpm has no post-install scriptlet to call update-mime-database (deb does), and an AppImage has no install step at all. Registers into ~/.local/share/mime/ on first launch instead, which covers deb/rpm/AppImage the same way and needs no root. Verified: xdg-mime query filetype on a .jdf resolved to text/plain before, application/jdf+json after.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Linux,
.jdf/.jdfxnever actually get recognized as their own file type — double-clicking one in a file manager doesn't offer JDF Reader. The.desktopfile says JDF Reader handlesapplication/jdf+json/application/jdf+zip, but nothing registers the glob mapping those extensions to the types. Checked why: the rpm bundler has no post-install hook to callupdate-mime-database(deb has one), and an AppImage has no install step at all.Fixed by registering the mime types into
~/.local/share/mime/on first launch instead — works the same way for deb/rpm/AppImage, no root needed. Confirmed withxdg-mime query filetype: resolved totext/plainbefore,application/jdf+jsonafter opening the app once.