Merge branch 'hykilpikonna:master' into patch-1

This commit is contained in:
Med Anis Jbara 2023-02-09 22:52:35 +01:00 committed by GitHub
commit dddc2d15d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -99,6 +99,10 @@ pip install git+https://github.com/hykilpikonna/hyfetch.git@master
<!-- CHANGELOG STARTS HERE ---> <!-- CHANGELOG STARTS HERE --->
* 🌈 Better Windows compatibility (#45, #84, #87)
* 🌈 Add gendervoid flags (#81)
* 🖼 Linux BIOS, bluetooth detection
### 1.4.6 ### 1.4.6
* 🌈 Add compatibility for FastFetch version `>1.8.0` (#62) * 🌈 Add compatibility for FastFetch version `>1.8.0` (#62)

View file

@ -237,13 +237,13 @@ def run_neofetch_cmd(args: str, pipe: bool = False) -> str | None:
Run neofetch command Run neofetch command
""" """
if platform.system() != 'Windows': 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: else:
cmd = get_command_path().replace("\\", "/").replace("C:/", "/c/") cmd = get_command_path().replace("\\", "/").replace("C:/", "/c/")
args = args.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) # print(full_cmd)
if pipe: if pipe: