Development Team/Jhbuild: Difference between revisions

Configure the mode and resolution of Sugar: this configures Xephyr, not Sugar
M anish (talk | contribs)
Line 119: Line 119:
== Running sugar in a VNC session ==
== Running sugar in a VNC session ==


Many users and developers have reported problems with running sugar-emulator, which uses Xephyr. As an alternatice, you can run sugar inside a VNC session. To accomplish this, install a complete set of VNC packages (both server and client)  and create a <code>~/.vnc/xstartup</code> file containing the code below:
Many users and developers have reported problems with running sugar-emulator in its default window manager, Xephyr. As an alternative, you can run sugar-emulator in a VNC session. To accomplish this, install a complete set of VNC packages (both server and client)  and create a <code>~/.vnc/xstartup</code> file containing the code below:


  #!/bin/sh
  #!/bin/sh
  exec ~/sugar-jhbuild/sugar-jhbuild run dbus-launch --exit-with-session sugar
  exec ~/sugar-jhbuild/sugar-jhbuild run dbus-launch --exit-with-session sugar
Note: The above code assumes that sugar-jhbuild is installed in the <code>~/sugar-jhbuild/</code> directory.


Now, you may run Sugar by creating a VNC session and accessing it using a VNC viewer. E.g.:
Now, you may run Sugar by creating a VNC session and accessing it using a VNC viewer. E.g.: