Wrapping text with --width is broken in newer versions of YAD (tested on 0.38.2).
To reproduce:
yad --title="Lorem ipsum" \
--text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." \
--wrap \
--geometry=600x180 \
--fixed \
--button="OK"
I imagine that the right way should be the text being wrapped at word boundaries correctly and fitting in the 600px space set by width in --geometry (same issue using --width and --height). However, in 0.38.2, that same command produces text on a single line only, ignoring the width parameter completely.
However, this code works, because just one line:
yad --title="Lorem ipsum" \
--text="Lorem ipsum dolor sit amet." \
--geometry=600x180 \
--fixed \
--button="OK"
These tests were made on Debian 9.4 (x86_64), using package in debian official repository.
I have removed debian package and installed from source code the version 0.40.0. This problem do not occur.
This code works:
yad --title="Lorem ipsum" \ --text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." \ --geometry=800x600 \ --button="OK"
BUT:
If i add "--fixed" it ignores "--geometry" and window is sized to text.
Last edit: Daniel D. Rodrigues 2018-06-28