LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2015, 01:26 PM   #1
BrokenWindows82
LQ Newbie
 
Registered: Dec 2014
Posts: 7

Rep: Reputation: Disabled
Zenity help needed for dialog boxes please!


So here is the situation. We just upgraded to RHEL6, and our customer has changed their required user login banner to be much longer than before. Zenity creates the window with the required text, but the window goes off the screen so you can't see the bottom of the writing nor the buttons to actually click on them. See first attachment.
Attached Thumbnails
Click image for larger version

Name:	zenity1.png
Views:	60
Size:	26.0 KB
ID:	18175  
 
Old 04-20-2015, 01:28 PM   #2
BrokenWindows82
LQ Newbie
 
Registered: Dec 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
So then I figured, I will just resize the dialogue box. Well, zenity allows you to do that, but it won't actually put text there (see attachment 2.) All the text stays scrunched up there. No matter what I do I can't get the text to actually show up in the rest of the box to make it all readable and make it show the buttons. I also can't seem to resize the text for some unknown reason.

Anyone have any ideas? Any way to add a scroll bar to this thing?
Attached Thumbnails
Click image for larger version

Name:	zenity2.png
Views:	26
Size:	36.0 KB
ID:	18176  

Last edited by BrokenWindows82; 04-20-2015 at 01:29 PM.
 
Old 04-20-2015, 03:26 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
It would be an immense help to show us the code you're using.
 
Old 04-20-2015, 03:35 PM   #4
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
Did you try pointing out to the customer that it's totally worthless and then removing it? No one who is accessing the system illicitly is going to read it and say "well, gosh, I guess I better cease my nefarious activity right away". The majority of people probably won't bother to read it, even fewer will read all of it if it's long enough to require a scrollbar.

Code:
$ zenity --title="pointless message" --text-info --filename=pointlessmessage.txt
where pointlessmessage.txt is a file contain whatever text needs to be displayed.

What if someone logs in by hitting ctrl-alt-f3 then does a non-graphical login. Do they be shown the message, or are such logins not subject to the same conditions?


If you put the blah in to /etc/motd it will gets displayed to people doing non-graphical local logins and ssh (if that's allowed) too.
 
1 members found this post helpful.
Old 04-20-2015, 04:06 PM   #5
BrokenWindows82
LQ Newbie
 
Registered: Dec 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by arizonagroovejet View Post
.

Code:
$ zenity --title="pointless message" --text-info --filename=pointlessmessage.txt
where pointlessmessage.txt is a file contain whatever text needs to be displayed.
We just figured that out; I was just about to update this thread and say that we got it figured out. But thank you anyways!

Initially the text was in the actual post login script, but I guess the previous banner was just small enough to fit, and so when updating it I tried to do things the same way as it was before. I appreciate y'alls fast responses though. Cheers!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Zenity+file dialog+limitation ? defila Programming 5 10-25-2013 06:55 AM
[SOLVED] Zenity - force one dialog / window over another stan79 Linux - General 8 08-10-2013 04:05 PM
show for-loop result in one zenity dialog Dr_Death_UAE Programming 3 11-01-2009 03:04 PM
Improve the zenity dialog box....... shivarajM Linux - Software 1 05-02-2009 06:08 AM
program output displayed in zenity/ gdialog/ dialog schneidz Programming 1 12-05-2006 02:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration