chiark / gitweb /
example can run other programs
[chiark-tcl-applet.git] / example
diff --git a/example b/example
index 6d3eb65..bd05b17 100755 (executable)
--- a/example
+++ b/example
@@ -25,7 +25,8 @@ applet::setup-tooltip { puts VIS } { puts INVIS }
 applet::tooltip-set "line\nanother"
 
 proc cmdline {id orientation} {
-    return [list xacpi-simple -into $id]
+    global argv
+    return [concat $argv $id]
 }
 
 applet::setup-subproc cmdline