On Fri, Feb 29, 2008 at 07:20:56PM -0800, Carl Lowenstein wrote:

When I put a blank CD-R in the drive, after several seconds an icon
labeled "Blank CD-R Disc" appears on the desktop.  Is there some
command-line way to recognize this?

I'm not sure about simple command line.  Some depends on your distribution,
and what it's doing.  Do you have 'dbus' running.  If so, you might be able
to get something useful out of dbus-monitor which is what will get notified
about the insertion of the media.

If your distribution is older, then something is probably just polling for
the device, in which case , you can also poll.

The desktop might create a file for the "Blank CD-R Disc" icon, which you
could check for.  This might be the easiest way to do it.

David


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to