GNOME Bugzilla – Bug 581137
run dialog can't handle command-line options
Last modified: 2009-08-18 22:18:10 UTC
The run dialog doesn't handle options. For example, typing "xterm" starts xterm as expecterm, but "xterm -rv" doesn't work and outputs: JS LOG: Could not run command xterm -rv.
Created attachment 138389 [details] [review] Let the run dialog accept command options This patch should fix the issue.
It would be better to use g_shell_parse_argv() (so that spaces in the command line can be quoted or escaped). It looks like it's currently not introspected quite right (argvp isn't marked "out"), but that could be fixed with some annotating.
Created attachment 140367 [details] [review] Use g_shell_parse_argv() in run dialog
Comment on attachment 140367 [details] [review] Use g_shell_parse_argv() in run dialog Looks good, please up version requirement on gobject-introspection to 0.6.4 when committing, since it looks like you are depending on a newly added annotation.