Could not make --rest option to work
Hi. Despite all my efforts, I can not make yad to read additional arguments from a file.
Here is what I do:
(
echo "--title" # also tried "title" without dashes, did not help
echo "My title"
) >_args
yad --rest=_args
My expectation: yad shows a window titled with "My title" string. But yad shows the default window instead. Could you please help?
$ yad --version
12.0 (GTK+ 3.24.35)
--rest is for extra command line arguments such as list or form data. not for options
if you wish to use a kind of external entity for some options - there is YAD_OPTIONS environment variable
@v1cont what format would this file be in? Not finding any examples anywhere.
@joeskeen, the --rest file is formatted as text -- lines terminated by the new line sequence.
With --rest=FILE yad fills all expected but missing positional arguments by reading the next line of FILE.
So if you
cat << EOF > /tmp/restfile
hello there
third line
EOF
Then run
yad --form --field=L1 --field=L2 --field=L3 --rest=/tmp/restfile
yad will display a form with three text entry fields labeled L1, L2 and L3. L1 will default to "hello world", L2 to "", and L3 to third line".