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

qgis: MIME types are missing #356249

Open
AndrewKvalheim opened this issue Nov 15, 2024 · 0 comments
Open

qgis: MIME types are missing #356249

AndrewKvalheim opened this issue Nov 15, 2024 · 0 comments
Labels
0.kind: bug Something is broken

Comments

@AndrewKvalheim
Copy link
Contributor

Describe the bug

QGIS defines several MIME types such as application/x-qgis-project and application/x-esri-shape, but these are missing in NixOS.

Steps To Reproduce

  1. Install QGIS:

    environment.systemPackages = [ pkgs.qgis ];
  2. Acquire a sample QGIS file:

    wget 'https://github.com/qgis/QGIS/raw/refs/tags/final-3_36_3/tests/testdata/projects/good_layers_test.qgs'
  3. Query its MIME type:

    $ xdg-mime query filetype 'good_layers_test.qgs'
    text/html

Expected behavior

Compare with Ubuntu:

$ podman run --rm --interactive --tty ubuntu:24.04 bash
# apt update && apt install qgis wget xdg-utils
# wget 'https://github.com/qgis/QGIS/raw/refs/tags/final-3_36_3/tests/testdata/projects/good_layers_test.qgs'
# xdg-mime query filetype 'good_layers_test.qgs'
application/x-qgis-layer-settings

Additional context

The practical impact of this is that QGIS projects open in the wrong application.

Metadata

$ nix-shell --packages 'nix-info' --run 'nix-info --markdown'
 - system: `"x86_64-linux"`
 - host os: `Linux 6.11.7, NixOS, 24.05 (Uakari), 24.05.6565.689fed12a013`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.8`
 - channels(root): `"nix-math, nixos-24.05, nixos-hardware, nixseparatedebuginfod"`
 - channels(user): `"community-vscode-extensions, home-manager-23.11.tar.gz, nix-colors, rust-overlay, unstable"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Notify maintainers

@NixOS/geospatial @lsix


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@AndrewKvalheim AndrewKvalheim added the 0.kind: bug Something is broken label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant