XSetCommand

Syntax

XSetCommand(display, w, argv, argc)
      Display *display;
      Window w;
      char **argv;
      int argc;

Arguments

display Specifies the connection to the X server.
w Specifies the window.
argv Specifies the application's argument list.
argc Specifies the number of arguments.

Description

The XSetCommand() function sets the command and arguments used to invoke the application. (Typically, argv is the argv array of your main program.) If the strings are not in the Host Portable Character Encoding, the result is implementation dependent.

XSetCommand() can generate BadAlloc and BadWindow errors.

Diagnostics

BadAlloc The server failed to allocate the requested source or server memory.
BadWindow A value for a Window argument does not name a defined Window.

See also

XAllocClassHint(), XAllocIconSize(), XAllocSizeHints(), XAllocWMHints(), XGetCommand(), XSetTextProperty(), XSetTransientForHint(), XSetWMClientMachine(), XSetWMColormapWindows(), XSetWMIconName(), XSetWMName(), XSetWMProperties(), XSetWMProtocols(), XStringListToTextProperty(), "Setting and Reading the WM_COMMAND Property".
Christophe Tronche, ch@tronche.com