how to change Sugar's timezone+language after XO deployment

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to change Sugar's timezone+language after XO deployment

Adam Holt-2
Can commands like the following be made to work?

   sugar-control-panel -s timezone America/Port-au-Prince
   sugar-control-panel -s languages French/France

If not, is there some other clever way to do this programmatically, perhaps using the gsettings command?

Thanks if poss!  Example error posted below -- changes do not take effect, even after reboot.  Original doc @ http://wiki.laptop.org/go/Sugar_Control_Panel#Setting_The_Timezone

Adam



[olpc@xo-4a-c3-b5 ~]$ sudo sugar-control-panel -s timezone America/Port-au-Prince
ERROR:root:Exception while loading extension:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/jarabe/controlpanel/cmd.py", line 68, in load_modules
    globals(), locals(), ['model'])
  File "/usr/share/sugar/extensions/cpsection/frame/model.py", line 17, in <module>
    from jarabe.frame import get_view
  File "/usr/lib/python2.7/site-packages/jarabe/frame/__init__.py", line 16, in <module>
    from jarabe.frame.frame import Frame
  File "/usr/lib/python2.7/site-packages/jarabe/frame/frame.py", line 30, in <module>
    from jarabe.frame.friendstray import FriendsTray
  File "/usr/lib/python2.7/site-packages/jarabe/frame/friendstray.py", line 20, in <module>
    from jarabe.view.buddymenu import BuddyMenu
  File "/usr/lib/python2.7/site-packages/jarabe/view/buddymenu.py", line 37, in <module>
    import jarabe.desktop.homewindow
  File "/usr/lib/python2.7/site-packages/jarabe/desktop/homewindow.py", line 28, in <module>
    from jarabe.desktop.meshbox import MeshBox
  File "/usr/lib/python2.7/site-packages/jarabe/desktop/meshbox.py", line 35, in <module>
    from jarabe.view.buddyicon import BuddyIcon
  File "/usr/lib/python2.7/site-packages/jarabe/view/buddyicon.py", line 19, in <module>
    from jarabe.view.buddymenu import BuddyMenu
ImportError: cannot import name BuddyMenu
To apply your changes you have to restart Sugar.
Hit ctrl+alt+erase on the keyboard to trigger a restart.

_______________________________________________
Devel mailing list
[hidden email]
http://lists.laptop.org/listinfo/devel
Reply | Threaded
Open this post in threaded view
|

Re: how to change Sugar's timezone+language after XO deployment

James Cameron-2
Supported method for configuring timezone is the "timezone" option in
the "[base]" section of the OS Builder configuration file.

Traceback you show is not fatal, is irrelevant, but is a bug that
should be fixed.

https://github.com/sugarlabs/sugar/issues/793

You should not use sudo for this command.  Sugar timezone is not a
system-wide configuration setting; it is local to the user.

On Wed, Apr 11, 2018 at 11:43:18AM -0400, Adam Holt wrote:

> Can commands like the following be made to work?
>
>    sugar-control-panel -s timezone America/Port-au-Prince
>    sugar-control-panel -s languages French/France
>
> If not, is there some other clever way to do this programmatically, perhaps
> using the gsettings command?
>
> Thanks if poss!  Example error posted below -- changes do not take effect, even
> after reboot.  Original doc @ [1]http://wiki.laptop.org/go/Sugar_Control_Panel#
> Setting_The_Timezone
>
> Adam
>
> [olpc@xo-4a-c3-b5 ~]$ sudo sugar-control-panel -s timezone America/
> Port-au-Prince
> ERROR:root:Exception while loading extension:
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/jarabe/controlpanel/cmd.py", line 68,
> in load_modules
>     globals(), locals(), ['model'])
>   File "/usr/share/sugar/extensions/cpsection/frame/model.py", line 17, in
> <module>
>     from jarabe.frame import get_view
>   File "/usr/lib/python2.7/site-packages/jarabe/frame/__init__.py", line 16, in
> <module>
>     from jarabe.frame.frame import Frame
>   File "/usr/lib/python2.7/site-packages/jarabe/frame/frame.py", line 30, in
> <module>
>     from jarabe.frame.friendstray import FriendsTray
>   File "/usr/lib/python2.7/site-packages/jarabe/frame/friendstray.py", line 20,
> in <module>
>     from jarabe.view.buddymenu import BuddyMenu
>   File "/usr/lib/python2.7/site-packages/jarabe/view/buddymenu.py", line 37, in
> <module>
>     import jarabe.desktop.homewindow
>   File "/usr/lib/python2.7/site-packages/jarabe/desktop/homewindow.py", line
> 28, in <module>
>     from jarabe.desktop.meshbox import MeshBox
>   File "/usr/lib/python2.7/site-packages/jarabe/desktop/meshbox.py", line 35,
> in <module>
>     from jarabe.view.buddyicon import BuddyIcon
>   File "/usr/lib/python2.7/site-packages/jarabe/view/buddyicon.py", line 19, in
> <module>
>     from jarabe.view.buddymenu import BuddyMenu
> ImportError: cannot import name BuddyMenu
> To apply your changes you have to restart Sugar.
> Hit ctrl+alt+erase on the keyboard to trigger a restart.
>
> References:
>
> [1] http://wiki.laptop.org/go/Sugar_Control_Panel#Setting_The_Timezone

> _______________________________________________
> Devel mailing list
> [hidden email]
> http://lists.laptop.org/listinfo/devel


--
James Cameron
http://quozl.netrek.org/
_______________________________________________
Devel mailing list
[hidden email]
http://lists.laptop.org/listinfo/devel