| Home ⋅ All Commands ⋅ Grouped Commands ⋅ List of all modules ⋅ FAQ (on line) |

## InfoStoreAdd

`InfoStoreAdd` `key` `value`

Stores the `value` at the given `key`. This is useful to store generic information used in the lifetime of an fvwm config file. For example storing program preferences for opening video files.

The purpose of this command is to store internal information to fvwm which can be used bu fvwm functions, or when opening programs of a certain type. Previous to this command the only way to do this was via SetEnv but this is discouraged because it places such information in the environment, which pollutes it and makes the information global to other processes started by fvwm which may then modify them which might not be what's wanted. Hence the point of InfoStoreAdd is to still allow for such information to be stored, but kept internal to fvwm.

In this way, one can build up as many key/value pairs as needed. Recalling the value of a given key happens through fvwm's usual expansion mechanism. See the Command Expansion section for more details. For example:

        InfoStoreAdd teddybearprog xteddy

        # Echo the value of teddybearprog
        Echo $[infostore.teddybearprog]

Removing an entry from the InfoStore is done with the InfoStoreRemove command.

fvwm 2.6.8