Re: MOTD implementation in gnome-session

2005-10-07 Thread Rodrigo Moya
On Tue, 2005-10-04 at 18:42 +0200, Stanislav Brabec wrote: Rodrigo Moya wrote: On Tue, 2005-10-04 at 18:29 +0200, Stanislav Brabec wrote: Rodrigo Moya wrote: Otherwise pure GNOME user without any terminal opened will loose UPS power failure alert or report about incoming reboot or

Re: MOTD implementation in gnome-session

2005-10-06 Thread Mike Hearn
On Tue, 04 Oct 2005 17:40:23 +0200, Rodrigo Moya wrote: It just makes gnome-session display the /etc/motd file on startup, using libnotify if available, or an ugly dialog if not. The 2 new files are to be placed in gnome-session/gnome-session Given that libnotify messages aren't really meant

Re: MOTD implementation in gnome-session

2005-10-06 Thread Rodrigo Moya
On Thu, 2005-10-06 at 12:03 +0100, Mike Hearn wrote: On Tue, 04 Oct 2005 17:40:23 +0200, Rodrigo Moya wrote: It just makes gnome-session display the /etc/motd file on startup, using libnotify if available, or an ugly dialog if not. The 2 new files are to be placed in

Re: MOTD implementation in gnome-session

2005-10-06 Thread Mike Hearn
On Thu, 06 Oct 2005 16:26:16 +0200, Rodrigo Moya wrote: can't the notification daemon use scrolling when the messages are too big? Well, it could, but you have to keep the use cases for libnotify in mind: short, asynchronous notifications where it doesn't really matter if the user misses them.

Re: MOTD implementation in gnome-session

2005-10-05 Thread Rodrigo Moya
On Wed, 2005-10-05 at 09:31 +0800, Davyd Madeley wrote: On Tue, 2005-10-04 at 18:32 +0200, Rodrigo Moya wrote: On Tue, 2005-10-04 at 12:30 -0400, Pat Suwalski wrote: Is login the best time to show this information or would you prefer if the user saw it immediately?

MOTD implementation in gnome-session

2005-10-04 Thread Rodrigo Moya
Hi I have had this patch around for some time, and seems to work pretty well, so sending for comments and/or approval. It just makes gnome-session display the /etc/motd file on startup, using libnotify if available, or an ugly dialog if not. The 2 new files are to be placed in

Re: MOTD implementation in gnome-session

2005-10-04 Thread Mark McLoughlin
Hi Rodrigo, On Tue, 2005-10-04 at 17:40 +0200, Rodrigo Moya wrote: Hi I have had this patch around for some time, and seems to work pretty well, so sending for comments and/or approval. It just makes gnome-session display the /etc/motd file on startup, using libnotify if available, or an

Re: MOTD implementation in gnome-session

2005-10-04 Thread Jeff Waugh
quote who=Mark McLoughlin I the first thing worth discussing is why?. Why is it a good idea to show /etc/motd at login? It's very handy for sysadmins to display information to the user at login. I've used zenity and very bad gnome-session hacks for this in the past. Our audience of

Re: MOTD implementation in gnome-session

2005-10-04 Thread Rodrigo Moya
On Tue, 2005-10-04 at 16:48 +0100, Mark McLoughlin wrote: Hi Rodrigo, On Tue, 2005-10-04 at 17:40 +0200, Rodrigo Moya wrote: Hi I have had this patch around for some time, and seems to work pretty well, so sending for comments and/or approval. It just makes gnome-session display

Re: MOTD implementation in gnome-session

2005-10-04 Thread Mark McLoughlin
On Wed, 2005-10-05 at 01:53 +1000, Jeff Waugh wrote: quote who=Mark McLoughlin I the first thing worth discussing is why?. Why is it a good idea to show /etc/motd at login? It's very handy for sysadmins to display information to the user at login. I've used zenity and very bad

Re: MOTD implementation in gnome-session

2005-10-04 Thread Pat Suwalski
Mark McLoughlin wrote: What kind of information is it especially handy for? Perhaps when you upgrade the desktop and you want to warn people that stuff has changed? But not for stuff like internet will be down for a while today because people may not actually log out that often? At a

Re: MOTD implementation in gnome-session

2005-10-04 Thread Rodrigo Moya
On Tue, 2005-10-04 at 17:11 +0100, Mark McLoughlin wrote: On Wed, 2005-10-05 at 01:53 +1000, Jeff Waugh wrote: quote who=Mark McLoughlin I the first thing worth discussing is why?. Why is it a good idea to show /etc/motd at login? It's very handy for sysadmins to display

Re: MOTD implementation in gnome-session

2005-10-04 Thread Rodrigo Moya
On Tue, 2005-10-04 at 12:30 -0400, Pat Suwalski wrote: Is login the best time to show this information or would you prefer if the user saw it immediately? It might be nice to have GDM display this kind of information, polling for changes to /etc/motd every minute or so instead. some

Re: MOTD implementation in gnome-session

2005-10-04 Thread Xavier Bestel
On Tue, 2005-10-04 at 18:24, Rodrigo Moya wrote: that is probably a problem, to show always the same message in systems that have nothing interesting in that file. The problem is how to deal with this? Have some [] Never show me this message again button which remembers the last MOTD

Re: MOTD implementation in gnome-session

2005-10-04 Thread Rodrigo Moya
On Tue, 2005-10-04 at 09:21 -0700, Sriram Ramkrishna wrote: It would be nice if it detects a change in the MOTD and notifies the user that it's changed (unless of course it already does that). it already does that -- Rodrigo Moya [EMAIL PROTECTED]

Re: MOTD implementation in gnome-session

2005-10-04 Thread Bastien Nocera
On Tue, 2005-10-04 at 18:33 +0200, Vincent Untz wrote: Le mardi 04 octobre 2005 à 17:40 +0200, Rodrigo Moya a écrit : Hi I have had this patch around for some time, and seems to work pretty well, so sending for comments and/or approval. It just makes gnome-session display the

Re: MOTD implementation in gnome-session

2005-10-04 Thread Sriram Ramkrishna
On Tue, Oct 04, 2005 at 06:43:26PM +0200, Markus Jonsson wrote: What about when the system shuts down? Can I be informed about that? Can I be alerted and logged out in a nice way when someone else runs shutdown -h on the system? If you're in this situation it's most likely not going to be at