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
default applications for xserver specified by mime types #5966
Conversation
Looks cool :) |
Please do try it out in your desktop environment. |
Looks really cool, I will try to give it a try on the weekend. |
Looks nice, although I'm not sure if having it under services is the best places, as it looks mostly a user-specific thing. Maybe we could factor the core out into something like But I guess we can do such improvements later, even move this into another place if we find a better one. |
I like the |
Hm, not sure what this is for. Users shouldn't need to specify MIME type associations, applications should do that by creating an appropriate |
@edolstra at least in E19 and i3 (that I tested), that way is not really working that well - well its not. Probably because new entries can not be auto-added to
Taken from: https://wiki.archlinux.org/index.php/Default_applications Entries inside |
1fae829
to
dd2a2e8
Compare
For |
yeah, I know, I am still figuring out how to solve that, I can not just run the or there is another solution... throw out this 3 lines: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/config/system-path.nix#L128 ... what do you say? |
I found a bug that has a bigger priority...
ex: from so it does not distinguish these entries:
and
and
Solution 1: get a hash (somehow - runCommand?) from suggestions? |
fixed the last one.. I knew I saw |
dd2a2e8
to
e7aafc6
Compare
This pull request is ready to try out in different desktop environments |
e7aafc6
to
64723a8
Compare
added support for |
64723a8
to
a18df93
Compare
PS: Has anyone already tried this feature on their setup? |
I'm going to close this, we can introduce declarative configuration for mimetypes, but it shouldn't be specific to X11. For example: https://help.ubuntu.com/community/AddingMimeTypes |
A much needed feature!
This works in enlightenment and should work in other window/desktop managers, I haven't touched any specific window/desktop manager settings.
When you set
then for example: plain text files beside css files should be opened by sublime text editor.
Right mime types are tricky to find and different applications see for the same file differently, for example:
Mimetype
image/png
is supposed to matchpng
files, but enlightenment_filemanager sees this asimage/x-apple-ios-png
.And yes, I know that I am creating two the same files named differently:
defaults.list
andmimeapps.list
, the first one should be deprecated but for example enlightenment file manager uses it (I strace'd it).Suggestions and questions are more than welcome before merging.