mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 08:13:44 +01:00
Terminal: don't print shell information in Terminal module
This commit is contained in:
+3
-7
@@ -262,13 +262,9 @@ static inline void printCommandHelp(const char* command)
|
||||
"Terminal process name",
|
||||
"Terminal path with exe name",
|
||||
"Terminal exe name",
|
||||
"Shell process name",
|
||||
"Shell path with exe name",
|
||||
"Shell exe name",
|
||||
"Shell version",
|
||||
"User shell path with exe name",
|
||||
"User shell exe name",
|
||||
"User shell version"
|
||||
"Terminal pid",
|
||||
"Terminal pretty name",
|
||||
"Terminal version"
|
||||
);
|
||||
}
|
||||
else if(ffStrEqualsIgnCase(command, "terminalfont-format"))
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#define FF_TERMINAL_NUM_FORMAT_ARGS 10
|
||||
#define FF_TERMINAL_NUM_FORMAT_ARGS 6
|
||||
|
||||
void ffPrintTerminal(FFTerminalOptions* options)
|
||||
{
|
||||
@@ -33,13 +33,9 @@ void ffPrintTerminal(FFTerminalOptions* options)
|
||||
{FF_FORMAT_ARG_TYPE_STRBUF, &result->terminalProcessName},
|
||||
{FF_FORMAT_ARG_TYPE_STRBUF, &result->terminalExe},
|
||||
{FF_FORMAT_ARG_TYPE_STRING, result->terminalExeName},
|
||||
{FF_FORMAT_ARG_TYPE_STRBUF, &result->shellProcessName},
|
||||
{FF_FORMAT_ARG_TYPE_STRBUF, &result->shellExe},
|
||||
{FF_FORMAT_ARG_TYPE_STRING, result->shellExeName},
|
||||
{FF_FORMAT_ARG_TYPE_STRBUF, &result->shellVersion},
|
||||
{FF_FORMAT_ARG_TYPE_STRBUF, &result->userShellExe},
|
||||
{FF_FORMAT_ARG_TYPE_STRING, result->userShellExeName},
|
||||
{FF_FORMAT_ARG_TYPE_STRBUF, &result->userShellVersion}
|
||||
{FF_FORMAT_ARG_TYPE_UINT, &result->terminalPid},
|
||||
{FF_FORMAT_ARG_TYPE_STRBUF, &result->terminalPrettyName},
|
||||
{FF_FORMAT_ARG_TYPE_STRBUF, &result->terminalVersion},
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -93,10 +89,10 @@ void ffGenerateTerminalJson(FF_MAYBE_UNUSED FFTerminalOptions* options, yyjson_m
|
||||
}
|
||||
|
||||
yyjson_mut_val* obj = yyjson_mut_obj_add_obj(doc, module, "result");
|
||||
yyjson_mut_obj_add_strbuf(doc, obj, "processName", &result->terminalProcessName);
|
||||
yyjson_mut_obj_add_strbuf(doc, obj, "exe", &result->terminalExe);
|
||||
yyjson_mut_obj_add_strcpy(doc, obj, "exeName", result->terminalExeName);
|
||||
yyjson_mut_obj_add_uint(doc, obj, "pid", result->terminalPid);
|
||||
yyjson_mut_obj_add_strbuf(doc, obj, "prettyName", &result->terminalPrettyName);
|
||||
yyjson_mut_obj_add_strbuf(doc, obj, "processName", &result->terminalProcessName);
|
||||
yyjson_mut_obj_add_strbuf(doc, obj, "version", &result->terminalVersion);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user