open-in-mpv: sandbox with bwrap
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
(pkgs.fetchpatch {
|
(pkgs.fetchpatch {
|
||||||
# if i want `open-in-mpv 'mpv:///open?...'` to use a different executable than `mpv` (e.g. `xdg-open`),
|
# if i want `open-in-mpv 'mpv:///open?...'` to use a different executable than `mpv` (e.g. `xdg-open`),
|
||||||
# this patch is required.
|
# this patch is required.
|
||||||
# TODO: upstream (branch: dev-sane)
|
# PR against upstream: <https://github.com/Baldomo/open-in-mpv/pull/26>
|
||||||
url = "https://git.uninsane.org/colin/open-in-mpv/commit/4d93d5fbdd3baebb6284c517cfe9fec9970c3002.patch";
|
url = "https://git.uninsane.org/colin/open-in-mpv/commit/4d93d5fbdd3baebb6284c517cfe9fec9970c3002.patch";
|
||||||
name = "open-in-mpv: respect the player's `executable` config";
|
name = "open-in-mpv: respect the player's `executable` config";
|
||||||
hash = "sha256-UkjR58mo4ifqGU2F1YhcJU14gX41XMaXwImbV+v7Tr8=";
|
hash = "sha256-UkjR58mo4ifqGU2F1YhcJU14gX41XMaXwImbV+v7Tr8=";
|
||||||
@@ -15,6 +15,10 @@
|
|||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
sandbox.method = "bwrap";
|
||||||
|
sandbox.wrapperType = "wrappedDerivation";
|
||||||
|
sandbox.whitelistDbus = [ "user" ]; # for xdg-open/portals
|
||||||
|
|
||||||
# taken from <https://github.com/Baldomo/open-in-mpv>
|
# taken from <https://github.com/Baldomo/open-in-mpv>
|
||||||
fs.".config/open-in-mpv/config.yml".symlink.text = ''
|
fs.".config/open-in-mpv/config.yml".symlink.text = ''
|
||||||
players:
|
players:
|
||||||
|
Reference in New Issue
Block a user