After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 159604 - Display MOTD file when logging into GNOME
Display MOTD file when logging into GNOME
Status: RESOLVED NOTABUG
Product: gnome-session
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-11-26 23:35 UTC by APF
Modified: 2008-04-09 16:20 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Patch that implements MOTD in gnome-session (3.59 KB, patch)
2005-10-04 18:14 UTC, Rodrigo Moya
none Details | Review
gsm-motd.c (3.93 KB, text/plain)
2005-10-04 18:15 UTC, Rodrigo Moya
  Details
gsm-motd.h (102 bytes, text/plain)
2005-10-04 18:16 UTC, Rodrigo Moya
  Details

Description APF 2004-11-26 23:35:28 UTC
(I have placed this under the "gnome-desktop" category but please forgive me if
this is not the most appropriate place for it.)

1.  When the user logs into GNOME, a simple dialogue box should appear
displaying the MOTD (Message of the Day) file.  Traditionally, at the command
line, this always appeared upon log in, so GNOME should have this functionality too.

2.  The dialogue box should have two buttons, one being "Okay" to dismiss the
message.  (It will then reappear the next time the user logs in.)  The second
button should be "Do not show again until message updated) or more appropriate
words to that affect.  When this is clicked, the message will not appear on any
subsequent log-ins until the System Administrator updates the Message of the Day.

3.  When the root user logs in, a third button should be available, this being
"Edit Message."  The user can then input or deleted text, revising the Message
of the Day.
Comment 1 Brent Smith (smitten) 2005-07-22 16:08:28 UTC
Seems like a unique feature request, I will mark as new.

Note that you can probably achieve the same functionality with an application like
zenity and putting it in the session startup...
Comment 2 Rodrigo Moya 2005-10-04 18:14:09 UTC
Created attachment 53025 [details] [review]
Patch that implements MOTD in gnome-session
Comment 3 Rodrigo Moya 2005-10-04 18:15:22 UTC
Created attachment 53026 [details]
gsm-motd.c
Comment 4 Rodrigo Moya 2005-10-04 18:16:03 UTC
Created attachment 53027 [details]
gsm-motd.h
Comment 5 apf 2006-07-11 06:50:18 UTC
I am the person who originally logged this suggestion quite a while ago.  I have noticed, with interest, the discussion here:

http://live.gnome.org/UnixPowerForDesktop

and I tend to agree with Gratton's comments regarding the idea of having a notification bubble that dismisses itself after a time.  

Great to see that my idea has been taken onboard by developers (I am not a programmer myself.)  Really makes it seem that open source works and that people are listening.

The whole idea of bringing Unix Power to the Desktop is fascinating and I look forward eagerly to see how you strike a balance between flexibility and your already excellent standards of usability.  Keep up the good work.  I'm looking forward to 2.16 and, eventually, Topaz.
Comment 6 Tom Tromey 2006-09-28 02:06:28 UTC
FWIW I don't think this needs to go in the session manager.
I think it could easily be done via a separate program that
either pops up a window or shows something in the notification area.
In general I think the session manager should be as small as
possible and have as little UI as possible, and only things
which really must be done in the session manager should be done there.

Comment 7 Vincent Untz 2006-10-08 15:02:51 UTC
I agree with Tom. However, we could decide to ship a small executable within the gnome-session tarball that would use the autostart spec to achieve this.
Comment 8 Tom Tromey 2006-10-10 02:34:23 UTC
It occurred to me today that this could easily be done with zenity.
Either it could be done by modifying zenity to have some
session-related command line options, or it could be done more
directly by running zenity with the new gnome-session-wrapper program
(see bug #60697) with --style=always

Comment 9 Pavel Šefránek 2008-01-17 16:07:47 UTC
Hi! It's over one year after the last comment. Any news? We have already something like this implemented - a Leave message gnome-screensaver feature. So it will be great to discuss this issue with gnome-screensaver developers.
Comment 10 Vincent Untz 2008-01-20 18:51:01 UTC
I created motdoux last year, to handle this. I need to make it public, though...
Comment 11 Lucas Rocha 2008-03-31 19:49:37 UTC
With the new code base, this could/should be implement by creating a .desktop similar to:

[Desktop Entry]
Type=Application
Name=Message of the Day
Exec=/usr/bin/gnome-motd
OnlyShowIn=GNOME;
AutostartCondition=GNOME /desktop/apps/gnome-motd/show_dialog
X-GNOME-Autostart-Phase=Application

gnome-session should check the gconf condition and run gnome-motd accordingly. This program would just show a dialog/notification/whatever. I guess gnome-motd should not reside in gnome-session. Maybe gnome-control-center?

Comments?
Comment 12 Lucas Rocha 2008-04-08 23:08:33 UTC
Re-assigning to gnome-control-center for further comments. This is definitely not part of gnome-session.
Comment 13 Vincent Untz 2008-04-09 08:41:31 UTC
Gah, more than a year ago, I had written motdoux, a small app that was just doing this. I need to release it...
Comment 14 Jens Granseuer 2008-04-09 16:20:57 UTC
It's certainly more of a gnome-session issue than it is a control-center issue. Still, it looks like we agree it's a job for a third-party app (which apparently already sort of exists ;-)), so closing.

Please file any further complaints against Vincent...