FS#48377 - [xorg-xrdb] cpp preprocessing changes terminal name linux to 1
Attached to Project:
Arch Linux
Opened by Michal Svoboda (pht) - Monday, 29 February 2016, 17:38 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 01 April 2016, 15:26 GMT
Opened by Michal Svoboda (pht) - Monday, 29 February 2016, 17:38 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 01 April 2016, 15:26 GMT
|
Details
I found that recently preprocessing via cpp was enabled for
xrdb.
( This causes a rather weird issues where you want to predefine terminal name for your terminal emulator to 'linux' (which we are all using - linux) Because CPP has predefined constant (linux=1) it will substitute the terminal name to 1. See https://bugs.archlinux.org/task/48264 As for why the predef is there, see http://stackoverflow.com/questions/19210935/why-does-the-c-preprocessor-interpret-the-word-linux-as-the-constant-1 Any idea how to escape the word linux, so it does not get expanded? Or can we revert |
This task depends upon
Even when both are installed you have the choice which one to use:
[andyrtr@laptop64 ~]$ man xrdb | grep -3 cpp
-cpp filename
This option specifies the pathname of the C preprocessor program to be used. Although xrdb was designed to use CPP, any program that acts
as a filter and accepts the -D, -I, and -U options may be used.
-nocpp This option indicates that xrdb should not run the input file through a preprocessor before loading it into properties.
I see ne need to revert to the old behavior that lead to different bugs.
I guess I could create $HOME/.xinitrc or something in /etc/X11/xinit/xinitrc.d/ to *override* the resources already loaded with cpp, but that really sounds like a terrible work-around!