mirror of https://github.com/GNOME/gimp.git
app: interpreter arguments for plugins not returned.
When a plugin file's shebang would start with "/usr/bin/env", the interpreter's arguments were not returned by resolve_sh_bang().
This commit is contained in:
parent
4b9bd6ba7d
commit
da4247d87c
|
@ -692,11 +692,17 @@ resolve_sh_bang (GimpInterpreterDB *db,
|
||||||
{
|
{
|
||||||
if (strcmp ("/usr/bin/env", name) == 0)
|
if (strcmp ("/usr/bin/env", name) == 0)
|
||||||
{
|
{
|
||||||
program = g_hash_table_lookup (db->programs, cp);
|
/* Shift program name and arguments to the right. */
|
||||||
if (program)
|
name = cp;
|
||||||
return g_strdup (program);
|
|
||||||
|
for ( ; *cp && (*cp != ' ') && (*cp != '\t'); cp++)
|
||||||
|
;
|
||||||
|
|
||||||
|
while ((*cp == ' ') || (*cp == '\t'))
|
||||||
|
*cp++ = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (*cp)
|
||||||
*interp_arg = g_strdup (cp);
|
*interp_arg = g_strdup (cp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue