You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the specified file cannot be accessed, a fallback color do not is provided to the output. Sway show config file error on top of screen, about the file unable to access:
The man page describes that this is possible, if I understand correctly it would not be necessary to generate an error if the file cannot be accessed and if there is a fallback color in the configuration to fill the background.
output <name> background|bg <file> <mode> [<fallback_color>]
Sets the wallpaper for the given output to the specified file, using the given scaling mode (one of "stretch", "fill", "fit", "center", "tile"). If the specified file cannot be accessed or if the image does not fill the entire output, a fallback color may be provided to cover the rest of the output. fallback_color should be specified as #RRGGBB. Alpha is not supported.
The text was updated successfully, but these errors were encountered:
currently, the output background command handler prematurely
returns with an error if the background file cannot be accessed.
It should only error if user did not provide fallback color.
closesswaywm#8556
currently, the output background command handler prematurely
returns with an error if the background file cannot be accessed.
It should only error if user did not provide fallback color.
closesswaywm#8556
Changes
- Introduce variables to avoid uneccessary writing on output members
- Log a debug message when fallback is being used over inaccessible
file
- Always parse the background color and swaynag warn if it is incorrect
- when updating output member variables, free previous values
- add cleanup label and goto it if `strdup` fails
- Move output->member initializations to before parsing fallback, Also
free and init output->background as well
Sway Version:
Configuration File:
The man page describes that this is possible, if I understand correctly it would not be necessary to generate an error if the file cannot be accessed and if there is a fallback color in the configuration to fill the background.
The text was updated successfully, but these errors were encountered: