Re: [gnome-devel] Re: Autodetect CD



On Sun, 2004-05-23 at 20:47, Reginald Johnson wrote:
> Sean,
>     Thanks for the help in clearing that up for me.  Now that I know 
> what I need to do, you wouldn't happen to know of any good online 
> tutorials on the best way to do this kind of polling in gnome?

Unless you install HAL, udev, and gnome-volume-manager, there is no
GNOME-specific way of doing this.  You can always check the code to
magicdev which polls in a similar fashion.

> 
> Reginald
> 
> Sean Middleditch wrote:
> 
> >
> > Reginald Johnson wrote:
> >
> >>
> >> If there isn't a method to do this, how are media players such as 
> >> XMMS able to accomplish somthing similar?  They don't seem to be 
> >> running in the background so they can't be resorting to polling the 
> >> CD.  Any ideas how they are able to do this?
> >
> >
> > They poll.  Polling doesn't require them to actively run.  They just 
> > wake up once every second or so, check if there's a CD, and then go 
> > back to sleep.  Tools like ps or top probably won't ever be able to 
> > catch the app in that window without real SMP and some very good timing.
> >
> > In the future they will hopefully use HAL events and such, as will all 
> > other desktop apps.
> > _______________________________________________
> > gnome-devel-list mailing list
> > gnome-devel-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gnome-devel-list
> >
> 
> _______________________________________________
> gnome-devel-list mailing list
> gnome-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-devel-list
-- 
Sean Middleditch <elanthis awesomeplay com>
AwesomePlay Productions, Inc.




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