1
0
Fork 0
mirror of synced 2024-05-17 19:03:08 +12:00

Exclude container stuff by default on Linux

STR:
1. Install/use podman or even better, Fedora Silverblue, where this is built-in.

You will see a lot of duplicates…

This should fix it. Note I used `*/home` to allow `/var/home` where Fedora Silverblue mounts it's homedir (it is symbolic-linked to `/home`, but I don't know how this app handles that.)
This commit is contained in:
rugk 2023-10-24 17:24:15 +02:00 committed by GitHub
parent 8df5e991a6
commit 46cd20401b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ use std::path::Path;
use crate::common::Common;
#[cfg(target_family = "unix")]
pub const DEFAULT_EXCLUDED_ITEMS: &str = "*/.git/*,*/node_modules/*,*/lost+found/*,*/Trash/*,*/.Trash-*/*,*/snap/*,/home/*/.cache/*";
pub const DEFAULT_EXCLUDED_ITEMS: &str = "*/.git/*,*/node_modules/*,*/lost+found/*,*/Trash/*,*/.Trash-*/*,*/snap/*,/home/*/.cache/*,*/home/*/.local/share/containers/*";
#[cfg(not(target_family = "unix"))]
pub const DEFAULT_EXCLUDED_ITEMS: &str = "*\\.git\\*,*\\node_modules\\*,*\\lost+found\\*,*:\\windows\\*,*:\\$RECYCLE.BIN\\*,*:\\$SysReset\\*,*:\\System Volume Information\\*,*:\\OneDriveTemp\\*,*:\\hiberfil.sys,*:\\pagefile.sys,*:\\swapfile.sys";