[Users] execvp: File not found

kardan kardan at riseup.net
Sat Jun 22 17:04:01 CEST 2013


Am Sat, 22 Jun 2013 16:29:12 +0200
schrieb Michael Gmelin <freebsd at grem.de>:

> > When I compose a message and choose 'edit in external editor' claws
> > just spits 'execvp: File not found'.
>
> execvp is part of the standard C library and used to execute whatever
> text editor you configured, it's part of your system don't worry.
> 
> See Configuration->Preferences->Message View->External programs to
> configure the external editor you want to use.
> 
This makes me calm, thanks!

What about having a meaningful error message then:

diff --git a/src/compose.c b/src/compose.c
index 6b999b1..74ef34f 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -9134,7 +9134,7 @@ static gint compose_exec_ext_editor_real(const
gchar *file) cmdline = strsplit_with_quote(buf, " ", 1024);
        execvp(cmdline[0], cmdline);
 
-       perror("execvp");
+       perror(cmdline[0]);
        g_strfreev(cmdline);
 
        _exit(1);



More information about the Users mailing list