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 = [ &#39;Xephyr&#39; ]<br>
    cmd.append(&#39;:%d&#39; % display)<br>    cmd.append(&#39;-ac&#39;) <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 &lt; default_dimensions) :<br>
        # no forced settings, screen too small =&gt; fit screen<br>        fullscreen = True<br>    elif (not dimensions) :<br>        # screen is big enough or user has en/disabled fullscreen manually<br>        # =&gt; use default size (will get ignored for fullscreen)<br>
        dimensions = &#39;%dx%d&#39; % default_dimensions<br><br>    if not dpi :<br>        dpi = gtk.settings_get_default().get_property(&#39;gtk-xft-dpi&#39;) / 1024<br><br>    if fullscreen :<br>        cmd.append(&#39;-fullscreen&#39;)<br>
<br>    if dimensions :<br>        cmd.append(&#39;-screen&#39;)<br>        cmd.append(dimensions)<br><br>    if dpi :<br>        cmd.append(&#39;-dpi&#39;)<br>        cmd.append(&#39;%d&#39; % dpi)<br><br>    cmd.append(&#39;-noreset&#39;)<br>
<br>    try:<br>        pipe = subprocess.Popen(cmd)<br><br>    except OSError, exc:<br>        sys.stderr.write(&#39;Error executing server: %s\n&#39; % (exc, ))<br>        return None<br><br>    return pipe<br></blockquote>
<br>just in case: The title bar in sugar-emulator shows &quot;Xephyr on:30.0 (ctrl+shift  grabs mouse and keyboard)&quot; 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&#39;s name? and if so , can you provide me some pointer to get started in right direction?<br>
<br>Regards,<br>Ankur <br>