using dbus to prevent the users from enabling a laptop microphone

Colin Walters walters at verbum.org
Sat May 9 08:15:41 PDT 2009


On Fri, May 8, 2009 at 2:04 PM, Kent Baxley <kb4xley at gmail.com> wrote:

> The user, however, has control over the mixer channels and can simply
> override this with a simple mouse click on the appropriate channel using the

I'm not sure of a good way to handle this without modifying source
code.  But if you are willing to change the source, the way GNOME
usually does "lockdown" features like this is by having a GConf key to
disable a feature, and then you can add a mandatory setting.

> The end goal would be  to monitor this mouse click, and if the microphone is
> enabled, issue a popup message warning the user of the potential
> foolishness of their actions.

If you want to take the "warning" approach, having a program that runs
inside the user session which monitors using the ALSA API (I believe
this is possible), then you can use say zenity or pygtk to pop up a
dialog.


More information about the dbus mailing list