Skip to content

Commit

Permalink
doc: add note about the list character of env XDG_CURRENT_DESKTOP
Browse files Browse the repository at this point in the history
  • Loading branch information
columbarius committed May 21, 2021
1 parent feede20 commit bbd4f9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down
1 change: 1 addition & 0 deletions xdg-desktop-portal-wlr.5.scd
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit bbd4f9d

Please sign in to comment.