diff --git a/src/core/config.c b/src/core/config.c index 1953e8c..9de743b 100644 --- a/src/core/config.c +++ b/src/core/config.c @@ -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++) { diff --git a/xdg-desktop-portal-wlr.5.scd b/xdg-desktop-portal-wlr.5.scd index 3e1bf26..c83f27c 100644 --- a/xdg-desktop-portal-wlr.5.scd +++ b/xdg-desktop-portal-wlr.5.scd @@ -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: