From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +J+ULavQ22MvaQEAbAwnHQ (envelope-from ) for ; Thu, 02 Feb 2023 16:03:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +CiZLKvQ22Nv7AAAG6o9tA (envelope-from ) for ; Thu, 02 Feb 2023 16:03:07 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6BB2B1527F for ; Thu, 2 Feb 2023 16:03:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNb6N-0005zl-2P; Thu, 02 Feb 2023 10:02:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNb6K-0005zN-G1 for emacs-orgmode@gnu.org; Thu, 02 Feb 2023 10:02:12 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNb6I-0003Ar-T8 for emacs-orgmode@gnu.org; Thu, 02 Feb 2023 10:02:12 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pNb6G-0006Sl-9Z for emacs-orgmode@gnu.org; Thu, 02 Feb 2023 16:02:08 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: [BUG] org-manual: Using bookmarklet for org-capture is no longer reliable Date: Thu, 2 Feb 2023 22:02:02 +0700 Message-ID: References: <3218434.44csPzL39Z@linux.fritz.box> <860cca44-faa3-ce41-3606-f92b50ee00a9@gmail.com> <87a62bnf4t.fsf@localhost> <21750362.EfDdHjke4D@linux.fritz.box> <939b62c1-34ee-051e-405a-328b841d3d16@gmail.com> <875yculcim.fsf@localhost> <87pmaxe9fk.fsf@localhost> <87edrc3w6f.fsf@localhost> <871qnb2ked.fsf@MagnumOpus.khem> <51559ac9-9fce-8c0a-7800-f62ee654b752@gmail.com> <87r0v9jyj2.fsf@localhost> <87v8kknocl.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Content-Language: en-US In-Reply-To: <87v8kknocl.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 27 X-Spam_score: 2.7 X-Spam_bar: ++ X-Spam_report: (2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.09, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675350187; a=rsa-sha256; cv=none; b=snEBYDXk8ExaY/rKNTatjtknvQkzerm3UGm2XWoUoQb+SRikewInkIWJE/sHEh2m98XmIh BBMwghfxnx2gOfGRWKFhnfPUaZ1Lc09Tx3c4POyYIfTOTFvcp4y9MjDpCLdEo/sxRWjJwX 4xtLHELYsA53XzFT7ggFPA+xOPrexcg9QMn9vBQPP0gK8iD8YxByejCLU+/C+VjhiW07rh i1M5WbKN3z8aX4TVqjlt2mb+kvHWoTGfjerf05EPUU+fCuhazlO521YcSt+3qP+F4Zu5lU vNC4KBLSRc/UZekD9Cz/71Q14V8c2Ig3Vsvq/YifnEG8vDjtRNSAGG+aPjL5hw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675350187; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=M7tWRHZ6EtVBJ6vMFHh/d4BL0wGwpG3ydy1ZQD8xs18=; b=IW9cUvDDWscvpfTeO6rMKQqhP1tGCr5A2Ao/GVkW7m2L4Zjp8zlDo2zw9UQGqct5uMwj4x wKVXuJK+CAgCuMU+JVVhKTrfu+9OzCeP7tjgIesKDCDNHT9J+8FjF786HRvcgEcubmrVFv yENWE3QM2l41YhnslcgNKtNOOLe0llBgvZ3J9UFCuPBmynWjPy6v+n7wKmkW0zrd4Ku9hk hTSSEIMJFLzE2sDM3TlRwHMsuQqyCqS7OeY5e2hKgZPRsOfuTb23VjVcY4li1GNFBfBpd/ JqzFFzEBZlFp0SZd5N73Cr624OMhDAe6luzrnprWSSXZ4VvpMDAli/gsQBp9Qw== X-Migadu-Spam-Score: -1.38 X-Spam-Score: -1.38 X-Migadu-Queue-Id: 6BB2B1527F X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-TUID: MjNADoSVr8ss On 02/02/2023 21:17, Ihor Radchenko wrote: > Max Nikulin writes: > >>> Would it be reasonable to make org-protocol raise Emacs frame on >>> failure? >> >> Raising frame may help if window manager allows to do it. In some cases >> the only possibility for a window is to request attention. Creating new >> frame may be more reliable. Window manager may still take measures >> against focus stealing. I have heard that such feature exist, but I am >> unsure concerning severity of such policy. > > That's usually up to user. I would not be so sure for windows. Even on Linux Org should be ready for any user configuration of window manager. >> However I was writing a more annoying issue. Firefox may quietly swallow >> attempt to launch external protocol handler. Even no message is spitted >> to console like in the case of unknown protocol or throttling due to >> multiple attempts during short interval of time. Emacs is completely >> unaware of capture attempt in such case. > > Can Firefox extensions use DBUS? Browser extensions are isolated as much as possible. It is assumed that they communicate with web sites. They may communicate with a native messaging application however. It must be installed and configured in addition to the extension. This native host application may use D-BUS, but it may invoke emacsclient directly. E.g. I use https://github.com/maxnikulin/linkremark extension with https://github.com/maxnikulin/burl native messaging helper. I have not checked state of affairs recently, but when I tried native messaging applications were unavailable for browsers shipped as snap or flatpack packages (due to additional level of isolation). At least some related Firefox bugs have not closed yet. So in practice it is possible to get it working in both cases: external protocol handlers and native messaging helper. I would call any approach "rock solid" currently.