GNU bug report logs -
#21357
24.5; Daemon leaves Mac OSX App open after closing GUI frame
Previous Next
Reported by: random832 <at> fastmail.com
Date: Wed, 26 Aug 2015 23:39:02 UTC
Severity: normal
Merged with 14619,
23586
Found in versions 24.3, 24.5, 25.0.94
Done: Alan Third <alan <at> idiocy.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On Mon, Aug 16, 2021 at 06:13:03PM +0100, Alan Third wrote:
> On Mon, Aug 16, 2021 at 02:57:58PM +0200, Lars Ingebrigtsen wrote:
> > random832 <at> fastmail.com writes:
> >
> > > If I have Emacs (OSX App) started in daemon mode, and then create a
> > > GUI frame, e.g. emacsclient -c, an instance of Emacs.app starts,
> > > which then does not go away when the frame is closed with C-x C-c.
> > > Most menu items, even ones such as "New Frame (C-x 5 2)" that seem
> > > like they should make sense without a frame, are unresponsive.
> >
> > (I'm going through old bug reports that unfortunately weren't
> > resolved at the time.)
> >
> > Is this problem still present in recent Emacs versions?
>
> As far as I'm aware it is.
The attached patch "fixes" this by hiding the app icon in the dock and
removing the menus. It's still possible to create a new frame using
emacsclient.
There's still a bug when a terminal frame is open and the last GUI
frame is closed. I've put the code in ns_delete_terminal, which may
not be the best place. Perhaps it should go in the normal frame
closing function and check whether there are any remaining open
frames.
The alternative is to occasionally run the NS run loop even when there
are no NS frames open. I don't know how we could do that but it would
allow us to leave the menu and dock icon available and operative even
without any GUI frames open.
--
Alan Third
[0001-Disable-the-NS-app-when-no-frames-are-left-bug-14619.patch (text/x-diff, attachment)]
This bug report was last modified 3 years and 225 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.