Re: [gnome-devel] Re: Autodetect CD
- From: Reginald Johnson <reginald johnson cox net>
- To: gnome-devel-list gnome org
- Subject: Re: [gnome-devel] Re: Autodetect CD
- Date: Fri, 28 May 2004 16:51:26 -0400
Sean,
Thanks for the help. I finally just resorted to a thread that
routinely checks to see if there is anything in the drive. Too bad
there doesn't appear to be a more elegant solution.
On Mon, 2004-05-24 at 09:33, Sean Middleditch wrote:
> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]