Skip to Content.
Sympa Menu

cat-users - [cat-users] Linux installer displays TOS screen with acknowledgment buttons off the screen

cat-users AT lists.geant.org

Subject: The mailing list for users of the eduroam Configuration Assistant Tool (CAT)

List archive

[cat-users] Linux installer displays TOS screen with acknowledgment buttons off the screen


Chronological Thread 
  • From: Brian Epstein <bepstein AT ias.edu>
  • To: cat-users AT geant.net
  • Subject: [cat-users] Linux installer displays TOS screen with acknowledgment buttons off the screen
  • Date: Thu, 10 Oct 2013 08:50:54 -0400
  • List-archive: <https://mail.geant.net/mailman/private/cat-users/>
  • List-id: "The mailing list for users of the eduroam Configuration Assistant Tool \(CAT\)" <cat-users.geant.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

CAT Users,

It looks like a bug in zenity is causing the TOS acknowledgment
screen to play the buttons off of some of our screens. We trimmed it
down, but it is putting a lot of spaces in the mix.

https://bugs.launchpad.net/ubuntu/+source/zenity/+bug/1206760

I modified the script to use the fmt utility to do the line wrapping,
and then call zenity with the --no-wrap flag. This fixed the issue
for us.

I'm attaching the patch here in case it is affecting other folks as
well. I think the same thing could be applied at other places within
the script that seem to suffer from the same zenity issue.

Thanks,
ep

- --
Brian Epstein
<bepstein AT ias.edu>
+1 609-734-8179
Manager, Network and Security Institute for Advanced Study
Key fingerprint = 128A 38F4 4CFA 5EDB 99CE 4734 6117 4C25 0371 C12A
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJWoqUACgkQYRdMJQNxwSpX+ACdEgvGmrjNayH72kVCtH/R0KRc
Wh0An1/6Cm4L8JxBUvJcJiQxTpz9VhDE
=DOXx
-----END PGP SIGNATURE-----
--- eduroam-linux-IfAS.sh.orig	2013-10-10 08:41:52.330866302 -0400
+++ eduroam-linux-IfAS.sh	2013-10-10 08:41:52.271861785 -0400
@@ -60,7 +60,8 @@
      fi
   fi
   if [ ! -z $ZENITY ] ; then
-     if $ZENITY --question --text="${1}\n${2}?" --title="$T" ; then
+     text=`echo "${1}" | fmt -w60`
+     if $ZENITY --no-wrap --question --text="${text}\n${2}?" --title="$T" ; then
        return 0
      else
        return 1

Attachment: eduroam_zenity.patch.sig
Description: PGP signature

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature




Archive powered by MHonArc 2.6.19.

Top of Page