[X2Go-Commits] [x2goserver] 43/99: x2goserver/lib/x2goupdateoptionsstring: document how to cheat and just compact options strings.
git-admin at x2go.org
git-admin at x2go.org
Mon Dec 28 06:10:44 CET 2020
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2goserver.
commit d71b0c213efc123289a8b67a6134488aaf830d7f
Author: Mihai Moldovan <ionic at ionic.de>
Date: Tue Nov 10 07:48:31 2020 +0100
x2goserver/lib/x2goupdateoptionsstring: document how to cheat and just compact options strings.
---
debian/changelog | 2 ++
x2goserver/bin/x2goupdateoptionsstring | 19 +++++++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 96cb0367..f917c5e6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -269,6 +269,8 @@ x2goserver (4.1.0.4-0x2go1.2) UNRELEASED; urgency=medium
- x2goserver/lib/x2goupdateoptionsstring: add links to
X2Go::Server::Agent::NX::Options documentation on option strings and
transformations.
+ - x2goserver/lib/x2goupdateoptionsstring: document how to cheat and just
+ compact options strings.
* debian/control:
+ Build-depend upon lsb-release for distro version detection.
* debian/x2goserver.manpages:
diff --git a/x2goserver/bin/x2goupdateoptionsstring b/x2goserver/bin/x2goupdateoptionsstring
index 5796c359..cb6ef453 100755
--- a/x2goserver/bin/x2goupdateoptionsstring
+++ b/x2goserver/bin/x2goupdateoptionsstring
@@ -407,6 +407,8 @@ For an options string such as
nx/nx,clipboard=both,foo:50
+=over 2
+
calling C<x2goupdateoptionsstring 'nx/nx,clipboard=both,foo:50'
'-clipboard'> shall return
@@ -427,6 +429,23 @@ and calling C<x2goupdateoptionsstring 'nx/nx,clipboard=both,foo:50' '+-bar'
nx/nx,clipboard=both,foo=gulp,-bar:50
+=back
+
+For an options string such as
+
+ nx/nx,clipboard=both,foo=bar,bar=baz,foo=oof:50
+
+=over 2
+
+you can get a compacted version by cheating a bit and providing a
+transformation which will certainly be a no-operation using
+C<x2goupdateoptionsstring '-c'
+'nx/nx,clipboard=both,foo=bar,bar=baz,,foo=oof,:50' '-'>, which shall return
+
+ nx/nx,clipboard=both,foo=oof,bar=baz:50
+
+=back
+
=head1 AUTHOR
This manual has been written by
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goserver.git
More information about the x2go-commits
mailing list