From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#56800: Pointless "Warning: desktop file appears to be in use by PID ###." Date: Wed, 27 Jul 2022 18:58:36 +0200 Message-ID: References: <838roebivp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a65c9005e4cc54cd" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36564"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56800@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 27 19:02:08 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 1oGkQB-0009Pk-MK for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 19:02:07 +0200 Original-Received: from localhost ([::1]:38416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGkQA-0003gj-OU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 13:02:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57470) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGkND-0001Ot-96 for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 12:59:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGkNC-0002io-Vf for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 12:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGkNC-0001wp-Dp for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 12:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jul 2022 16:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56800 X-GNU-PR-Package: emacs Original-Received: via spool by 56800-submit@debbugs.gnu.org id=B56800.16589411377474 (code B ref 56800); Wed, 27 Jul 2022 16:59:02 +0000 Original-Received: (at 56800) by debbugs.gnu.org; 27 Jul 2022 16:58:57 +0000 Original-Received: from localhost ([127.0.0.1]:56887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGkN6-0001wT-RT for submit@debbugs.gnu.org; Wed, 27 Jul 2022 12:58:57 -0400 Original-Received: from mail-yb1-f175.google.com ([209.85.219.175]:37638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGkN3-0001wC-Vy for 56800@debbugs.gnu.org; Wed, 27 Jul 2022 12:58:55 -0400 Original-Received: by mail-yb1-f175.google.com with SMTP id 141so6576727ybn.4 for <56800@debbugs.gnu.org>; Wed, 27 Jul 2022 09:58:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SeqqNV7DIbrt7qjpNtGTkBAvagTpbKTr8OGH8SwbDVA=; b=MD/LXSbtD+SCtub2790mN0bXZwtpNFrYh5uV/b+uOuu5p7LO7lIo1FP5llQ2LcZz5C IoEDPrpZN76f4Uod8HIQwRfoLxN+K0X003kRs0qYhcsHljP+iuozMDm+nD3elA9o39rJ OB7H9ozBL7JQj4yrNLmmSQePjeYlGogx/qrvbprqIckEMPFlPljr8TI/b4ipiO6KwKgu e5HZvn9NxVt1ZCdzMoYfOToUfv4D9BLgnT5WdVIxqG+gdMPyKRytBhjXElxznXrJTc6g q9nVkq8pUtPQqhlWYUc0F2sL3c7P8Lmat9QA7Qd59+iF6bpeONt63jm7JBz2UABAhJT4 UUjA== 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:cc; bh=SeqqNV7DIbrt7qjpNtGTkBAvagTpbKTr8OGH8SwbDVA=; b=Op4cxnH6gDqqQCl6Cuwah/O952hV5J6mAd+XehP5YRvyCGzOH57r0Ti8Qrib4uJRV5 dOS4wmNUldP75Pmk3PsKemkOnmTzPQvxDm8KQfZSZIDsBEvHWJ/7X7CdBl5v98+eLzqt zVb+4LWZDBIK3yMcdYuuTLxLK846TspbDtJeG/0bG8/q+D2CkTGxP/bIChfsb4U9FP9C ZfuqjHP6Ck4o0W/Iht4n4AjgvirNMNSYU6wmSzhXn+YeRzAQkCM3sDKc1OwZscTTMrWc 2ozkY2Tii/R5ua5SpxRBvZq/z7+fCQ1h5MYgBe4g66xlmBTS8eeo5o6r2IDhGc8fNeq9 bp6Q== X-Gm-Message-State: AJIora90vJxcwKvubFSBrYu540jONfJxdhxAl10xRRmfPOD/rV2QoX0b UcXdtlVV+gNBJaflRybrVeO/UD4eVhNdrlXESA== X-Google-Smtp-Source: AGRyM1tXOW7bDFAUJHmduQpoeSPB9m4OkrJbmzTWgw79Dx+Wg0rtJhpP8uuyNxYC1twLFKzPqU9PPFxcozacWKNsQ7M= X-Received: by 2002:a25:3416:0:b0:671:7ea3:19d6 with SMTP id b22-20020a253416000000b006717ea319d6mr5054479yba.116.1658941128202; Wed, 27 Jul 2022 09:58:48 -0700 (PDT) In-Reply-To: <838roebivp.fsf@gnu.org> 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:238051 Archived-At: --000000000000a65c9005e4cc54cd Content-Type: text/plain; charset="UTF-8" No, but I have tried now. I guess I understand the default behavior better now (even if I don't find it generally useful enough to be the default; how many users really have remotely mounted paths in `desktop-dirname'?). But why does even cleanly exiting Emacs leave desktop file "apparently used"? Paul On Wed, 27 Jul 2022 at 18:50, Eli Zaretskii wrote: > > From: Paul Pogonyshev > > Date: Wed, 27 Jul 2022 18:25:24 +0200 > > > > The code in `desktop.el' should really check if the process with that > PID still exists before claiming that it > > might be using the desktop file somehow. > > AFAIU, you should be able to have that if you customize > desktop-load-locked-desktop to give it the value 'check-pid'. Did you > try that? > --000000000000a65c9005e4cc54cd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
No, but I have tried now. I guess I understand the default= behavior better now (even if I don't find it generally useful enough t= o be the default; how many users really have remotely mounted paths in `des= ktop-dirname'?).

But why does even cleanly exiting E= macs leave desktop file "apparently used"?

Paul

On Wed, 27 Jul 2022 at 18:50, Eli Zaretskii <eliz@gnu.org> wrote:
> From: Paul Pogonyshev <pogonyshev@gmail.com> > Date: Wed, 27 Jul 2022 18:25:24 +0200
>
> The code in `desktop.el' should really check if the process with t= hat PID still exists before claiming that it
> might be using the desktop file somehow.

AFAIU, you should be able to have that if you customize
desktop-load-locked-desktop to give it the value 'check-pid'.=C2=A0= Did you
try that?
--000000000000a65c9005e4cc54cd--