Re: Geting current working session



В Вск, 26/03/2006 в 12:18 +0200, svovaf t2 technion ac il пишет:
> Quoting "Nickolay V. Shmyrev" <nshmyrev yandex ru>:
> 
 <> ׀’ ׀¡׀±ׁ‚, 25/03/2006 ׀² 12:34 +0200, svovaf t2 technion ac il ׀¿׀¸ׁˆ׀µׁ‚:
> > > I developing some tool for linux to echo message when email incoming and I
> > would
> > > like that the message will appear on the most updated (current working)
> > session
> > > of gnome. Is there any way to get the current working session pid?
> > > 
> > > Thanks
> > > Vova Feldman
> > 
> > Hi Vova
> > 
> > The only thing I don't understand, how session pid will help you? 
> > 
> > Usually, things like you've described are done with a bit another
> > technique. gnome-session process is certainly not supposed to such work.
> > 
> > For example, you can have user application that will show mail on the
> > screen. There are a lot of apps that may help you already. Look at the
> > gnome-osd, for example or at zenity. With then you can simply show user
> > dialog from the shell script. Or use notification framework provided
> > with libnotify/notification-daemon. 
> > 
> > If you can describe your task more precisely, probably we can give you
> > more useful advise.
> > 
> > 
> > 
> 
> I'll try to explain myself more precisely. Me and my freind are students and we
> doing some project in Operating Systems (linux). Our mission is to add email
> notifier, like unix have. We must listen on the incoming email port (25) and
> when email income, the user should be notified about that by some message. If
> we want that the user will actually see the message we must print it on the
> most updated session (the current used session). Because gnome is the most
> popular shell simulator on linux I asked you how to do it in gnome. I hope that
> now you understand my intensions.
> 
> Thanks 
> Vova Feldman


hy don't you use other mail notification program like mailnotify?

http://www.nongnu.org/mailnotify/

There are several analogs for that functionality on gnomefiles.org





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]