.B \-\-gst\-plugin\-path=PATH
Add directories separated with ':' to the plugin search path
.
+.SH "ENVIRONMENT VARIABLES"
+.l
+\fIgst\-inspect\-1.0\fP reads the following environment variables, in addition
+to the generic \fIGStreamer\fP environment variables also described in
+.BR gst\-launch\-1.0 (1):
+.TP 8
+.B GST_LESS
+Override the options passed to \fIless\fR (by default "RXF").
+.br
+See \fBless\fR(1) for more information.
+.
.SH "SEE ALSO"
.BR gst\-launch\-1.0 (1),
.BR gst\-typefind\-1.0 (1)
/* "R" : support color
* "X" : do not clear the screen when leaving the pager
* "F" : skip the pager if content fit into the screen
+ *
+ * Don't forget to update the manpage gst-inspect-1.0.1
+ * after changing this default.
*/
#define DEFAULT_LESS_OPTS "RXF"
{
GError *error = NULL;
gchar **argv;
- const gchar *pager;
+ const gchar *pager, *less;
gint stdin_fd;
gchar **envp;
argv = g_strsplit (pager, " ", 0);
+ less = g_getenv ("GST_LESS");
+ if (less == NULL)
+ less = DEFAULT_LESS_OPTS;
+
envp = g_get_environ ();
- envp = g_environ_setenv (envp, "LESS", DEFAULT_LESS_OPTS, TRUE);
+ envp = g_environ_setenv (envp, "LESS", less, TRUE);
if (!g_spawn_async_with_pipes (NULL, argv, envp,
G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_SEARCH_PATH,