You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Be sure to read the FAQ before submitting a new issue.
General description of bug:
What happened: Running FastFetch in a Rust program as a child process causes a infinite loop of FastFetch and the parent program opening each other. If you print the output of FastFetch from the process, it reports the parent process as the "shell". Because of this I think this is your version detection trying to run program --version and thus reinvoking FastFetch, which invokes the program etc.
I'm aware of the dumb use-case argument here, however I do think this should be fixed regardless as there are programs that may wish to use FastFetch as a child process, for a currently working example hyfetch has you as a backend
What should happen: FastFetch should notice this happening and prevent a infinite loop. Shell detection should be corrected too, but that's the lesser issue.
use std::process::Command;fnmain(){letmut cmd:Command = Command::new("fastfetch");let output:String = String::from_utf8(cmd.output().expect("Failed to run").stdout).expect("Unable to parse output from raw UTF8");println!("{}", output);}
The content of the configuration file you use (if any):
Redacted tons of private/personal information from this. Was ran from the same Rust script with the added arguments to let the false shell detection show here.
Be sure to read the FAQ before submitting a new issue.
General description of bug:
program --version
and thus reinvoking FastFetch, which invokes the program etc.I'm aware of the dumb use-case argument here, however I do think this should be fixed regardless as there are programs that may wish to use FastFetch as a child process, for a currently working example hyfetch has you as a backend
Often helpful information:
Screenshot:
Rust script used:
The content of the configuration file you use (if any):
Output of
fastfetch -c ci.jsonc --format json
:Redacted tons of private/personal information from this. Was ran from the same Rust script with the added arguments to let the false shell detection show here.
Very Long Output
Output of
fastfetch --list-features
:The text was updated successfully, but these errors were encountered: