Add --cmd option

This allows to kind of automate what profanity should do as first jobs,
e.g. `--cmd /foo --cmd /bar --cmd /quit` so one can easily check for memory
leaks.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
Steffen Jaeckel
2025-03-06 21:16:06 +01:00
parent 0081db643f
commit 662a0be633
4 changed files with 63 additions and 22 deletions

View File

@@ -40,7 +40,7 @@
#include <pthread.h>
#include <glib.h>
void prof_run(char* log_level, char* account_name, char* config_file, char* log_file, char* theme_name);
void prof_run(gchar* log_level, gchar* account_name, gchar* config_file, gchar* log_file, gchar* theme_name, gchar** commands);
gboolean prof_set_quit(void);
extern pthread_mutex_t lock;