summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-06-28 18:58:54 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-06-28 18:58:54 +0100
commitdfb89e3556c02bcc5fbe62f90e3c716a2cbe93da (patch)
tree678d93ea370f60afc6d6e1f2fe5bb815e9f78aeb /generator
parent7f16c346bbeba2f2fe3c31ccb85158178a284d84 (diff)
downloadlibguestfs-dfb89e3556c02bcc5fbe62f90e3c716a2cbe93da.tar.gz
libguestfs-dfb89e3556c02bcc5fbe62f90e3c716a2cbe93da.tar.xz
libguestfs-dfb89e3556c02bcc5fbe62f90e3c716a2cbe93da.zip
fish: Add 'display' command for displaying graphical files.
Diffstat (limited to 'generator')
-rw-r--r--generator/generator_actions.ml14
1 files changed, 14 insertions, 0 deletions
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
index d741dfb5..b0b4af45 100644
--- a/generator/generator_actions.ml
+++ b/generator/generator_actions.ml
@@ -6060,6 +6060,20 @@ them with the help of L</glob> like this:
glob copy-out /home/* .");
+ ("display", (RErr,[], []), -1, [], [],
+ "display an image",
+ " display filename
+
+Use C<display> (a graphical display program) to display an image
+file. It downloads the file, and runs C<display> on it.
+
+To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE>
+environment variable. For example to use the GNOME display program:
+
+ export GUESTFISH_DISPLAY_IMAGE=eog
+
+See also L<display(1)>.");
+
("echo", (RErr,[], []), -1, [], [],
"display a line of text",
" echo [params ...]