-
-
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
bug: xdg.mime.enabled = true causes crash when encountering a .json file #4955
Comments
This sounds like the same issue I ran into, so I'll add my findings in case they're helpful. From my testing I found that crashes occurred with both .json and .js files, and that the file must be non-empty for the crash to occur. Crashes still occur when the file is hidden. I also found that the issue does not exist in home-manager 23.11. |
Similar to my issue, it's occurring when I try to create a zip file as well. I am running home manager + nix on PopOS. I just started to rebuild my dotfiles from scratch to try and track down the issue. Mine crashes as soon as I introduce |
Disregard my comment. While related, it's more applicable to #4682. |
I'm having the same issue. I believe it has something to do with a mismatch between the home-manager Setting Running home-manager 23.11. |
Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting. If you are the original author of the issue
If you are not the original author of the issue
Memorandum on closing issuesDon't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort. |
The `xdg-mime` module now exposes packages to determine what will be run for update-mime-database and update-desktop-database. This allows users to select a different version of these packages if the are incompatible. This should, in combination with an override to the version of `shared-mime-info` (can be found here ?????), resolve nix-community#4955, nix-community#5102 , nix-community#4682, and possibly nix-community#4941. The problem seems to stem from a mismatch in the version of `shared-mime-info` with the host.
The `xdg-mime` module now exposes packages to determine what will be run for update-mime-database and update-desktop-database. This allows users to select a different version of these packages if the are incompatible. This should, in combination with an override to the version of `shared-mime-info` (can be found here ?????), resolve nix-community#4955, nix-community#5102 , nix-community#4682, and possibly nix-community#4941. The problem seems to stem from a mismatch in the version of `shared-mime-info` with the host.
The `xdg-mime` module now exposes packages to determine what will be run for update-mime-database and update-desktop-database. This allows users to select a different version of these packages if the are incompatible. This should, in combination with an override to the version of `shared-mime-info` (can be found here notalltim/home-mananger-config#4), resolve nix-community#4955, nix-community#5102, nix-community#4682, and possibly nix-community#4941. The problem seems to stem from a mismatch in the version of `shared-mime-info` with the host.
The `xdg-mime` module now exposes packages to determine what will be run for update-mime-database and update-desktop-database. This allows users to select a different version of these packages if the are incompatible. This should, in combination with an override to the version of `shared-mime-info` (can be found here notalltim/home-manager-config#4), resolve nix-community#4955, nix-community#5102, nix-community#4682, and possibly nix-community#4941. The problem seems to stem from a mismatch in the version of `shared-mime-info` with the host. I also switched from using `buildPackages` to `pkgs` to improve cross-compilation compatibility.
* xdg-mime: allow overrides to shared-mime-info and desktop-file-utils The `xdg-mime` module now exposes packages to determine what will be run for update-mime-database and update-desktop-database. This allows users to select a different version of these packages if the are incompatible. This should, in combination with an override to the version of `shared-mime-info` (can be found here notalltim/home-manager-config#4), resolve nix-community#4955, nix-community#5102, nix-community#4682, and possibly nix-community#4941. The problem seems to stem from a mismatch in the version of `shared-mime-info` with the host. I also switched from using `buildPackages` to `pkgs` to improve cross-compilation compatibility. * xdg-mime: Add tests for xdg-mime module The xdg-mime module was missing tests so I added basic test for all the options and checked the basic behavior. It covers ensuring that the proper files/folders are created and that the package overrides work.
Are you following the right branch?
Is there an existing issue for this?
Issue description
Intro and Workaround
Not sure if I'm supposed to add information to issue 4682 or create a new one.
Sorry in case I chose the wrong approach. (sounds like a different problem, even though the same fix/workaround can be used)
Originally posted by @hexclover in #4682 (comment)
Problem description and steps to reproduce:
encountering1 a .json file crashes a lot of programs2 in at least Gnome and KDE
I first encountered the problem on bare metal PopOS 22.04
and then reproduced it with (quickemu) VMs (Kubuntu 23.10, Ubuntu 23.10, Fedora 39)
For the tests in the VMs I used the following code (but also tested once with a multiuser install)
Then rebooted and tried to access/open the .json file
Maintainer CC
No response
System information
Footnotes
(with 'encountering' I mean clicking it in file explorer apps or opening it in editor apps) ↩
Explicitly tested Nautilus, gedit, new gnome Text Editor (no idea what the name is), thunar and Dolphin. ↩
The text was updated successfully, but these errors were encountered: