blob: 4f1a1f6a3b5cbf624a4ccd598795387a0bb89181 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
From: Cat Kasin <cat@aulucya.gay>
Date: Thu, 23 Oct 2024 19:31:10 -0700
Subject: [PATCH] use system neowofetch
Signed-off-by: Cat Kasin <cat@aulucya.gay>
Forwarded: not-needed
---
diff --git a/hyfetch/neofetch_util.py b/hyfetch/neofetch_util.py
index 17829ac..1fcfcfc 100644
--- a/hyfetch/neofetch_util.py
+++ b/hyfetch/neofetch_util.py
@@ -254,8 +254,7 @@
Run neofetch command
"""
if platform.system() != 'Windows':
- bash = ['/usr/bin/env', 'bash'] if Path('/usr/bin/env').is_file() else [shutil.which('bash')]
- full_cmd = [*bash, get_command_path(), *shlex.split(args)]
+ full_cmd = ['/usr/bin/neowofetch', *shlex.split(args)]
else:
cmd = get_command_path().replace("\\", "/").replace("C:/", "/c/")
|