[xdg-desktop-portal-gnome/wip/rishi/lockdown-disable-microphone-typo] lockdown: Bind disable-microphone to the correct property




commit 690e1ae9e5f24bdf5f3267eede618c7036ecb1a1
Author: Sebastian Keller <skeller gnome org>
Date:   Tue Mar 2 19:02:49 2021 +0100

    lockdown: Bind disable-microphone to the correct property
    
    This being bound to disable-sound-output was causing it to not update
    the disable-microphone property in the lockdown dbus interface and
    caused the corresponding gsettings setting to be reset every time
    xdg-desktop-portal-gnome was started.
    
    (cherry picked from commit dc01788078aa383f9bec54ee45303a98c1d75aca)
    
    https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/merge_requests/36

 src/lockdown.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/lockdown.c b/src/lockdown.c
index a3c0134..5e30ff7 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -60,7 +60,7 @@ lockdown_init (GDBusConnection *bus,
   if (g_settings_schema_has_key (schema, "disable-camera"))
     g_settings_bind (privacy, "disable-camera", helper, "disable-camera", G_SETTINGS_BIND_DEFAULT);
   if (g_settings_schema_has_key (schema, "disable-microphone"))
-    g_settings_bind (privacy, "disable-microphone", helper, "disable-sound-output", G_SETTINGS_BIND_DEFAULT);
+    g_settings_bind (privacy, "disable-microphone", helper, "disable-microphone", G_SETTINGS_BIND_DEFAULT);
   if (g_settings_schema_has_key (schema, "disable-sound-output"))
     g_settings_bind (privacy, "disable-sound-output", helper, "disable-sound-output", 
G_SETTINGS_BIND_DEFAULT);
 


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