{"action":"closed","issue":{"url":"https://api.github.com/repos/swaywm/sway/issues/1399","repository_url":"https://api.github.com/repos/swaywm/sway","labels_url":"https://api.github.com/repos/swaywm/sway/issues/1399/labels{/name}","comments_url":"https://api.github.com/repos/swaywm/sway/issues/1399/comments","events_url":"https://api.github.com/repos/swaywm/sway/issues/1399/events","html_url":"https://github.com/swaywm/sway/issues/1399","id":265515294,"node_id":"MDU6SXNzdWUyNjU1MTUyOTQ=","number":1399,"title":"possible bug when config variable is set in included file","user":{"login":"majewsky","id":24696,"node_id":"MDQ6VXNlcjI0Njk2","avatar_url":"https://avatars0.githubusercontent.com/u/24696?v=4","gravatar_id":"","url":"https://api.github.com/users/majewsky","html_url":"https://github.com/majewsky","followers_url":"https://api.github.com/users/majewsky/followers","following_url":"https://api.github.com/users/majewsky/following{/other_user}","gists_url":"https://api.github.com/users/majewsky/gists{/gist_id}","starred_url":"https://api.github.com/users/majewsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majewsky/subscriptions","organizations_url":"https://api.github.com/users/majewsky/orgs","repos_url":"https://api.github.com/users/majewsky/repos","events_url":"https://api.github.com/users/majewsky/events{/privacy}","received_events_url":"https://api.github.com/users/majewsky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-10-14T18:58:58Z","updated_at":"2018-07-14T03:44:57Z","closed_at":"2018-07-14T03:44:57Z","author_association":"NONE","body":"I wanted to put this in my config (which is shared across multiple systems):\r\n\r\n```\r\nset $wallpaper /usr/share/sway/Sway_Wallpaper_Blue_1920x1080.png\r\ninclude /home/username/.config/sway/config.d/wallpaper # local override for the $wallpaper variable\r\noutput * bg $wallpaper fill\r\n...\r\nbindsym $mod+Escape exec swaylock -i $wallpaper\r\n```\r\n\r\nHerein, the included file has just a single line\r\n\r\n```\r\nset $wallpaper /path/to/this/machine's/custom/wallpaper.png\r\n```\r\n\r\nHowever, the value set for `$variable` in the included file is not visible in the main config file where the variable is used. Hence, I'm seeing the default wallpaper. There are two options:\r\n\r\n1. This is not intended, and therefore a bug in the program.\r\n2. This is intended, and therefore a bug in the documentation since it doesn't explain this behavior."}}
{"actor":{"display_login":"RedSoxFan"}}