xwmshim starts X11 GUI programs on a chosen EWMH workspace under window
managers such as xfwm4 that do not provide a native "start on workspace"
command.
The release contains two pieces:
lib/xwmshim.so: an LD_PRELOAD shim that marks newly created top-level X11
windows with _NET_WM_DESKTOP.bin/xws: a static command launcher with the shim embedded. At runtime it
materializes the embedded shim under the caller's secure XDG_RUNTIME_DIR,
sets LD_PRELOAD and XSTART_DESKTOP, then executes the requested program.Workspace numbers are zero-based. xws -w 8 -- google-chrome targets workspace
9.
xws -w 8 -- google-chrome --user-data-dir=/tmp/some-profile --new-window 'https://example.com'
See repository for more: https://github.com/sa6mwa/xwmshim