exiftool: fix sandboxing
and with that, also fixes Megapixels open-image button :)
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
sane.programs.exiftool = {
|
sane.programs.exiftool = {
|
||||||
sandbox.autodetectCliPaths = "existingFile";
|
# exiftool modifies files by writing out a new file adjacent to it and then `mv`ing it over the original file.
|
||||||
|
# this requires it to have write access to the *parent* of whatever file it's operating on.
|
||||||
|
sandbox.autodetectCliPaths = "parent";
|
||||||
|
# sandbox.autodetectCliPaths = "existingFile";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -43,7 +43,7 @@ in
|
|||||||
sandbox.wrapperType = "inplace"; #< for share/megapixels/movie.sh
|
sandbox.wrapperType = "inplace"; #< for share/megapixels/movie.sh
|
||||||
sandbox.whitelistDri = true;
|
sandbox.whitelistDri = true;
|
||||||
sandbox.whitelistWayland = true;
|
sandbox.whitelistWayland = true;
|
||||||
sandbox.whitelistDbus = [ "user" ]; #< so that it can in theory open the image viewer using fdo portal... but it doesn't :|
|
sandbox.whitelistDbus = [ "user" ]; #< so that it can open the image viewer using fdo portal...
|
||||||
sandbox.extraHomePaths = [
|
sandbox.extraHomePaths = [
|
||||||
# ".config/megapixels"
|
# ".config/megapixels"
|
||||||
".cache/mesa_shader_cache" # loads way faster
|
".cache/mesa_shader_cache" # loads way faster
|
||||||
|
Reference in New Issue
Block a user