From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Colin Horne Newsgroups: gmane.emacs.bugs Subject: bug#41719: 28.0.50; emacsclient -c -F '((name . "NAME"))' is Date: Sat, 11 Jun 2022 14:46:48 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000072ea1405e12c4b65" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23476"; mail-complaints-to="usenet@ciao.gmane.io" To: 41719@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 11 18:11:05 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o03hY-0005uH-R8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 18:11:04 +0200 Original-Received: from localhost ([::1]:43984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o03hX-0003RA-Et for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 12:11:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o03ec-0008QH-Mj for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 12:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59860) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o03ec-0007tP-EN for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 12:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o03ec-0006DJ-AC for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 12:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Colin Horne Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Jun 2022 16:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41719 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 41719-submit@debbugs.gnu.org id=B41719.165496364223818 (code B ref 41719); Sat, 11 Jun 2022 16:08:02 +0000 Original-Received: (at 41719) by debbugs.gnu.org; 11 Jun 2022 16:07:22 +0000 Original-Received: from localhost ([127.0.0.1]:53756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o03dx-0006Bz-Ib for submit@debbugs.gnu.org; Sat, 11 Jun 2022 12:07:22 -0400 Original-Received: from mail-io1-f49.google.com ([209.85.166.49]:42596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o01Sc-0002Hf-6C for 41719@debbugs.gnu.org; Sat, 11 Jun 2022 09:47:31 -0400 Original-Received: by mail-io1-f49.google.com with SMTP id a10so1661456ioe.9 for <41719@debbugs.gnu.org>; Sat, 11 Jun 2022 06:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cdfh.org.uk; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=4Sj08oKCv8tMuJzXEEGvBuHxh61vpP491zvfCVGm6NU=; b=gKZhs9kkXQiVe2e1AJFvc7TvJ4+2iYbwjl6VPWU0ntMvEatZPhbdxE1S6o/2tQKB5o 6zK1fEcku24K6/Od1NLkAIUBqKjBZ1d56qP+akyCZNKnp8KA5KEx0/YR/tRqGY2xxwxo NsEQqxfYup91TR8OeTO9z9Q0ak+CZ0WIfELhIwTKf66A1SeAiC3i4toftdr3c3UtGi+A TpZJMnx+H4F9efkoyTrEQ1gEWOIPsSqrU30q3ySgz1Y7eYX85hc2QcROmDa8EiGTVCSC wxYVqBXdLNLks8R31rfujSHqVNBPH60OeNVcjoF+jIBo2eDuUeCPhrgGBUgAXmtEX3bv sVNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=4Sj08oKCv8tMuJzXEEGvBuHxh61vpP491zvfCVGm6NU=; b=ISEfkVnKsYkNcAtc2GNVgGik8LhfZrPv5SSmgMpqlFCgioSatJtYNXFpj0vD7ieT3F so2TNSkdHLvMiXpJv2t6+7DkPrl6zL3A1D/yOx/i7DL0Q/8/BNdNxWiuWNals3T705XM NfebwtxHiSxVM/6X8GWzguiZXt9z61D325q2WXxYC0hr5Qpe4dF1B/qee8yEaHsieMmy DbNKirfglYBM2qXIyDICWiJcE5HWUownqMS96xXrxp85NDa96Kd9oColEfmGym1Z7DhI IlKP2Ud10gzKEssSXsaM4Rp0JS2rJEZJzO8NXmlChcmoybUWcbJBWhDt5nv9aaZkvRci srKQ== X-Gm-Message-State: AOAM530mEQ6iUSMqzVMAkCPp5S1EtKGv23Qwm0MLh89Z66erABrnbUnk sA6faaxdYpZkf4f7d1Bdp+3b/eUloIJt8kLE6VI+ajWCkcsY2Q== X-Google-Smtp-Source: ABdhPJzimASMPgStvhw4nmF5HVXGplf0cM4CcamlaDVXPUmiI/6vJX+RLrA+N5FGSWca53UouLnFgoKeqfFpMeF18DY= X-Received: by 2002:a02:b0c4:0:b0:331:9a38:9603 with SMTP id w4-20020a02b0c4000000b003319a389603mr18337059jah.270.1654955244180; Sat, 11 Jun 2022 06:47:24 -0700 (PDT) In-Reply-To: X-Mailman-Approved-At: Sat, 11 Jun 2022 12:07:20 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:234293 Archived-At: --00000000000072ea1405e12c4b65 Content-Type: text/plain; charset="UTF-8" Just to confirm, I've also verified this against GTK+ Version 3.24.34: GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.16.0) of 2022-06-11 Emacs is built as follows: ./configure' '--prefix=/home/hdiags/hdiags/spack/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-11.3.0/emacs-master-tvikd2njjgseq47ywpa5zrlksnz3pylz' '--with-x' '--with-x-toolkit=gtk' '--with-gnutls' For avoidance of doubt, the issue still occurs when the emacs is started as: # No server currently running emacs -q --fg-daemon emacsclient -F '((name . "foobar") (title . "foobar-title"))' --create-frame xprop reports: WM_CLASS(STRING) = "emacs", "Emacs" WM_ICON_NAME(STRING) = "foobar" _NET_WM_ICON_NAME(UTF8_STRING) = "foobar-title" WM_NAME(STRING) = "foobar-title" _NET_WM_NAME(UTF8_STRING) = "foobar-title" Using a previous version of emacs (26.3), the same steps produce: WM_CLASS(STRING) = "foobar", "Emacs" On Sat, 11 Jun 2022 at 14:00, Colin Horne wrote: > > I'm unable to reproduce this on the current trunk (x86_64-pc-linux-gnu, > > GTK+ Version 3.24.31, Debian/bookworm). > > > > Do you still see this issue on the current trunk? > > I can confirm that this is still an issue on trunk. > > My Emacs welcome screen says: > > GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.29, > cairo version 1.16.0) of 2022-06-11 > > Invoked as: > > emacsclient -F '((name . "foobar") (title . "foobar-title"))' > --create-frame -a "" > > xprop reports: > > WM_CLASS(STRING) = "emacs", "Emacs" > WM_ICON_NAME(STRING) = "foobar" > _NET_WM_ICON_NAME(UTF8_STRING) = "foobar-title" > WM_NAME(STRING) = "foobar-title" > _NET_WM_NAME(UTF8_STRING) = "foobar-title" > > This affects me in that I run simultaneous emacs instances as two > different users and have different icons configured for the > different users. Now that I can't change WM_CLASS, both emacs instances > appear under the same icon under my desktop manager, which is very > frustrating. > > Cheers, > Colin > --00000000000072ea1405e12c4b65 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Just to confirm, I've also verified this against GTK+= =C2=A0Version 3.24.34:

GNU Emacs 29.0.50 (build 1, x86_6= 4-pc-linux-gnu, GTK+ Version 3.24.34,
=C2=A0cairo version 1.16.0) of 202= 2-06-11

Emacs is built as follows:
.= /configure' '--prefix=3D/home/hdiags/hdiags/spack/spack/opt/spack/l= inux-ubuntu20.04-skylake/gcc-11.3.0/emacs-master-tvikd2njjgseq47ywpa5zrlksn= z3pylz' '--with-x' '--with-x-toolkit=3Dgtk' '--with= -gnutls'

For avoidance of doubt, the issue= still occurs when the emacs is started as:

=C2=A0= # No server currently running
=C2=A0 emacs -q --fg-daemon
=C2=A0 emacsclient -F '((name . "foobar") (title . &q= uot;foobar-title"))' --create-frame

x= prop reports:

WM_CLASS(STRING) =3D "emacs&quo= t;, "Emacs"
WM_ICON_NAME(STRING) =3D "foobar"
_NE= T_WM_ICON_NAME(UTF8_STRING) =3D "foobar-title"
WM_NAME(STRING)= =3D "foobar-title"
_NET_WM_NAME(UTF8_STRING) =3D "foobar= -title"

Using a previous version of emacs= (26.3), the same steps produce:

WM_CLASS(STRING) = =3D "foobar", "Emacs"


=

On Sat, 11 Jun 2022 at 14:00, Colin Horne <colin@cdfh.org.uk> wrote:
> I'm unable to re= produce this on the current trunk (x86_64-pc-linux-gnu,
> GTK+ Versio= n 3.24.31, Debian/bookworm).
>
> Do you still see this issue on= the current trunk?

I can confirm that this is still= an issue on trunk.=C2=A0

My Emacs welcome screen = says:=C2=A0

GNU Emacs 29.0.50 (build 1, x86_64-pc-= linux-gnu, GTK+ Version 3.24.29,
=C2=A0cairo version 1.16.0) of 2022-06-= 11

Invoked as:

=C2=A0= emacsclient -F '((name . "foobar") (title . "foobar-tit= le"))' --create-frame -a ""

xprop reports:

WM_CLASS(STRING) =3D "emacs&q= uot;, "Emacs"
WM_ICON_NAME(STRING) =3D "foobar"
_= NET_WM_ICON_NAME(UTF8_STRING) =3D "foobar-title"
WM_NAME(STRIN= G) =3D "foobar-title"
_NET_WM_NAME(UTF8_STRING) =3D "foob= ar-title"

This affects me in that I run s= imultaneous emacs instances as two different users and have different icons= configured for the different=C2=A0users. Now that I can't change WM_CL= ASS, both emacs instances appear under the same icon under my desktop manag= er, which is very frustrating.=C2=A0

Cheers,
=
=C2=A0 Colin
--00000000000072ea1405e12c4b65--