mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
xdg-utils: patch xdg-open to correctly open files when using portal
See upstream MR at https://gitlab.freedesktop.org/xdg/xdg-utils/-/merge_requests/65 which adds support for the org.freedesktop.portal.OpenURI.OpenFile method.
This commit is contained in:
parent
b69883faca
commit
b1849a18cf
1 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchFromGitLab, fetchFromGitHub
|
{ lib, stdenv, fetchFromGitLab, fetchFromGitHub, fetchpatch
|
||||||
, file, libxslt, docbook_xml_dtd_412, docbook_xsl, xmlto
|
, file, libxslt, docbook_xml_dtd_412, docbook_xsl, xmlto
|
||||||
, w3m, gnugrep, gnused, coreutils, xset, perlPackages
|
, w3m, gnugrep, gnused, coreutils, xset, perlPackages
|
||||||
, mimiSupport ? false, gawk
|
, mimiSupport ? false, gawk
|
||||||
|
@ -36,6 +36,13 @@ stdenv.mkDerivation rec {
|
||||||
# Allow forcing the use of XDG portals using NIXOS_XDG_OPEN_USE_PORTAL environment variable.
|
# Allow forcing the use of XDG portals using NIXOS_XDG_OPEN_USE_PORTAL environment variable.
|
||||||
# Upstream PR: https://github.com/freedesktop/xdg-utils/pull/12
|
# Upstream PR: https://github.com/freedesktop/xdg-utils/pull/12
|
||||||
./allow-forcing-portal-use.patch
|
./allow-forcing-portal-use.patch
|
||||||
|
# Allow opening files when using portal with xdg-open.
|
||||||
|
# Upstream PR: https://gitlab.freedesktop.org/xdg/xdg-utils/-/merge_requests/65
|
||||||
|
(fetchpatch {
|
||||||
|
name = "support-openfile-with-portal.patch";
|
||||||
|
url = "https://gitlab.freedesktop.org/xdg/xdg-utils/-/commit/5cd8c38f58d9db03240f4bc67267fe3853b66ec7.diff";
|
||||||
|
hash = "sha256-snkhxwGF9hpqEh5NGG8xixTi/ydAk5apXRtgYrVgNY8=";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
# just needed when built from git
|
# just needed when built from git
|
||||||
|
|
Loading…
Reference in a new issue