From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +J5iJBeZwWL92AAAbAwnHQ (envelope-from ) for ; Sun, 03 Jul 2022 15:26:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OM0hJBeZwWJh6AAAauVa8A (envelope-from ) for ; Sun, 03 Jul 2022 15:26:47 +0200 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 4881F1B4AF for ; Sun, 3 Jul 2022 15:26:47 +0200 (CEST) Received: from localhost ([::1]:52242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7zcc-0002zp-43 for larch@yhetil.org; Sun, 03 Jul 2022 09:26:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7zc0-0002zG-S8 for emacs-orgmode@gnu.org; Sun, 03 Jul 2022 09:26:09 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:45783) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7zbu-0000an-Ne for emacs-orgmode@gnu.org; Sun, 03 Jul 2022 09:26:07 -0400 Received: by mail-pj1-x102c.google.com with SMTP id g20-20020a17090a579400b001ed52939d72so7065458pji.4 for ; Sun, 03 Jul 2022 06:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=r0jQhn1yv59yxc2mWvLJxVsaNK8ZU7om+lclNCrUOsY=; b=dGilxXGtBZFS3w9YI4Q7KY+6sl+iqSu9a1kPgSN1Ygz9rg4MeHeA6JPKuFsKDDTGGP WoG9Sn+r+tvXCowDmE7/qd56GnXZnZ2cV1juHGtP5DXZEypbjN0U0enJCeuhCYwAxUGU 5zmwKTy7LTMKQ11K+RMwkh69HGtw1Ngx12U5SY75sNZlOuosXxV5PmVwz9l9hG9Z1Yk2 72C8kkM6Td+1kwYVlMAApLoi/7SEGQbtGNokSFpl8pBa/pFc6JF/nEQlffZSDqQYKJKi nPHvkrq6oJNEVF9PZqlxs/cWiohjoDs3GIdunOX9HVNWqqN+wasaidpYlna1jL1oE91Q XWtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=r0jQhn1yv59yxc2mWvLJxVsaNK8ZU7om+lclNCrUOsY=; b=P5Ec1x9nkXfNxhZOZWN9CUt0olDG4XLRdnm4qJudZIT8ES+3p+8m9BKuqYkurIMWTK BbcZGT3kpN8gc1pYe+2VNE0g3m3PP2CFEXeVwUkHSvtw5AZUt8hcYweWB4qGamGNHAFl lgfrQ0KJdUtBcdQQXSkEYVIcj4AZMekc7nqW7iMhYW1tuwA3zG9EOJNH9NKEuLFBse7A jo1h498oYloizGq9CDL7mANQqLg/AMRMiLUZaxMitKtK5BnUJpXuEqVgfvBKnoL/E0zD T1VG+gTrq40OWoNFC9eubJdGaLHjLeW2CgNGWnM8cHwV7w6ALSItpxQ6aQ6kQi5ziL9a 6x1w== X-Gm-Message-State: AJIora9IGrRX9lCrbqbDTzSmJ7o5PMIeMXFyXuH2/Z/F8jRiqhE40zIs QMPjplNZiEc2aN07VQEi1FrTkX8sBz7b7g== X-Google-Smtp-Source: AGRyM1vd6StFB1R+UMQ6oFi4xF9EtcGS4znyf4KZ07dHwNFe7KFqJ0DtJ5xn0uSpr7b9otANiyGbPQ== X-Received: by 2002:a17:902:c245:b0:16b:d010:f5f5 with SMTP id 5-20020a170902c24500b0016bd010f5f5mr7580957plg.170.1656854760610; Sun, 03 Jul 2022 06:26:00 -0700 (PDT) Received: from t480 (97-126-3-176.tukw.qwest.net. [97.126.3.176]) by smtp.gmail.com with ESMTPSA id bl21-20020a056a00281500b005251c6fbd0csm19003748pfb.29.2022.07.03.06.25.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jul 2022 06:26:00 -0700 (PDT) References: User-agent: mu4e 1.4.15; emacs 27.1 From: Ken Mankoff To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: Org links and Flatpak firefox In-reply-to: Date: Sun, 03 Jul 2022 06:25:59 -0700 Message-ID: <87iloexr88.fsf@t480.home> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=mankoff@gmail.com; helo=mail-pj1-x102c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656854807; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=r0jQhn1yv59yxc2mWvLJxVsaNK8ZU7om+lclNCrUOsY=; b=B7rWQozn1ePMp4o8cM9OPYpnpVPP6hPwakxhrJCkw57vNEjGNypTk1NAEnOi6r59otGnxi UHVjrtL898Vx1wDZW6U7skL78htNnvOQU4K9AuCncRI/xRZNSNGZFfYIGd/+1u9geU8epg e7xAQmVvS5M4C6od7z8P0K3u5V26T2k0Ux09Vq0Hm86OPvO49QcprgG/dzesUF47SXfezv 7DgIlcxNkYIw3/2meaMVHDAnCL+f190q+7+Yevm46VNfs6MYdRBKGSDTEhco5ZeGWgjoug uYZjsqqa3uPPvm8nmA81wWWG0Dac1nD5gPELw1qBpydFY3lFCm5Ypg+swlysgg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656854807; a=rsa-sha256; cv=none; b=UBszTlHTv0D8aAPGPT53cxyLHQVh4CCWP48nBtH+Z/6KofhBcFtXalyFRhyrUGJ8HGqcRA iAHcyXUDX61EXIMJA8+yfq3Bq76u1G3YARcAJW6OMz8Kx365nXncKk//yQlUAbArbsgDOY nQIxGWzK5U+pzWGnD7TVKU4kLEWiQmmWMNVN/dM3ZlCilktPSquSZkXs6VB7xbXB4orpvL NTth5vUcfCERtXE7NFdHUEP910GaCsfZD2FT+26M5WdCHLTt0BsxZWHYuziWwPF1NNjdBz im4zEnCTybY5fRed59EuykS7x+BiOCA+m/RjmAXfoJSnxF6hQuZh5ge5rFYDkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=dGilxXGt; dmarc=pass (policy=none) header.from=gmail.com; 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-Migadu-Spam-Score: -8.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=dGilxXGt; dmarc=pass (policy=none) header.from=gmail.com; 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-Migadu-Queue-Id: 4881F1B4AF X-Spam-Score: -8.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: aLCocWEabhUa Hi Max, Thanks for the debugging suggestions. It helped me figure out that the problem was us usual human error. Emacs opens URLs in the last-active (from the UI perspective) firefox, even if there is a firefox on the current virtual desktop. I had "browse-url-generic-program" set to a script that used xdotool to find if there was a firefox on this desktop, and then sent the URL there. xdotool doesn't play nice withe flatpak, and that was the problem. Thanks again for the suggestions, -k. On 2022-07-02 at 20:46 -07, Max Nikulin wrote: > On 02/07/2022 23:03, Ken Mankoff wrote: >> I've just upgraded to Kubuntu 22.04. Firefox is no longer >> instsallable via apt so I chose flatpak over snap. Now when I C-c >> C-o (org-open-at-point) on a URL, Firefox comes to the foreground, >> but nothing else happens. The page does not load. If I 'xdg-open >> URL' then the URL loads, so the system outside of emacs does >> interact correctly with the flatpak app. > > Please, seek for various messages reported during this action: > - Emacs *Messages* buffer (C-h C-e) > - Firefox console (Ctrl+Shift+J) > - stderr of the Firefox process, unsure where it can be expected for > flatpak apps: terminal application from which Firefox was initially > started, output of "journalctl --user", in earlier days X11 errors may > be saved to ~/.xsession-errors > - flatpak may have its own log file. > > It is rather strange that Firefox receives some event, xdg-open works > in isolation, but not from Emacs. What does happen when > - `browse-url' is called from Emacs, > - a link is activated in an Org document when Firefox application is closed? > > Notice that you did not specify which versions of Emacs and Org you > have installed (M-x org-version), and the source of the package: > bundled with emacs, elpa-org deb package, Emacs ELPA package, etc.