doc: add note about the list character of env XDG_CURRENT_DESKTOP

This commit is contained in:
columbarius 2021-05-20 22:05:52 +02:00
parent feede20314
commit bbd4f9d2b1
2 changed files with 3 additions and 2 deletions

View file

@ -119,8 +119,8 @@ static char *get_config_path(void) {
prefix[0] = config_home;
prefix[1] = SYSCONFDIR "/xdg";
char *xdg_current_desktop = getenv("XDG_CURRENT_DESKTOP");
char *config_fallback = "config";
const char *xdg_current_desktop = getenv("XDG_CURRENT_DESKTOP");
const char *config_fallback = "config";
char *config_list = NULL;
for (size_t i = 0; i < 2; i++) {

View file

@ -18,6 +18,7 @@ xdpw will try to load the configuration file from these locations:
- /etc/xdg/xdg-desktop-portal-wlr/config
_$XDG_CONFIG_HOME_ defaults to _~/.config_.
_$XDG_CURRENT_DESKTOP_ can be a colon seperated list. Each element of that list will be tried.
The configuration files use the INI file format. Example: