qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Add -name option
Date: Sun, 4 Mar 2007 20:00:34 +0000	[thread overview]
Message-ID: <20070304200034.GA6357@redhat.com> (raw)
In-Reply-To: <45EAFDB3.7060403@codemonkey.ws>

On Sun, Mar 04, 2007 at 11:11:15AM -0600, Anthony Liguori wrote:
> Avi Kivity wrote:
> >Anthony Liguori wrote:
> >>This option helps differentiate between guests when running more than 
> >>one instance of QEMU.  It adds a string to the SDL window title and 
> >>to the VNC server title.
> >>
> >>Having a name associated with a guest is also terribly useful for 
> >>management tools as it gives a standard way to identify guests to the 
> >>user.
> >>
> >> 
> >>-    vnc_write_u32(vs, 4);        -    vnc_write(vs, "QEMU", 4);
> >>+    if (qemu_name) +    size = snprintf(buf, sizeof(buf), "QEMU 
> >>(%s)", qemu_name);
> >>+    else
> >>+    size = snprintf(buf, sizeof(buf), "QEMU");
> >>+
> >
> >Perhaps in the modern style:
> >
> >   snprintf("%s - QEMU", sizeof, qemu_name)
> 
> So right now we have:
> 
> QEMU
> QEMU - Press Ctrl+Alt to exit grab
> 
> My patch would add:
> 
> QEMU (WinXP Home)
> QEMU (WinXP Home) - Press Ctrl+Alt to exit grab
> 
> You're suggesting:
> 
> WinXP Home - QEMU
> WinXP Home - QEMU - Press Ctrl+Alt to exit grab
> 
> I like yours for the first title but the SDL grab version seems a little 
> strange.  That's why I stuck it in ()s in the first place.
> 
> Anyone else have ideas?

Take 'QEMU' out of the title as it doesn't really give any useful info
compared to the name of the OS. If the user doesn't specify an explicit
name it can use the generic 'QEMU' as title, otherwise leave it out.

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

      parent reply	other threads:[~2007-03-04 20:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-04  3:11 [Qemu-devel] [PATCH] Add -name option Anthony Liguori
2007-03-04  9:30 ` Avi Kivity
2007-03-04 17:11   ` Anthony Liguori
2007-03-04 17:23     ` Avi Kivity
2007-03-04 20:00     ` Daniel P. Berrange [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070304200034.GA6357@redhat.com \
    --to=berrange@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).