> Your code does not work on my system running yad version 0.17.1.1 There is
> no --name dialog as per the yad man page. The $@ shell variable is not
> displayed in the --text-info dialog. If I remove --name, leaving a blank
> line in its place, $@ is expanded, but bash throws an error stating
> --window-icon=text-editor: command not found
> If I remove the blank line, I get no error but the variable does not
> display in the --text-info dialog even though it is being passed to the
> script, as `echo $@` displays it on the command line. Can anyone tell me
> what is happening here? Thanks for any enlightenment
>
--name is a standard gtk option. you can see info about it in output of yad --help-gtk.
when you remove "--name ... " you forgot to add a backslash to the end of line, that's why
bash interprets --window-icon=text-editor as a new command
--
Victor Ananjevsky <anan...@gmail.com>
> OK, but where does the value for the --name option show up? When I `wmctrl
> -l` or `xwininfo`, the value for name is not there, only the value for
> --title.
use wmctrl -l -x
> Also, the command line parameters are displayed ONLY when there is
> an error, such as if the blank line is left without a continuation
> character, but then the lines following that blank line are of course not
> recognized by yad. This is very confusing! Is the order of options
> important? I ask this because I have rearranged them from the original so
> they are logically grouped. Here is the code:
you can't use --filename option and stdin simultaneously. if you need this, try something like
echo -e "$@\n$(< testnotes.txt)" | yad --text-info > testnotes.txt
--
Victor Ananjevsky <anan...@gmail.com>