Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mimeopen should have a related *.desktop file #21

Open
kernc opened this issue Feb 20, 2016 · 0 comments
Open

mimeopen should have a related *.desktop file #21

kernc opened this issue Feb 20, 2016 · 0 comments

Comments

@kernc
Copy link

kernc commented Feb 20, 2016

Please provide a FreeDesktop-compatible *.desktop file for mimeopen, declaring that it handles application/octet-stream files, e. g.:

[Desktop Entry]
Type=Application
Version=1.0
Name=mimeopen
GenericName=Open with default application
Comment=Mime-type and file extension-aware file opener
Exec=mimeopen -n %F
Icon=system-run
Terminal=false
MimeType=application/octet-stream

This makes mimeopen available to xdg-aware applications as a handler of application/octet-stream files (i.e. unknown binary files) which are commonly transmitted over the internet, even when their binary fingerprint is not really unknown, e.g. when they are compressed archives, ODT or PDF documents, multimedia files, ...

Currently, whenever one clicks a browser link that results in a file download, Firefox asks to save it (because the server, as is very common, sent Content-Type: application/octet-stream header for this exact reason – to force a download). However, one may not wish to save the file explicitly, but open it (implicitly saved to /tmp). Mimeopen does a splendid job of opening that (i.e. any) file.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant