Hi,<br><br><br>i was working on to change the text in title bar of sugar-emulator from Xephyr to Sugar. I needed some pointers in this direction and i will be ery helpful for that.uptill now what i have noticed is that , sugar-emulator script call the emulator.main() function which then uses the following code to open up xepyhr and to run emulator:<br>
<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">def _run_xephyr(display, dpi, dimensions, fullscreen):<br> cmd = [ 'Xephyr' ]<br>
cmd.append(':%d' % display)<br> cmd.append('-ac') <br><br> screen_size = (gtk.gdk.screen_width(), gtk.gdk.screen_height())<br><br> if (not dimensions) and (fullscreen is None) and \<br> (screen_size < default_dimensions) :<br>
# no forced settings, screen too small => fit screen<br> fullscreen = True<br> elif (not dimensions) :<br> # screen is big enough or user has en/disabled fullscreen manually<br> # => use default size (will get ignored for fullscreen)<br>
dimensions = '%dx%d' % default_dimensions<br><br> if not dpi :<br> dpi = gtk.settings_get_default().get_property('gtk-xft-dpi') / 1024<br><br> if fullscreen :<br> cmd.append('-fullscreen')<br>
<br> if dimensions :<br> cmd.append('-screen')<br> cmd.append(dimensions)<br><br> if dpi :<br> cmd.append('-dpi')<br> cmd.append('%d' % dpi)<br><br> cmd.append('-noreset')<br>
<br> try:<br> pipe = subprocess.Popen(cmd)<br><br> except OSError, exc:<br> sys.stderr.write('Error executing server: %s\n' % (exc, ))<br> return None<br><br> return pipe<br></blockquote>
<br>just in case: The title bar in sugar-emulator shows "Xephyr on:30.0 (ctrl+shift grabs mouse and keyboard)" and instead of that we would like to have Sugar.<br><br>now the problem is that i am not able to find the script responsible for writing title on top of the xephyr window .Can we edit that to get sugar's name? and if so , can you provide me some pointer to get started in right direction?<br>
<br>Regards,<br>Ankur <br>