[MPlayer-users] Turning GNOME MPlayer into a normal one

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Feb 23 20:07:52 CET 2013


On Sat, Feb 23, 2013 at 08:02:38PM +0100, Reimar Döffinger wrote:
> On Fri, Feb 22, 2013 at 05:12:10PM +0400, Vladimir Mosgalin wrote:
> > Hi Carl Eugen Hoyos!
> > 
> >  On 2013.02.22 at 11:01:41 +0000, Carl Eugen Hoyos wrote next:
> > 
> > > > Err the thing is, I don't really care about gnome-mplayer. 
> > > > I'm fine with not installing it at all. The problem is 
> > > > that I can't understand why normal "mplayer" gets 
> > > > "GNOME MPlayer" name no matter what
> > > 
> > > This is hard to understand (I don't get this "name"), 
> > > please elaborate / add complete, uncut console output.
> > 
> > I mentioned it in original name - in gnome-shell, you can see
> > application name in top bar; I don't really know how explain, here is
> > some random screenshot:
> > http://intgat.tigress.co.uk/rmy/extensions/Screenshot.png
> > As you can see, terminal has custom title, but is called "Terminal" with
> > proper icon in the top bar.
> > Well, whenever my custom-compiled mplayer is running, it displays
> > "GNOME MPlayer" there with gnome-mplayer icon.
> > The way gnome-shell sets this name is explained here:
> > http://stackoverflow.com/questions/9324163/how-to-set-application-title-in-gnome-shell
> 
> I think what happens is that gnome-shell tries to be clever.
> They decided that the "mplayer" process "usually" is launched part
> of GNOME-MPlayer and thus decided to give it that name.
> At least that is the only sensible explanation I can give, we
> certainly have nothing to do with it.

Well, I have one other theory, if "GNOME MPlayer" uses just "MPlayer"
as the window class hint, gnome-shell might not have much a chance but
to confuse them.
Have a look at the vo_x11_classhint function in libvo/x11_common.c,
if changing the "MPlayer" string there changes the behaviour that's
most likely indeed the cause.


More information about the MPlayer-users mailing list