 Rave Yoda asks I'm curious about using GTK with shell scripts I've used Zenit and dialogue But would like to see other options if any and there are a number of options out there for full-blown glue glue Full-blown gooey's as well as simple dialogue programs, which actually do quite a bit now I've done a number of videos on Zenit in the past, but I'll go over a bunch of basic Zenit commands in the next video This video is not so much of a tutorial, but more of me talking about certain dialogues and something. I want to talk about here It's gonna be a short one be sure to check out the annotation in the playlist to the or in the description to the full Playlist where you can get to the next video, which I'll go over some Zenit commands But again, Zenit does basic dialogues and then there's dialogue and for those of you who aren't familiar Dialogue is a text-based dialogue mode if you've ever done a Debbie and text-based install Or you're just installing anything where dialogues come up in your shell Usually it's like a blue background and they'll be you know, you can move around It's still text-based, but it says that gooey feel to it That's what dialogue is and I want to talk about it for a moment because a couple years ago There was another program called x dialogue which worked identically at to dialogue But was an actual gooey Interface not just text-based and the nice thing about that application was since it was the commands were Interchangeable whether you typed in the shell x dialogue and then the command for a dialogue of some sort or just dialogue The command worked the same so what you could have done back then was write a shell script that detected is the gooey Interface running and do they have x dialogue installed if so use x dialogue and start using gooey Displace and the rest of your script stays identical because you're using a variable to issue that command Where it if it returned false that there is not a gooey running and they don't or they don't have x dialogue installed to default back To the text mode of dialogue. It was a great little thing, but the x dialogue I guess the it was a project It was abandoned hasn't been worked on and isn't really in the repositories anymore at least not for current versions of Debian So I'm assuming most Debian based systems and other operating systems and distros Don't have it in its repositories anymore, but I want to just bring that up in case you ever come across it in older scripts X dialogue Worked very similar to dialogue very similar identical dialogue at least as far as I could see And it was very nice to be able to switch between the two depending on what the user's interface was Now an example of that would be like this here So this is a script that I has an example in my notes And as you can see right here, I'm checking if the display is available So if you're running x org, I should really actually be checking also to make sure x dialogue is installed Now I can't actually show you this because again x dialogue is not my repositories I'm not gonna go search down the program someplace else and install it But this is the basic concept of how it would work as I said a lot of programs are used dialogue But if you add this if then statement at the beginning that sets a variable called dialogue then when you need it to call your program you just use that variable and Again, if your GUI was running this would be shown as a GUI displayed Dialogue and if not it'd be a text-based dialogue So the rest of your code other than this little if then statement at the beginning would be Interchangeable between the two programs and it was very nice. It's kind of sad that they abandoned it They were kind of very simple ugly dialogue boxes, but it was nice to have that option still Codes like this would still function even if I wrote this like this Properly where if it checked to make sure x dialogue was installed if you don't have x dialogue which you wouldn't on most newer systems It would just default to dialogue which is still available and widely used In many applications again an example would be if you were going to install Debian from it takes text-based interface installer also Lots of times if you're doing an upgrade on your system Using aptitude or apt to get you might get some dialogue boxes asking to confirm stuff inside your shell That's most likely dialogue. That's running and it's actually libraries that are also used in C And I guess other program language as well But dialogue is an external application using those libraries so you can call it from within shell scripts So this is just a quick little talk about that and You know in this example, you know, it's asking a question and then Depending on what it returns the shell would display a different message. So that's what this did anyway So Why did I talk about this because you might you might be curious about x dialogue? Maybe maybe some will come up with something similar to this in the future It'd be nice because again, it was just nice that you could do that It's just a shame that the project is no longer being worked on But I thank you for watching be sure to check out the next video in this playlist This is part of a playlist check out the link in the description for the full playlist and the next video Even though I've gone over in the past. I want to quickly go over some very basic zennedy GUI dialogues and then after that we're gonna go over a number of different GUI Options for your shell script. So I hope you're enjoying these videos And I hope that you like share subscribe and comment on this video. I hope that you have a great day