Bug#433960: gnome-session: script to warn users of a shutdown/reboot via zenity
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/\./\ : :' : [EMAIL PROTECTED] `. `'[EMAIL PROTECTED] `- Debian GNU/Linux -- The power of freedom signature.asc Description: Ceci est une partie de message numériquement signée
Bug#433960: gnome-session: script to warn users of a shutdown/reboot via zenity
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 Description: Ceci est une partie de message numériquement signée
Bug#433960: gnome-session: script to warn users of a shutdown/reboot via zenity
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 Description: Ceci est une partie de message numériquement signée
Bug#433960: gnome-session: script to warn users of a shutdown/reboot via zenity
On 7/21/07, Josselin Mouette [EMAIL PROTECTED] 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
Bug#433960: gnome-session: script to warn users of a shutdown/reboot via zenity
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-center1:2.14.2-7 utilities to configure the GNOME d ii libatk1.0-0 1.12.4-3 The ATK accessibility toolkit ii libbonobo2-02.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-02.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-02.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-2X11 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-3X11 Session Management library ii libwrap07.6.dbs-13 Wietse Venema's TCP wrappers libra ii libx11-62:1.0.3-7X11 client-side library ii libxau6 1:1.0.1-2X11 authorisation library ii libxrandr2 2:1.1.0.2-5 X11 RandR extension library Versions of packages gnome-session recommends: ii dbus1.0.2-1 simple interprocess messaging syst pn desktop-basenone (no description available) ii gnome-panel 2.14.3-5 launcher and docking facility for ii metacity1:2.14.5-4 A lightweight GTK2 based Window Ma ii nautilus2.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- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]