GEANT / CAT

CAT - the Configuration Assistant Tool for Enterprise Wi-Fi networks such as eduroam
Other
93 stars 52 forks source link

Prefer `yad` to `zenity` and `kdialog` on Linux #302

Closed sdasda7777 closed 4 months ago

sdasda7777 commented 4 months ago

I believe that yad should be prefered to zenity and kdialog, since it seems to have the most options. For example, both yad and zenity support creation of forms with multiple input fields (kdialog does not), but only yad supports default values for these fields. As far as I can tell, yad has been recommended in favour of zenity for quite a while now.

This change of priorities won't effect systems where only one of these supported libraries is installed, of course.

twoln commented 4 months ago

I am away from office till the end of the week, so will do some testing next week. Unfortunately the commit adds new strings that should be translated and the translation window for release 2.1.2 is now closed. I will see if I can temporarily hide the new strings while not loosing the the approach. Will see. There is also one other new thing that needs to be known. There is now a geteduroam application for Linux that could replace current installers. It is still too early to make this move but it probably is not worth investing too much work in the current approach.

sdasda7777 commented 4 months ago

Thanks, but there are no new strings in this commit. Is this meant for the other PR?

twoln commented 4 months ago

Yes sorry for that I meant your current input as a whole. Or was I mistaken that there is one or two new strings there?

sdasda7777 commented 4 months ago

No, you're right, there are two-ish new strings in the other PR, but not here 😅

twoln commented 4 months ago

I just installed a brand new Ubuntu 24.04 desktop and it did not have yad out of the box ...

sdasda7777 commented 4 months ago

Try sudo apt-get install yad...

twoln commented 4 months ago

I know that :). But when you promoted yad, I assumed most people would have this by default. This does not seem so, therefore it will be zenity for them anyway.

sdasda7777 commented 4 months ago

That may or may not be true, I don't have any numbers regarding the respective popularities. I'm only saying that I believe that when yad is installed, it should be used preferentially, because it has more features compared to the other two. (Yes, zenity too, but especially kdialog)

twoln commented 4 months ago

Sure, I have nothing against having yad first.

sdasda7777 commented 4 months ago

Implemented in ac197c828fed72f9e30b10e6d355655b9401760d.