developer-mode and dconf fix attempt

This commit is contained in:
wheaney 2024-05-07 21:15:11 -07:00
parent ae214cf1a2
commit 2f99b84ef2
3 changed files with 19 additions and 1 deletions

View File

@ -71,6 +71,14 @@ export default class BreezyDesktopExtension extends Extension {
};
}
if (this.settings.get_boolean('developer-mode')) {
// allow testing XR devices with just USB, no video needed
return {
monitor: this._monitor_manager.getMonitors()[0],
refreshRate: 60,
};
}
return null;
}

View File

@ -14,7 +14,8 @@
"--talk-name=ca.desrt.dconf",
"--filesystem=xdg-run/dconf",
"--env=DCONF_USER_CONFIG_DIR=.config/dconf",
"--env=GIO_EXTRA_MODULES=/app/lib/gio/modules/"
"--env=GIO_EXTRA_MODULES=/app/lib/gio/modules/",
"--env=GSETTINGS_BACKEND=dconf"
],
"cleanup" : [
"/include",

View File

@ -54,6 +54,15 @@
<description>
End distance when using the "toggle display distance" shortcut.
</description>
</key>
<key name="developer-mode" type="b">
<default>
false
</default>
<summary>Developer mode</summary>
<description>
Enable developer mode
</description>
</key>
</schema>
</schemalist>