From 6302ccbfdf90d75223e3a1df65838a1062883ffa Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Wed, 8 Feb 2023 14:50:39 -0500 Subject: [PATCH 1/2] [U] Changelog --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index b2516c1e..9b6fbd9b 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,10 @@ pip install git+https://github.com/hykilpikonna/hyfetch.git@master +* 🌈 Better Windows compatibility (#45, #84, #87) +* 🌈 Add gendervoid flags (#81) +* 🖼 Linux BIOS, bluetooth detection + ### 1.4.6 * 🌈 Add compatibility for FastFetch version `>1.8.0` (#62) From 2860c1efd62a0bf513912e346794ab8d04f7b62d Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Wed, 8 Feb 2023 15:03:40 -0500 Subject: [PATCH 2/2] [F] Properly escape path #89 --- hyfetch/neofetch_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyfetch/neofetch_util.py b/hyfetch/neofetch_util.py index ecc5d617..44e69c63 100644 --- a/hyfetch/neofetch_util.py +++ b/hyfetch/neofetch_util.py @@ -237,13 +237,13 @@ def run_neofetch_cmd(args: str, pipe: bool = False) -> str | None: Run neofetch command """ if platform.system() != 'Windows': - full_cmd = shlex.split(f'/usr/bin/env bash {get_command_path()} {args}') + full_cmd = ['/usr/bin/env', 'bash', get_command_path(), *shlex.split(args)] else: cmd = get_command_path().replace("\\", "/").replace("C:/", "/c/") args = args.replace('\\', '/').replace('C:/', '/c/') - full_cmd = [ensure_git_bash(), '-c', f'{cmd} {args}'] + full_cmd = [ensure_git_bash(), '-c', f"'{cmd}' {args}"] # print(full_cmd) if pipe: