Debian Bug report logs - #433960
gnome-session: script to warn users of a shutdown/reboot via zenity

Packages: notification-daemon, bsdutils; Maintainer for notification-daemon is Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>; Source for notification-daemon is src:notification-daemon. Maintainer for bsdutils is LaMont Jones <lamont@debian.org>; Source for bsdutils is src:util-linux.

Reported by: Martin-Éric Racine <martin-eric.racine@iki.fi>

Date: Fri, 20 Jul 2007 16:12:02 UTC

Severity: wishlist

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Josselin Mouette <joss@debian.org>:
Bug#433960; Package gnome-session. Full text and rfc822 format available.

Acknowledgement sent to Martin-Éric Racine <q-funk@iki.fi>:
New Bug report received and forwarded. Copy sent to Josselin Mouette <joss@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Martin-Éric Racine <q-funk@iki.fi>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gnome-session: script to warn users of a shutdown/reboot via zenity
Date: Fri, 20 Jul 2007 19:08:24 +0300
Package: gnome-session
Version: 2.14.3-5
Severity: wishlist

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

The rough script below could be converted into a "gnome-wall" that is 
called at the very start of rc0.d and rc6.d, followed by a long sleep, 
to warn all users of the impeding system interruption.

Of course, this is a rough hack. 

Ideally, GNOME would simply have a way to catch all wall messages 
(such as those issued by 'reboot') and to display them via the 
notification area.

#!/bin/bash
for PID in $(pgrep metacity); do
   DISPLAY=$(cat /proc/${PID}/environ | tr '\0' '\n' | grep DISPLAY | sed -e 's/DISPLAY=//')
   XAUTHORITY=$(cat /proc/${PID}/environ | tr '\0' '\n' | grep XAUTH | sed -e 's/XAUTHORITY=//')
   zenity --info --text="$1"
done
#EOF

PS: the above script was hacked by LTSP developer Scott Balneaves.

- -- 
System Information: Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i586)

Kernel: Linux 2.6.22-dbe61 (PREEMPT)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gnome-session depends on:
ii  gconf2                      2.16.1-1     GNOME configuration database syste
ii  gnome-control-center        1:2.14.2-7   utilities to configure the GNOME d
ii  libatk1.0-0                 1.12.4-3     The ATK accessibility toolkit
ii  libbonobo2-0                2.14.0-3     Bonobo CORBA interfaces library
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libesd-alsa0 [libesd0]      0.2.36-3     Enlightened Sound Daemon (ALSA) - 
ii  libgconf2-4                 2.16.1-1     GNOME configuration database syste
ii  libglib2.0-0                2.12.4-2     The GLib library of C routines
ii  libgnome-desktop-2          2.14.3-2     Utility library for loading .deskt
ii  libgnome2-0                 2.16.0-2     The GNOME 2 library - runtime file
ii  libgnomeui-0                2.14.1-2     The GNOME 2 libraries (User Interf
ii  libgtk2.0-0                 2.8.20-7     The GTK+ graphical user interface 
ii  libice6                     1:1.0.1-2    X11 Inter-Client Exchange library
ii  liborbit2                   1:2.14.3-0.1 libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0               1.14.8-5     Layout and rendering of internatio
ii  libsm6                      1:1.0.1-3    X11 Session Management library
ii  libwrap0                    7.6.dbs-13   Wietse Venema's TCP wrappers libra
ii  libx11-6                    2:1.0.3-7    X11 client-side library
ii  libxau6                     1:1.0.1-2    X11 authorisation library
ii  libxrandr2                  2:1.1.0.2-5  X11 RandR extension library

Versions of packages gnome-session recommends:
ii  dbus                        1.0.2-1      simple interprocess messaging syst
pn  desktop-base                <none>       (no description available)
ii  gnome-panel                 2.14.3-5     launcher and docking facility for 
ii  metacity                    1:2.14.5-4   A lightweight GTK2 based Window Ma
ii  nautilus                    2.14.3-11+b1 file manager and graphical shell f

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGoN34eXr56x4Muc0RAnMPAJ4yHkUqQVVNPQse90AR+yhHgl5q3wCglk2A
KwxbUpia03u+LRIno4nd+K4=
=hdcj
-----END PGP SIGNATURE-----



Information forwarded to debian-bugs-dist@lists.debian.org, Josselin Mouette <joss@debian.org>:
Bug#433960; Package gnome-session. Full text and rfc822 format available.

Acknowledgement sent to 433960@bugs.debian.org:
Extra info received and forwarded to list. Copy sent to Josselin Mouette <joss@debian.org>. Full text and rfc822 format available.

Message #10 received at 433960@bugs.debian.org (full text, mbox):

From: Josselin Mouette <joss@debian.org>
To: Martin-Éric Racine <q-funk@iki.fi>, 433960@bugs.debian.org
Subject: Re: Bug#433960: gnome-session: script to warn users of a shutdown/reboot via zenity
Date: Sat, 21 Jul 2007 14:44:57 +0200
[Message part 1 (text/plain, inline)]
Le vendredi 20 juillet 2007 à 19:08 +0300, Martin-Éric Racine a écrit :
> Package: gnome-session
> Version: 2.14.3-5
> Severity: wishlist
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> The rough script below could be converted into a "gnome-wall" that is 
> called at the very start of rc0.d and rc6.d, followed by a long sleep, 
> to warn all users of the impeding system interruption.
> 
> Of course, this is a rough hack. 

That's an euphemism. I really don't want to introduce such an ugly hack.
Furthermore, doing it in the shutdown process makes it too late for
users to save their work.

> Ideally, GNOME would simply have a way to catch all wall messages 
> (such as those issued by 'reboot') and to display them via the 
> notification area.

I'm not 100% sure, but it should be feasible with notification-daemon.
Ideally, the shutdown command should send notifications by dbus when it
is available, and notification-daemon should display them.

Cheers,
-- 
 .''`.
: :' :      We are debian.org. Lower your prices, surrender your code.
`. `'       We will add your hardware and software distinctiveness to
  `-        our own. Resistance is futile.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Josselin Mouette <joss@debian.org>:
Bug#433960; Package gnome-session. Full text and rfc822 format available.

Acknowledgement sent to "Martin-Éric Racine" <q-funk@iki.fi>:
Extra info received and forwarded to list. Copy sent to Josselin Mouette <joss@debian.org>. Full text and rfc822 format available.

Message #15 received at 433960@bugs.debian.org (full text, mbox):

From: "Martin-Éric Racine" <q-funk@iki.fi>
To: 433960@bugs.debian.org
Subject: Re: Bug#433960: gnome-session: script to warn users of a shutdown/reboot via zenity
Date: Sat, 21 Jul 2007 16:12:04 +0300
On 7/21/07, Josselin Mouette <joss@debian.org> wrote:
> Le vendredi 20 juillet 2007 à 19:08 +0300, Martin-Éric Racine a écrit :
> > Package: gnome-session
> > Version: 2.14.3-5
> > Severity: wishlist
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > The rough script below could be converted into a "gnome-wall" that is
> > called at the very start of rc0.d and rc6.d, followed by a long sleep,
> > to warn all users of the impeding system interruption.
> >
> > Of course, this is a rough hack.
>
> That's an euphemism. I really don't want to introduce such an ugly hack.
> Furthermore, doing it in the shutdown process makes it too late for
> users to save their work.

Good point.

> > Ideally, GNOME would simply have a way to catch all wall messages
> > (such as those issued by 'reboot') and to display them via the
> > notification area.
>
> I'm not 100% sure, but it should be feasible with notification-daemon.
> Ideally, the shutdown command should send notifications by dbus when it
> is available, and notification-daemon should display them.

Could the notification daemon perhaps acquire a feature to listen to
wall messages and display them, then?  Likewise, this could be used to
catch attempts to contact the user via deprecated UNIX tools based on
concepts similar to wall e.g. talk and to display the output via the
notification area.

If you feel that this wishlist bug would be more appropriate for
another package like notification-daemon, zenity or other parts of the
Galago project, feel free to reassign.

-- 
Martin-Éric Racine
http://q-funk.iki.fi

Information forwarded to debian-bugs-dist@lists.debian.org, Josselin Mouette <joss@debian.org>:
Bug#433960; Package gnome-session. Full text and rfc822 format available.

Acknowledgement sent to 433960@bugs.debian.org:
Extra info received and forwarded to list. Copy sent to Josselin Mouette <joss@debian.org>. Full text and rfc822 format available.

Message #20 received at 433960@bugs.debian.org (full text, mbox):

From: Josselin Mouette <joss@debian.org>
To: Martin-Éric Racine <q-funk@iki.fi>, 433960@bugs.debian.org
Subject: Re: Bug#433960: gnome-session: script to warn users of a shutdown/reboot via zenity
Date: Sun, 29 Jul 2007 16:40:51 +0200
[Message part 1 (text/plain, inline)]
Le samedi 21 juillet 2007 à 16:12 +0300, =?UTF-8?Q? Martin-=C3=89ric?=
Racine a écrit :
> > > Ideally, GNOME would simply have a way to catch all wall messages
> > > (such as those issued by 'reboot') and to display them via the
> > > notification area.
> >
> > I'm not 100% sure, but it should be feasible with notification-daemon.
> > Ideally, the shutdown command should send notifications by dbus when it
> > is available, and notification-daemon should display them.
> 
> Could the notification daemon perhaps acquire a feature to listen to
> wall messages and display them, then?  Likewise, this could be used to
> catch attempts to contact the user via deprecated UNIX tools based on
> concepts similar to wall e.g. talk and to display the output via the
> notification area.

The appropriate solution is to update the wall and shutdown commands to
send the notification via dbus, not the other way round. Of course this
should be done only if dbus is installed, to avoid spurious dependencies
(as these are required packages).

-- 
 .''`.
: :' :      We are debian.org. Lower your prices, surrender your code.
`. `'       We will add your hardware and software distinctiveness to
  `-        our own. Resistance is futile.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#433960; Package gnome-session. Full text and rfc822 format available.

Acknowledgement sent to Josselin Mouette <joss@debian.org>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #25 received at 433960@bugs.debian.org (full text, mbox):

From: Josselin Mouette <joss@debian.org>
To: Martin-Éric Racine <q-funk@iki.fi>, 433960@bugs.debian.org
Cc: giskard@debian.org, lamont@debian.org
Subject: Re: Bug#433960: gnome-session: script to warn users of a shutdown/reboot via zenity
Date: Tue, 18 Sep 2007 12:53:17 +0200
[Message part 1 (text/plain, inline)]
reassign 433960 notification-daemon,bsdutils
thanks

Le samedi 21 juillet 2007 à 16:12 +0300, =?UTF-8?Q? Martin-=C3=89ric?=
Racine a écrit :
> > > Ideally, GNOME would simply have a way to catch all wall messages
> > > (such as those issued by 'reboot') and to display them via the
> > > notification area.
> >
> > I'm not 100% sure, but it should be feasible with notification-daemon.
> > Ideally, the shutdown command should send notifications by dbus when it
> > is available, and notification-daemon should display them.
> 
> Could the notification daemon perhaps acquire a feature to listen to
> wall messages and display them, then?  Likewise, this could be used to
> catch attempts to contact the user via deprecated UNIX tools based on
> concepts similar to wall e.g. talk and to display the output via the
> notification area.
> 
> If you feel that this wishlist bug would be more appropriate for
> another package like notification-daemon, zenity or other parts of the
> Galago project, feel free to reassign.

I think this issue is both up to the galago and bsdutils maintainers.
First, a dbus interface should be defined for sending such messages.
Then, wall could call dbus-send when available, and notification-daemon
would have to listen to this interface.

If the bsdutils maintainer disagrees, the solution will imply
notification-daemon (or an intermediate process) using a pseudo-tty only
for this matter, and it sounds quite hackish.

Cheers,
-- 
 .''`.           Josselin Mouette        /\./\
: :' :           josselin.mouette@ens-lyon.org
`. `'                        joss@debian.org
  `-  Debian GNU/Linux -- The power of freedom
[signature.asc (application/pgp-signature, inline)]

Bug reassigned from package `gnome-session' to `notification-daemon,bsdutils'. Request was from Josselin Mouette <joss@debian.org> to control@bugs.debian.org. (Tue, 18 Sep 2007 10:54:04 GMT) Full text and rfc822 format available.

Changed Bug submitter to 'Martin-Éric Racine <martin-eric.racine@iki.fi>' from 'Martin-Éric Racine <q-funk@iki.fi>' Request was from Martin-Éric Racine <martin-eric.racine@iki.fi> to control@bugs.debian.org. (Tue, 30 Nov 2010 22:54:20 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 04:15:13 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.