[Sugar-devel] Gsettings

Ütkarsh Tiwari iamutkarshtiwari at gmail.com
Wed Jul 6 03:38:17 EDT 2016


Hi Sam,
             Could you please give me an example from Sugar codebase where
'gsettings' is used to fetch a user defined value into a variable during
execution.

Regards,
Ütkarsh Tiwari
On Jul 5, 2016 6:22 PM, "Sam Parkinson" <sam.parkinson3 at gmail.com> wrote:

> Hi Utkrash,
>
> To the best of my knowledge, GSettings requires a settings schema be
> installed in a system (package-manager controlled) directory.  While Sugar
> installs a GSettings schema, I sadly don't think it is possible for an
> activity to have a gsettings schema.
>
> To set or get a gsettings value, you can use the Gio.Settings api, or the
> "gsettings" command line utility.
>
> Thanks,
> Sam
>
>
> On Tue, Jul 5, 2016 at 8:16 PM, Ütkarsh Tiwari <iamutkarshtiwari at gmail.com>
> wrote:
>
> Hi,
>     I want to set a python boolean value(to True/False) prior to the
> execution of the python script containing that variable. Is there any way I
> could do it by making my own custom terminal command to modify the
> gsettings to modify that variable?
>
> --
> Regards,
> Ütkarsh Tiwari
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20160706/67ddbc18/attachment.html>


More information about the Sugar-devel mailing list