Dialog width not respected when YAD called in bash script

37 views
Skip to first unread message

robert....@gmail.com

unread,
Jun 8, 2024, 12:58:02 AM6/8/24
to yad-common
Hi, fellow YADers. This issue is an odd one and I haven't found it in this list or in GitHub.
I'm running YAD 0.40.0 and BASH 5.2.15.
If I launch YAD as a --form command in a terminal with --pos* and --width and --height, the dialog geometry appears as I specified.
If I put exactly the same command in a BASH shell script, the --width value isn't respected and I get a much wider dialog, about 700 px vs the desired 300 px.
My current workaround is not to use any geometry specifiers at all, and just locate the dialog with "--center". I get a dialog width suited to the text width, but not where I want it on my display.
How is YAD interacting with BASH in this way?
Thanks in advance for any suggestions.
P.S. The script is fine, no errors or warnings with shellcheck.

robert....@gmail.com

unread,
Jun 8, 2024, 2:22:06 AM6/8/24
to yad-common
The problem has mysteriously disappeared and the form now appears the same whether launched as a separate command or included in a shell script, with the original --pos*, --width and --height.

Ken

unread,
Jun 8, 2024, 5:15:06 AM6/8/24
to yad-c...@googlegroups.com
Have you tried to use --height --width --center --fixed? 

--
You received this message because you are subscribed to the Google Groups "yad-common" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yad-common+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/yad-common/dcd03f4e-95e7-4470-bc41-abdac17b439dn%40googlegroups.com.

robert....@gmail.com

unread,
Jun 8, 2024, 7:33:52 PM6/8/24
to yad-common
@Upgreyed, many thanks, yes I did try "--fixed" when the YAD dialog window was mysteriously widening, and it still widened. Since the problem has disappeared I'll only investigate it again if it re-appears: https://stackoverflow.com/questions/352906/how-do-you-approach-intermittent-bugs
Reply all
Reply to author
Forward
0 new messages