Gotsi Boon
unread,Jul 23, 2012, 7:32:46 AM7/23/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to yad-c...@googlegroups.com
Hi all,
I have a dialog-list with predefined values (testing.sh). Before starting the script with "yad --list" the user has to authenticate himself via a second script (starter.sh).
My problem is: Everytime I start the yad-list the list has an additional empty line. This happens only when authenticating first (using starter.sh).
Content of starter.sh:
#!/bin/bash
# starter.sh - script for authentification
# after successful athentification the "yad --list" script is executed (testing.sh)
gksudo --message "Authenticate for access:" testing.sh && sudo -k &
Content of testing.sh:
#!/bin/bash
# testing.sh shows the list with values to choose from
choice=`yad --list --width=780 --height=245 \
--title="Testing Yad lists" --text="Testing Yad lists: Window shall not be resizable, etc." \
--column="Menu" --column="Description" --column="id" --column="@back@" --no-headers --print-column="3" --hide-column=3 --separator="" \
"Menu Element 1 " "Description for menu element " "a" "#FFF" \
"Menu Element 2 " "Description for menu element " "b" "#a3bfd7" \
"Menu Element 3 " "Description for menu element " "c" "#FFF" \
"Menu Element 4 " "Description for menu element " "d" "#a3bfd7" \
"Menu Element 5 " "Description for menu element " "e" "#FFF" \
"Menu Element 6 " "Description for menu element " "f" "#a3bfd7" \
--button="gtk-ok:0" --button="gtk-close:1"`; ch=$?
How to reproduce:
First create "starter.sh" and "testing.sh" in one directory. Execute "starter.sh", authenticate with a sudo-capable user and the list should be shown. Scroll down to the end of the list and you'll find an additional empty line which is selectable (and shouldn't be there).
If the script "testing.sh" is executed directly (without starter.sh) this additional empty line is NOT shown.
How do I get rid of this empty line? It shouldn't be there and I don't want it there! ;-[
Any help or hint is very much appreciated.
Thanks & regards,
gotsiboon.