[PATCH] Add '-xserver-keymap-dir' option to print .xkm file directory and exit

Daniel Stone daniel at fooishbar.org
Wed Jul 18 02:15:53 PDT 2012


Oops, forgot the list ...

On 18 July 2012 10:15, Daniel Stone <daniel at fooishbar.org> wrote:
> Hi,
> Nitpicking I know, but how about -print-xkm-cache-dir or something?
> -xserver is a bit redundant when you're starting the X server ...
>
> On 17 July 2012 22:41, Keith Packard <keithp at keithp.com> wrote:
>> @@ -751,6 +751,10 @@ XkbProcessArguments(int argc, char *argv[], int i)
>>          XkbDfltRepeatInterval = (long) atoi(argv[i]);
>>          return 2;
>>      }
>> +    if ((strcmp(argv[i], "-xserver-keymap-dir") == 0)) {                                /* -xserver-keymap-dir */
>> +        printf ("%s\n", XKM_OUTPUT_DIR);
>> +        exit(0);
>> +    }
>>      return 0;
>>  }
>
> This isn't necessarily the directory that will be used, cf.
> xkb/ddxLoad.c:OutputDirectory().
>
> Cheers,
> Daniel


More information about the xorg-devel mailing list