v1cont / yad

Yet Another Dialog
GNU General Public License v3.0
666 stars 58 forks source link

[Question] How could a value for `--plug`/`--key` be generated ? #260

Closed KaKi87 closed 3 months ago

KaKi87 commented 6 months ago

If I use date +%s%3N (number of milliseconds since Epoch) for example, I get the following error :

Unable to parse command line: Integer value “” for --plug out of range

Thanks

tspier commented 3 months ago

Have you tried using KEY=$RANDOM and then referring to it with yad --plug=$KEY?

v1cont commented 3 months ago

you can use $RANDOM, $!, $$ or any arbitrary value getting from rolling dices. the only condition - the value must be positive signed integer and same for all embedded dialogs

KaKi87 commented 3 months ago

Very well, thanks !