-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Mime types and apps #1498
Comments
For completeness sake, I've also got this:
|
I also tried setting |
I also tried resetting my home-manager version to |
The files should show up in |
@rycee Yes that's also how I understand it, but they don't and I have no clue why. Edit: To be clear: both the emacsclient and my new files don't show up. |
I also pushed my code here: NorfairKing/smos@9721d02 in case you want to see the details. |
It looks like this was a false-positive. It looks like there are some special cases for |
Ok now I'm extra confused.
It looks like the files are in the right places and have the right contents:
Even weirder is that
|
Two (?) reboots later it seems to work. I'm not sure why that is, but once we figure that out, I can add the relevant command to #1499 and get the tests to pass, i think. |
From experience I can say that the output of The actual behavior of Actually, I have the following hack in my HM configuration to make the behavior of let
runMailcap = pkgs.writeScriptBin "run-mailcap" ''
#!${pkgs.stdenv.shell}
# Skip first argument
${pkgs.perlPackages.FileMimeInfo}/bin/mimeopen "''${@:2}"
'';
in {
home.packages = [ runMailcap ];
} |
I just had a quick look at #1499 and I'm not familiar with testing in HM, but to me those tests don't make any sense at all as HM test cases. This is because I don't see any of the HM modules actually being tested in there. |
@sareyko I'm happy to just close the PR but my understanding is different: There is something going on between reboots that fixes |
I'd agree with you there @NorfairKing. But AFAICT the xdg-mime module does not provide or depend on IMO a valid way to define a test would be by reading and understanding the relevant XDG specs and basing the tests on that without relying on any external tools that might (incorrectly) implement said specs. Apart from that your |
Aha! Now I better understand your view, let's just close the PR then, because I can't justify the time to go through that spec at the moment. |
Don't get me wrong, I'm just trying to help out with understanding the mess that is xdg-utils. |
Issue description
Looking at the way the
programs.emacs
option is implemented, it looks like installing mime apps and mime types should work.However, I have this package added to my
packages
and nothing about it shows up in~/.local/share/applications
or~/.local/share/mime/text
(or even~/.nix-profile/share/applications
and~/.nix-profile/share/mime/text
):Technical details
I'm using home manager version
472ca211cac604efdf621337067a237be9df389e
.The text was updated successfully, but these errors were encountered: