mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 14:35:57 +01:00
doc: add note about the list character of env XDG_CURRENT_DESKTOP
This commit is contained in:
parent
feede20314
commit
bbd4f9d2b1
2 changed files with 3 additions and 2 deletions
|
@ -119,8 +119,8 @@ static char *get_config_path(void) {
|
||||||
prefix[0] = config_home;
|
prefix[0] = config_home;
|
||||||
prefix[1] = SYSCONFDIR "/xdg";
|
prefix[1] = SYSCONFDIR "/xdg";
|
||||||
|
|
||||||
char *xdg_current_desktop = getenv("XDG_CURRENT_DESKTOP");
|
const char *xdg_current_desktop = getenv("XDG_CURRENT_DESKTOP");
|
||||||
char *config_fallback = "config";
|
const char *config_fallback = "config";
|
||||||
|
|
||||||
char *config_list = NULL;
|
char *config_list = NULL;
|
||||||
for (size_t i = 0; i < 2; i++) {
|
for (size_t i = 0; i < 2; i++) {
|
||||||
|
|
|
@ -18,6 +18,7 @@ xdpw will try to load the configuration file from these locations:
|
||||||
- /etc/xdg/xdg-desktop-portal-wlr/config
|
- /etc/xdg/xdg-desktop-portal-wlr/config
|
||||||
|
|
||||||
_$XDG_CONFIG_HOME_ defaults to _~/.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:
|
The configuration files use the INI file format. Example:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue