pop-up notices for all gnome users

Oliver Leitner shadow333 at gmail.com
Tue Aug 23 18:06:49 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
 
easy answer:

try to run your script as non root user, eg try sudo to run it.

Greetings
Oliver

Paul Keyes wrote:

| Thanks.  This is helpful.  I have a followup question: I want to
| schedule a zenity command via cron as root to have a window appear
| every 30 minutes for any user who may be loggeg in.  When trying
| this I get the cron error:
|
| X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/root> X-Cron-Env:
| <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=root> X-Cron-Env:
| <USER=root>
|
|
| (zenity:6093): Gtk-WARNING **: cannot open display:
|
|
| Do you know how to solve this? Thanks!
|
|
|
|
| --- Esteban Xandri <esteban.xandri at speedy.com.ar> wrote:
|
|> On Mon, 2005-08-22 at 15:55 -0400, Paul Keyes wrote:
|>
|>> Hi All,
|>>
|>> I need to create a pop-up window notice to all
|>
|> users
|>
|>> when they log in to their gnome desktop.
|>
|> man zenity
|>
|>
|>> I'm using Fedora Core 3 (kernel: 2.6.10-2.1.ll.rhfc3.ccrma).
|>
|>> Does gnome have a way to do this already? I couldn't find one
|>> so I created my own little app (c++, gtk) to display the info
|>> in a  window and I
|>
|> run
|>
|>> it for all users by adding an appropriate entry to
|>> /usr/share/gnome/default.session This almost works, but for
|>> some reason the gnome startup display stays open and blocks my
|>> window.
|>
|> If I
|>
|>> click on the "stuck" gnome startup display it dissapears and I
|>> can see my window.  I think this little bug will confuse users.
|>> Does anyone know a
|>
|> way
|>
|>> around this/why the startup window gets "stuck"? Any advice is
|>> greatly appreciated. --Paul
|>>
|>>
|>>
|>>
|>>  
|>>
| __________________________________________________________
|
|>> Find your next car at http://autos.yahoo.ca
|>>
|> -- Esteban Xandri <esteban.xandri at speedy.com.ar>
|>
|> -- fedora-list mailing list fedora-list at redhat.com To
|> unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
|>
|
|
|
|
|
|   __________________________________________________________ Find
| your next car at http://autos.yahoo.ca
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
 
iD8DBQFDC2W5xHPquN24yVsRA/YZAJ0dEiiZv0N7RnngYKY7r796vOfJMgCgjx93
103hOhsdrz1p7l2v6heRj0M=
=/fhE
-----END PGP SIGNATURE-----




More information about the fedora-list mailing list