Content-type: text/html; charset=UTF-8 Man page of X2GOUPDATEOPTIONSSTRING

X2GOUPDATEOPTIONSSTRING

Section: Unknown - X2Go Server Bug! (1)
Updated: 2019-11-06
Index Return to Main Contents
 

NAME

x2goupdateoptionsstring - X2Go Agent Options String Manipulator  

SYNOPSIS

x2goupdateoptionsstring --help|-h|-?
x2goupdateoptionsstring --man
x2goupdateoptionsstring [--debug|-d] [--] [-|+]key[=value] ...
 

DESCRIPTION

x2goupdateoptionsstring is a utility for manipulating options strings as passed to X2Go Agent/NX Agent.

Call it with optional flags, the options string as the first parameter and the options you want to manipulate as additional parameters. At least one additional parameter must be provided.

It can either add, remove or replace components.

To add or replace a component, pass key[=value] or +key[=value] as a parameter. The latter syntax is useful if key starts with a dash and would therefore be interpreted as a removal operation. If the options string does not include a key key, it will be appended to the end of the options string. If it already exists, either with no value or a different value, the component will be replaced with the provided value.

To fully remove a component, pass -key. To only remove it if it is set to a specific value, pass -key=value.

You can terminate program options parsing via a standard double-dash (--) pseudo-option. It is recommended to always do so if you pass removal transformation operations, even if no actual options are used to avoid misinterpreting such transformation options as options/flags to the program.  

OPTIONS

--help|-?|-h
Print a brief help message and exits.
--man
Prints the manual page and exits.
--debug|-d
Enables noisy debug output.
 

EXAMPLE

For an options string such as

 nx/nx,clipboard=both,foo:50

calling "x2goupdateoptionsstring 'nx/nx,clipboard=both,foo:50' '-clipboard'" shall return

 nx/nx,foo:50

while calling "x2goupdateoptionsstring 'nx/nx,clipboard=both,foo:50' '-clipboard=server'" shall return

 nx/nx,clipboard=both,foo:50

Calling "x2goupdateoptionsstring 'nx/nx,clipboard=both,foo:50' 'bar'" shall return

 nx/nx,clipboard=both,foo,bar:50

and calling "x2goupdateoptionsstring 'nx/nx,clipboard=both,foo:50' '+-bar' 'foo=gulp' '-clipboard=client'" shall return

 nx/nx,clipboard=both,foo=gulp,-bar:50

 

AUTHOR

This manual has been written by Mihai Moldovan <ionic@ionic.de> for the X2Go project (https://www.x2go.org).


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLE
AUTHOR

This document was created by man2html, using the manual pages.
Time: 03:28:03 GMT, November 06, 2019