A GUI? In BASH?!?

preview_player
Показать описание
If you love BASH scripting, but wish you could have a fancy GUI toolkit -- well your wish is granted with Zenity. I didn't realize how easy it was to add a GUI interface to my BASH scripts until I moved to Linux as my main desktop. But holy cat biscuits is it awesome!

#linux #bash #gui #scripting
Рекомендации по теме
Комментарии
Автор

Nice. One thing I would suggest is to add a check for existing directories and files so that you don't accidentally overwrite existing comics if you mistype a comic number.

bananalope
Автор

I just learned about this during the week and I'm already trying to convert the script I created into a binary. I started playing with zenity at work to make it easier for me to quickly run OpenSSL commands I often use. I finished the script today, but my last touches are to have the terminal window suppressed. Definitely gives me an idea of how developers build applications. What I did wasn't much, but I'm proud of it and excited to learn more.

TheSuperSaiyanGoku
Автор

Nice job! I'm also new to "dialog" programs (I saw the "yad" comment below). For simple string parsing, I would use "cut' instead of "awk".

danwilhelm
Автор

Also check out Yad (Yet Another Dialog). It's a fork of Zennity with many improvements.

MichaelWilliams-lrmb