LCDproc development and user support list

Text archives Help

[Lcdproc] [PATCH] Fix client_add_key for minus

Chronological Thread 
  • From: bsdfan at (Markus Dolze)
  • Subject: [Lcdproc] [PATCH] Fix client_add_key for minus
  • Date: Wed, 10 Oct 2012 18:47:48 +0200

-------- Original-Nachricht --------
> Datum: Fri, 5 Oct 2012 08:12:57 +0100
> Von: Simon Dawson <spdawson at>
> An: lcdproc at
> Betreff: [Lcdproc] [PATCH] Fix client_add_key for minus

> Calling client_add_key as follows
> client_add_key -
> will fail. However using an explicit -shared option, like this:
> client_add_key -shared -
> will succeed. This is caused by a failure to parse the - key token, which
> is
> mistaken for the first character of an option argument.
> The client_add_key command also returns a spurious "success" message when
> a
> malformed option is supplied.
> The attached patch fixes both issues.


after looking into this, I am convinced that this behavior is intentionally
to some degree.

Therefore, you should use

client_add_key -shared -

if you want to use the minus character as a key. I will update to
documentation to describe this.

A similar thing exists with menu items that could not have names starting
with a minus character if using the short version of menu_add_item. The
documentation has been updates while applying your other patch.


Archive powered by MHonArc 2.6.18.

Top of page