urxvt leaks DESKTOP_STARTUP_ID to children

Marc Lehmann schmorp at schmorp.de
Fri Sep 7 04:23:17 CEST 2018


On Thu, Sep 06, 2018 at 10:26:35PM +0200, Dimitrios Semitsoglou-Tsiapos <kmhzsem at gmx.com> wrote:
> On the fourth comment, Sebastian Ramacher explains why this appears to
> be a bug with `urxvt`, which should be unsetting this variable:

How would urxvt know that it should unset this variable?

In any case, if this variable causes some problems when set, you can, as a
workaround, either:

a) not set if when starting urxvt
b) unset it before starting urxvt (e.g. "unset DESKTOP_STARTUP_ID; urxvt")
c) unset it in the shell/program started by urxvt.

> > I can't find any code in urxvt that does that, even though it appears to offer startup notification support.
> I am not certain whether this is the proper fix for the bug I was
> dealing with, but it does resolve it.

The only connection urxvt has with this is that it can optionally use
libstartup-notification. If your urxvt has support for this compiled
in and it doesn't work, then this might or might not be a bug in
libstartup-notification - this environment variable is an implementation
detail that urxvt shouldn't know about.

Please note that not usnetting this variable is allowed by the spec, so if
this causes problems with another application, it would be a bug in either
the spec or that application, not urxvt.

Additionally, the startup notification spec doesn't really allow for
the failure behaviour described in the zathura bug report - it should
work regardless of whether the variable is set or not, as the variable
is merely a hint. If setting the variable causes problems, then this is
almost cetrainly a problem between the window manager and/or zathura
- presumably, your window manager (ab-)uses startup notifications for
identifying single windows, which is not something that it can do
reliably.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the rxvt-unicode mailing list