unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Robin Green <greenrd@greenrd.org>
Cc: 7552@debbugs.gnu.org
Subject: bug#7552: 23.2; Emacs doesn't die when told to by X session manager
Date: Thu, 16 Dec 2010 10:46:17 +0800	[thread overview]
Message-ID: <87tyiebfk6.fsf@stupidchicken.com> (raw)
In-Reply-To: <87vd391yoz.wl%greenrd@greenrd.org> (Robin Green's message of "Sat, 04 Dec 2010 12:59:08 +0000")

Robin Green <greenrd@greenrd.org> writes:

> Until now, this would probably not matter, since normally when an X
> session is stopped, all clients will be killed anyway. However, KDE 4.6
> beta 1 allows the user to stop and start subsessions called "activities"
> without logging out. When the KDE session manager tells emacs to die,
> it should do so - but it doesn't, and as a consequence, the following
> happens:
>
> When you stop the activity in KDE, because the stopped activity isn't
> currently visible, emacs is not visible on the display - but it still
> remains running. Then if you restart the same activity, another copy of
> emacs opens up, and the frame of the original emacs process reappears -
> so you now have two emacs processes running, which is not what is
> supposed to happen.
>
> The X session management specification does anticipate subsessions
> being used - indeed, it gives an example of them - but as far as I know,
> they have not been widely used until now, which may explain why this bug
> has gone unnoticed for many years.

AFAICT, there is code for Emacs to die when told to by the session
manager.  Could you check if Emacs is compiled with xsm support?  You
should have something like this in your configure log:

  checking X11/SM/SMlib.h usability... yes
  checking X11/SM/SMlib.h presence... yes
  checking for X11/SM/SMlib.h... yes
  checking for SmcOpenConnection in -lSM... yes





  parent reply	other threads:[~2010-12-16  2:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-04 12:59 bug#7552: 23.2; Emacs doesn't die when told to by X session manager Robin Green
2010-12-07  6:38 ` Jan Djärv
2010-12-16  2:46 ` Chong Yidong [this message]
2010-12-16  2:48 ` Chong Yidong

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87tyiebfk6.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=7552@debbugs.gnu.org \
    --cc=greenrd@greenrd.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).