[F] Fix #379
This commit is contained in:
@@ -438,6 +438,7 @@ where
|
|||||||
debug!(?ff_path, "fastfetch path");
|
debug!(?ff_path, "fastfetch path");
|
||||||
|
|
||||||
let mut command = Command::new(ff_path);
|
let mut command = Command::new(ff_path);
|
||||||
|
command.env("FFTS_IGNORE_PARENT", "1");
|
||||||
command.args(args);
|
command.args(args);
|
||||||
Ok(command)
|
Ok(command)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -390,6 +390,8 @@ def run_fastfetch(asc: str, args: str = '', legacy: bool = False):
|
|||||||
path = tmp_dir / 'ascii.txt'
|
path = tmp_dir / 'ascii.txt'
|
||||||
path.write_text(asc, 'utf-8')
|
path.write_text(asc, 'utf-8')
|
||||||
|
|
||||||
|
os.environ['FFTS_IGNORE_PARENT'] = '1'
|
||||||
|
|
||||||
# Call fastfetch with the temp file
|
# Call fastfetch with the temp file
|
||||||
proc = subprocess.run([str(ff_path), '--raw' if legacy else '--file-raw',
|
proc = subprocess.run([str(ff_path), '--raw' if legacy else '--file-raw',
|
||||||
str(path.absolute()), *shlex.split(args)])
|
str(path.absolute()), *shlex.split(args)])
|
||||||
|
|||||||
Reference in New Issue
Block a user