programs: assorted: correct sandbox paths now that Pictures/Videos/Books are categorized

i don't like this Pictures/ approach though. i may reconsolidate some of those
This commit is contained in:
Colin 2024-02-27 21:36:18 +00:00
parent 715de37954
commit 67536e3c1f
18 changed files with 95 additions and 36 deletions

View File

@ -417,7 +417,11 @@ in
gimp.sandbox.wrapperType = "wrappedDerivation";
gimp.sandbox.whitelistWayland = true;
gimp.sandbox.extraHomePaths = [
"Pictures"
"Pictures/albums"
"Pictures/cat"
"Pictures/from"
"Pictures/Photos"
"Pictures/Screenshots"
"Pictures/servo-macros"
"dev"
"ref"
@ -471,7 +475,12 @@ in
gnome-frog.sandbox.extraHomePaths = [
# for OCR'ing photos from disk
"tmp"
"Pictures"
"Pictures/albums"
"Pictures/cat"
"Pictures/from"
"Pictures/Photos"
"Pictures/Screenshots"
"Pictures/servo-macros"
];
gnome-frog.persist.byStore.cryptClearOnBoot = [
".local/share/tessdata" # 15M; dunno what all it is.
@ -543,7 +552,11 @@ in
inkscape.sandbox.wrapperType = "wrappedDerivation";
inkscape.sandbox.whitelistWayland = true;
inkscape.sandbox.extraHomePaths = [
"Pictures"
"Pictures/albums"
"Pictures/cat"
"Pictures/from"
"Pictures/Photos"
"Pictures/Screenshots"
"Pictures/servo-macros"
"dev"
"ref"
@ -596,7 +609,11 @@ in
krita.sandbox.autodetectCliPaths = "existing";
krita.sandbox.extraHomePaths = [
"dev"
"Pictures"
"Pictures/albums"
"Pictures/cat"
"Pictures/from"
"Pictures/Photos"
"Pictures/Screenshots"
"Pictures/servo-macros"
"ref"
"tmp"
@ -612,9 +629,9 @@ in
losslesscut-bin.sandbox.wrapperType = "wrappedDerivation";
losslesscut-bin.sandbox.extraHomePaths = [
"Music"
"Pictures" # i have some videos in there too.
"Pictures/from" # videos from e.g. mobile phone
"Pictures/servo-macros"
"Videos"
"Videos/local"
"Videos/servo"
"tmp"
];
@ -632,7 +649,8 @@ in
"mate.engrampa".sandbox.autodetectCliPaths = "existingOrParent";
"mate.engrampa".sandbox.extraHomePaths = [
"archive"
"Books"
"Books/local"
"Books/servo"
"records"
"ref"
"tmp"

View File

@ -8,7 +8,7 @@
sandbox.whitelistDbus = [ "user" ]; # mpris
sandbox.whitelistWayland = true;
sandbox.extraHomePaths = [
"Books"
"Books/local"
"Books/servo"
];

View File

@ -54,9 +54,13 @@ in
sandbox.whitelistWayland = true;
sandbox.extraHomePaths = [
"Music"
"Pictures"
"Pictures/albums"
"Pictures/cat"
"Pictures/from"
"Pictures/Photos"
"Pictures/Screenshots"
"Pictures/servo-macros"
"Videos"
"Videos/local"
"Videos/servo"
"tmp"
];

View File

@ -25,9 +25,13 @@
sandbox.whitelistWayland = true;
sandbox.extraHomePaths = [
"Music"
"Pictures"
"Pictures/albums"
"Pictures/cat"
"Pictures/from"
"Pictures/Photos"
"Pictures/Screenshots"
"Pictures/servo-macros"
"Videos"
"Videos/local"
"Videos/servo"
"tmp"
];

View File

@ -244,7 +244,11 @@ in
# for uploads/downloads.
# it still needs these paths despite using the portal's file-chooser :?
"tmp"
"Pictures"
"Pictures/albums"
"Pictures/cat"
"Pictures/from"
"Pictures/Photos"
"Pictures/Screenshots"
"Pictures/servo-macros"
] ++ lib.optionals cfg.addons.browserpass-extension.enable [
# browserpass needs these paths:

View File

@ -37,9 +37,13 @@ in
sandbox.extraHomePaths = [
# still needs these paths despite it using the portal's file-chooser :?
"Music"
"Pictures"
"Pictures/albums"
"Pictures/cat"
"Pictures/from"
"Pictures/Photos"
"Pictures/Screenshots"
"Pictures/servo-macros"
"Videos"
"Videos/local"
"Videos/servo"
"tmp"
];

View File

@ -40,7 +40,7 @@ in
# for GUI invocation, allow the common media directories
sandbox.extraHomePaths = [
"Music"
"Videos"
"Videos/local"
"Videos/servo"
];
sandbox.extraPaths = [

View File

@ -40,9 +40,13 @@ in
sandbox.whitelistWayland = true;
sandbox.extraHomePaths = [
"Music"
"Pictures"
"Pictures/albums"
"Pictures/cat"
"Pictures/from"
"Pictures/Photos"
"Pictures/Screenshots"
"Pictures/servo-macros"
"Videos"
"Videos/local"
"Videos/servo"
"tmp"
];

View File

@ -7,8 +7,8 @@
sandbox.whitelistWayland = true;
sandbox.extraHomePaths = [
"Music"
"Pictures" # i have some videos in there too.
"Videos"
"Pictures/from" # e.g. videos filmed from my phone
"Videos/local"
"Videos/servo"
"tmp"
];

View File

@ -5,9 +5,9 @@
sandbox.wrapperType = "wrappedDerivation";
sandbox.extraHomePaths = [
"Music"
"Pictures" # i have some videos in there too.
"Pictures/from" # e.g. Videos taken from my phone
"Pictures/servo-macros"
"Videos"
"Videos/local"
"Videos/servo"
"tmp"
];

View File

@ -51,7 +51,7 @@ in {
sandbox.whitelistDri = true; # reduces startup time and subjective page flip time
sandbox.whitelistWayland = true;
sandbox.extraHomePaths = [
"Books"
"Books/local"
"Books/servo"
];

View File

@ -16,9 +16,13 @@
sandbox.whitelistWayland = true;
sandbox.autodetectCliPaths = "parent";
sandbox.extraHomePaths = [
"Pictures"
"Pictures/albums"
"Pictures/cat"
"Pictures/from"
"Pictures/Photos"
"Pictures/Screenshots"
"Pictures/servo-macros"
"Videos"
"Videos/local"
"Videos/servo"
"dev"
"records"

View File

@ -25,7 +25,7 @@
# ".nix-profile"
".cache/mesa_shader_cache" # loads way faster
"tmp"
"Pictures"
"Pictures" #< TODO: make this Pictures/Photos and save photos there
# also it addresses a lot via relative path.
];
sandbox.extraPaths = [

View File

@ -73,10 +73,10 @@ in
".config/mpv" #< else mpris plugin crashes on launch
# it's common for album (or audiobook, podcast) images/lyrics/metadata to live adjacent to the primary file.
# CLI detection is too poor to pick those up, so expose the common media dirs to the sandbox to make that *mostly* work.
"Books"
"Books/local"
"Books/servo"
"Music"
"Videos"
"Videos/local"
"Videos/servo"
];

View File

@ -60,7 +60,11 @@
sandbox.extraHomePaths = [
".local/share/applications" #< to locate .desktop files
"Music"
"Pictures"
"Pictures/albums"
"Pictures/cat"
"Pictures/from"
"Pictures/Photos"
"Pictures/Screenshots"
"Pictures/servo-macros"
"Videos/local"
"Videos/servo"

View File

@ -29,9 +29,13 @@ in
sandbox.whitelistWayland = true;
sandbox.extraHomePaths = [
"Music"
"Pictures"
"Pictures/albums"
"Pictures/cat"
"Pictures/from"
"Pictures/Photos"
"Pictures/Screenshots"
"Pictures/servo-macros"
"Videos"
"Videos/local"
"Videos/servo"
"tmp"
];

View File

@ -9,9 +9,13 @@
sandbox.whitelistWayland = true;
sandbox.extraHomePaths = [
"Music"
"Pictures"
"Pictures/albums"
"Pictures/cat"
"Pictures/from"
"Pictures/Photos"
"Pictures/Screenshots"
"Pictures/servo-macros"
"Videos"
"Videos/local"
"Videos/servo"
"tmp"
];

View File

@ -16,11 +16,16 @@ in
# for file-chooser portal users (fractal, firefox, ...), need to provide anything they might want.
# i think (?) portal users can only access the files here interactively, i.e. by me interacting with the portal's visual filechooser,
# so shoving stuff here is trusting the portal but not granting any trust to the portal user.
"Books"
"Books/local"
"Books/servo"
"Music"
"Pictures"
"Pictures/albums"
"Pictures/cat"
"Pictures/from"
"Pictures/Photos"
"Pictures/Screenshots"
"Pictures/servo-macros"
"Videos"
"Videos/local"
"Videos/servo"
"archive"
"dev"