When I run the following script with some arguments like arg1 arg2 arg3:
#!/bin/bash
zenity --entry --text="$@"
zenity creates an entry dialog with this text: "arg1" whereas I expect "arg1 arg2 arg3"
If I use a variable like the following script it shows all arguments for the entry text.
#!/bin/bash
text="$@"
zenity --entry --text="$text"
Whats the difference between these scripts?
Need to create a list for yad (zenity) from directory listings:
dir-a contains files 1,2,3,4,5,6
dir-b contains files a,b,c,d,e,f
Final list (in a variable) needs to read:
"1" "a" "2" "b" "3" "c" "4" "d" "5" "e" "6" "f"
( For simplicity I will always ensure that &q
or without a catfish, work in progress, requires locate;guilocate#!/bin/bash
somestring="$(zenity --entry --text="" --title search --width=350)" &&
locate $somestring | zenity --text-info --width=650 --height=600I would prefer to send a filelist back to thunar if possible?
Was looking across the inter net and i came across this nice little script. Its a Zenity session manager for Openbox, and i personally think its something that Openbox needs. (a session manager i mean). Theirs naturally a few things you'll need to do to use this script.
Writing an installation-script for Minecraft, been trying to get the user to input password, check password and on wrong password as if the user would like to try again or abort. Finally came up with what seems a working solution (for adding a entry to the application-menu), but now I wonder if this unsafe in any way? Is there a better solution?
Code:
while !
Trilby wrote:Exit code in the prompt is easy, just put $?
After a lot of reading and breaking things, i've found a way to mount my Creative Zen X-Fi in Thunar.Here's the script:#!
I'm trying to create a Bash script which will move files to the trash, basically something that does the same thing as "kioclient move file1 file2 file3 trash:/" but more easily.
hi,
after upgrading zenity on Fedora 17 x86_64 from zenity-3.4.0-1.fc17.x86_64 to zenity-3.4.0-2.fc17.x86_64,
the list function works any longer.
with zenity-3.4.0-1.fc17.x86_64 everything work ok.
a example command that works with zenity-3.4.0-1.fc17.x86_64
Code:
echo "+ 1, Unknown (AC3) (2.0 ch) (iso639-2: und), 48000Hz, 384000bps" | grep '^+ ' | sed -e "s/+ /\