Skip to content

xdg-utils: patch xdg-open to correctly open files when using portal#217590

Merged
mweinelt merged 1 commit intoNixOS:stagingfrom
lilyinstarlight:fix/xdg-open-files-with-portal
Mar 4, 2023
Merged

xdg-utils: patch xdg-open to correctly open files when using portal#217590
mweinelt merged 1 commit intoNixOS:stagingfrom
lilyinstarlight:fix/xdg-open-files-with-portal

Conversation

@lilyinstarlight
Copy link
Member

@lilyinstarlight lilyinstarlight commented Feb 21, 2023

Description of changes

Right now when xdgOpenUsePortal = true, using xdg-open for filenames stops working because xdg-open only uses the URI method for the portal. This fixes that problem by pulling in an upstream MR with the needed functionality

See upstream MR at https://gitlab.freedesktop.org/xdg/xdg-utils/-/merge_requests/65 which specifically adds support for the org.freedesktop.portal.OpenURI.OpenFile D-Bus method

Additional context in #160923

cc: @LunNova

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@LunNova
Copy link
Member

LunNova commented Feb 22, 2023

Thanks for fixing this! Reviewed upstream PR, it has a bug.

@lilyinstarlight lilyinstarlight force-pushed the fix/xdg-open-files-with-portal branch from ba59feb to bc6ff4b Compare February 22, 2023 01:03
@lilyinstarlight
Copy link
Member Author

Thanks for fixing this! Reviewed upstream PR, it has a bug.

Should be fixed now, thank you!

@lilyinstarlight lilyinstarlight force-pushed the fix/xdg-open-files-with-portal branch from bc6ff4b to b1849a1 Compare February 22, 2023 01:26
@ofborg ofborg bot requested a review from edolstra February 22, 2023 01:56
@ofborg ofborg bot added 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 1001-2500 This PR causes many rebuilds on Linux and should target the staging branches. labels Feb 22, 2023
LunNova added a commit to LunNova/nixos-configs that referenced this pull request Feb 22, 2023
Copy link
Member

@LunNova LunNova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added to system config last night and not noticing any new issues. Tested that opening files works now.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/1873

@mweinelt mweinelt merged commit f3b63ce into NixOS:staging Mar 4, 2023
@lilyinstarlight lilyinstarlight deleted the fix/xdg-open-files-with-portal branch March 4, 2023 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 1001-2500 This PR causes many rebuilds on Linux and should target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants