problem when using ls in gtkdialog..
Posted: Mon 03 Jun 2013, 15:03
Hello.
i have wrote a command to list all gtk2 themes in /usr/share/themes:
ls -d /usr/share/themes/*/gtk-2.0 | awk -F"/gtk-2.0" '{print $1}'
the problem is when i try to put this command as an input command for comboboxtext, of course it will give me a Synatex error because of the '
so i tried to use a variable like $thing='{print $1}' , and in comboboxtext:
ls -d /usr/share/themes/*/gtk-2.0 | awk -F"/gtk-2.0" "$thing"
this way works very good on the terminal, but in gtkdialog it doesn't work, it gives me ls: write error: Broken pipe
any help ?
thanks.[/code]
i have wrote a command to list all gtk2 themes in /usr/share/themes:
ls -d /usr/share/themes/*/gtk-2.0 | awk -F"/gtk-2.0" '{print $1}'
the problem is when i try to put this command as an input command for comboboxtext, of course it will give me a Synatex error because of the '
so i tried to use a variable like $thing='{print $1}' , and in comboboxtext:
ls -d /usr/share/themes/*/gtk-2.0 | awk -F"/gtk-2.0" "$thing"
this way works very good on the terminal, but in gtkdialog it doesn't work, it gives me ls: write error: Broken pipe
any help ?
thanks.[/code]