X-Loop: help-debbugs@HIDDEN Subject: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under eshell Resent-From: Jeff Kowalski <jeff.kowalski@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 16 Jun 2022 06:27:02 +0000 Resent-Message-ID: <handler.56013.B.165536081314264 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 56013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 56013 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.165536081314264 (code B ref -1); Thu, 16 Jun 2022 06:27:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Jun 2022 06:26:53 +0000 Received: from localhost ([127.0.0.1]:40495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o1ixv-0003hy-91 for submit <at> debbugs.gnu.org; Thu, 16 Jun 2022 02:26:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:60948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jeff.kowalski@HIDDEN>) id 1o1g1j-0006wX-9C for submit <at> debbugs.gnu.org; Wed, 15 Jun 2022 23:18:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <jeff.kowalski@HIDDEN>) id 1o1g1j-0007UX-3V for bug-gnu-emacs@HIDDEN; Wed, 15 Jun 2022 23:18:35 -0400 Received: from mail-vs1-xe30.google.com ([2607:f8b0:4864:20::e30]:43804) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <jeff.kowalski@HIDDEN>) id 1o1g1f-0001N7-Ij for bug-gnu-emacs@HIDDEN; Wed, 15 Jun 2022 23:18:34 -0400 Received: by mail-vs1-xe30.google.com with SMTP id r4so66914vsf.10 for <bug-gnu-emacs@HIDDEN>; Wed, 15 Jun 2022 20:18:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=kdhXKYwvVhTbhf4F+YNj9rd72+e9Io/Nuc7mCdkRsZc=; b=LKW6VTsl8hS6fcDdHEOSm2+kSZxcZpDzItNS0y9+ul3iSRywxTwDPJK9s5vOhCdexe iK4T3prlcYY+Bkdmm1q31g2Rkkp1Crj/xZ52BZCy/GHbz8rqzIk7Q+WCeNRFpimxphB2 WidlmzoV4rp90sprNmajqJrhrNDpp9lHie3k0MEs/rN2tQF2M+Gb4S5s85KCH78DnQQx 0s9nRxR2OAuWa9EGk7qyVowY86k+Ga/9D8TZS8km/jfWsV8cp20ymm+pr/zuym8CBX9T ZXVf719CX8Wto0Bb+WeX+1ARD35qSKPiEeypkQ1A+gKR+SgDEKLzLJSpKWaDLxvkqZZg J3eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=kdhXKYwvVhTbhf4F+YNj9rd72+e9Io/Nuc7mCdkRsZc=; b=24jjh8a94v+Cn4mGLa8tRPEjFdhopEFN+ro9m14yCqLQRJt0A67VENcM1vsHDD6kCE bAxJffEnszqVsmYpY3Lvy+nv2vvZZsa23qFSRThIDf/qfIRO48rDI+yOw+i7PXeleucx TibWyINqiY+2SItB9TSGmxd90njlUslV8/hc/NggDqiGtHk04OtiSJiuvEbIkNMXKpIe XFU/g9odvjtaZkOTgZ0aP/KAADUACaeOjEYpakRKsimHmawR9h39qDNdoiuKHSll41LT /B6M0LgSNbeeeB/VQKcdKNsa3UZWpxUquGOvUNr+zOvLXyiWX1cHhf1zAIZAAaxmBxLp hWKQ== X-Gm-Message-State: AJIora8nufDUnWQ27V4ngmwskn8KcqY/IiVV3Xr4GypPGvO5/GCy8AXS W6O9lHfkezYNL73cjlUXV3Ie/ArtLNn653nnqGqI/TDzwIE= X-Google-Smtp-Source: AGRyM1uEpxPX0HwNqOfTEs9a9RrCqPSxPDB/sKprSfzOgy91llo/aSShR/ey9q7NuDSSF7f8a9nTJnnUD2uTgNcceiA= X-Received: by 2002:a05:6102:38ca:b0:34c:2402:1a20 with SMTP id k10-20020a05610238ca00b0034c24021a20mr1593470vst.83.1655349509373; Wed, 15 Jun 2022 20:18:29 -0700 (PDT) MIME-Version: 1.0 From: Jeff Kowalski <jeff.kowalski@HIDDEN> Date: Wed, 15 Jun 2022 20:18:18 -0700 Message-ID: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> Content-Type: multipart/alternative; boundary="0000000000007c441405e188175c" Received-SPF: pass client-ip=2607:f8b0:4864:20::e30; envelope-from=jeff.kowalski@HIDDEN; helo=mail-vs1-xe30.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, HTML_MESSAGE=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-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Thu, 16 Jun 2022 02:26:50 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) --0000000000007c441405e188175c Content-Type: text/plain; charset="UTF-8" Setup: $ echo "Hello, world!" > /tmp/hello.txt Normal behavior: $ gnome-terminal ;; now within terminal $ gio open /tmp/hello.txt ;; GOOD RESULT - file is opened in app, as described by mime type. On my system, app is 'Xed' Emacs behavior: $ emacs -Q ;; now in emacs M-x eshell ;; now in eshell buffer $ gio open /tmp/hello.txt ;; BAD RESULT - nothing happens, app not opened, silent failure, nothing in message buffer $ xdg-open /tmp/hello.txt ;; BAD RESULT - nothing happens, app not opened, silent failure, nothing in message buffer I've tried making my $ENV identical between normal terminal and eshell, but I get the same results. Thanks for your help, Jeff Kowalski --------- In GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2022-05-30 built on lcy02-amd64-022 Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Linux Mint 20.3 Configured using: 'configure --build=x86_64-linux-gnu --prefix=/usr '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/28.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/28.1/site-lisp:/usr/share/emacs/site-lisp --program-suffix=28 --with-modules --with-file-notification=inotify --with-mailutils --with-harfbuzz --with-json --with-zlib --with-x=yes --with-x-toolkit=gtk3 --with-lcms2 --with-cairo --with-xpm=yes --with-gif=yes --with-gnutls=yes --with-jpeg=yes --with-png=yes --with-tiff=yes --with-xwidgets 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs28-jmphgn/emacs28-28.1~1.git5a223c7f2e=. -fstack-protector-strong -Wformat -Werror=format-security -no-pie' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -no-pie'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Info Minor modes in effect: minions-mode: t doom-modeline-mode: t dimmer-mode: t auto-dim-other-buffers-mode: t global-atomic-chrome-edit-mode: t org-super-agenda-mode: t global-git-commit-mode: t magit-auto-revert-mode: t global-rbenv-mode: t counsel-mode: t eshell-vterm-mode: t eshell-syntax-highlighting-global-mode: t cua-mode: t display-time-mode: t which-key-mode: t override-global-mode: t global-flycheck-mode: t global-hl-todo-mode: t which-function-mode: t key-chord-mode: t global-company-mode: t company-mode: t ivy-mode: t erc-truncate-mode: t erc-track-mode: t erc-spelling-mode: t editorconfig-mode: t global-diff-hl-mode: t winner-mode: t global-undo-tree-mode: t undo-tree-mode: t global-anzu-mode: t anzu-mode: t projectile-mode: t volatile-highlights-mode: t global-hl-line-mode: t super-save-mode: t windmove-mode: t recentf-mode: t savehist-mode: t save-place-mode: t show-smartparens-global-mode: t global-auto-revert-mode: t delete-selection-mode: t prelude-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/jeff/.emacs.d/elpa/git-modes-20220422.1611/gitignore-mode hides /home/jeff/.emacs.d/elpa/gitignore-mode-20210528.1856/gitignore-mode /home/jeff/.emacs.d/elpa/el-get-20211224.959/el-get-install hides /home/jeff/.emacs.d/elpa/load-relative-20201130.2202/el-get-install /home/jeff/.emacs.d/el-get/emacs-web-server/web-server-status-codes hides /home/jeff/.emacs.d/elpa/web-server-20210708.2242/web-server-status-codes /home/jeff/.emacs.d/el-get/emacs-web-server/web-server hides /home/jeff/.emacs.d/elpa/web-server-20210708.2242/web-server /home/jeff/.emacs.d/elpa/cmake-mode-20220322.1258/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /home/jeff/.emacs.d/elpa/clang-format-20191121.1708/clang-format hides /usr/share/emacs/site-lisp/clang-format/clang-format /home/jeff/.emacs.d/elpa/transient-20220527.2213/transient hides /usr/share/emacs/28.1/lisp/transient /home/jeff/.emacs.d/el-get/flymake/flymake hides /usr/share/emacs/28.1/lisp/progmodes/flymake Features: (shadow sort mail-extr emacsbug sendmail goto-addr esh-autosuggest em-unix em-script em-prompt em-ls em-hist em-pred em-glob em-cmpl em-dirs esh-var em-basic em-banner diary-lib diary-loaddefs cal-iso org-duration ffap ol-eww eww url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-search eieio-opt speedbar ezimage dframe gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr kinsoku svg gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader ol-docview ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi origami origami-parsers solarized-gruvbox-dark-theme solarized-palettes rainbow-mode rainbow-delimiters elisp-slime-nav personal mule-util company-ispell company-anaconda anaconda-mode pythonic minions doom-modeline doom-modeline-segments doom-modeline-env doom-modeline-core all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons solarized-theme solarized solarized-faces dimmer auto-dim-other-buffers hydra atomic-chrome websocket bindat let-alist shackle trace org-ehtml org-ehtml-server ox-ehtml org-ehtml-util ox-org org-lint org-attach org-id org-protocol org-clock org-super-agenda ts htmlize org-habit ox-odt ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox org-indent ob-gnuplot ob-latex ob-dot ob-ruby ob-python ob-shell ace-window magit-bookmark magit-submodule magit-obsolete magit-popup magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode git-commit log-edit message rfc822 mml mml-sec epa gnus-util rmail rmail-loaddefs mm-decode mm-bodies mailabbrev mail-utils gmm-utils mailheader add-log magit-core magit-autorevert magit-margin magit-transient magit-process with-editor server magit-mode transient magit-git magit-base magit-section crm compat-27 compat-26 platformio-mode async irony-eldoc irony-completion irony-snippet flycheck-irony irony-diagnostics irony irony-iotask realgud-byebug realgud:byebug-track-mode realgud:byebug-init realgud:byebug-core realgud-pry realgud:pry-track-mode realgud:pry-init realgud:pry-core realgud realgud-lang-java realgud-zshdb realgud:zshdb-track-mode realgud:zshdb-core realgud:zshdb-init realgud-trepan3k realgud:trepan3k-track-mode realgud:trepan3k-core realgud:trepan3k-init realgud-trepan2 realgud:trepan2-track-mode realgud:trepan2-core realgud:trepan2-init realgud-trepanpl realgud:trepanpl-track-mode realgud:trepanpl-core realgud:trepanpl-init realgud-trepanjs realgud:trepanjs-track-mode realgud:trepanjs-core realgud:trepanjs-init realgud-lang-js realgud-trepan realgud:trepan-track-mode realgud:trepan-core realgud:trepan-init realgud-remake realgud:remake-track-mode realgud:remake-core realgud:remake-init realgud-rdebug realgud-rdebug-track-mode realgud-rdebug-core realgud-rdebug-init realgud-lang-ruby realgud-perldb realgud:perldb-track-mode realgud:perldb-core realgud:perldb-init realgud-lang-perl realgud-pdb realgud:pdb-track-mode realgud:pdb-core realgud:pdb-init realgud-lang-python python-el-fgallina-expansions smartparens-python python tramp-sh realgud-kshdb realgud:kshdb-track-mode realgud:kshdb-core realgud:kshdb-init realgud-gub realgud:gub-track-mode realgud:gub-core realgud:gub-init realgud-gdb realgud:gdb-track-mode realgud:gdb-init realgud:gdb-core realgud-bashdb realgud:bashdb-track-mode realgud:bashdb-core realgud:bashdb-init realgud-lang-posix-shell realgud:run realgud-locals-mode realgud-breakpoint-mode realgud-backtrack-mode realgud-track-mode realgud-backtrace-mode realgud-track realgud-init realgud-file realgud-attach realgud-shortkey realgud-menu realgud-eval realgud-cmds realgud-core realgud-reset realgud-bp realgud-bp-image-data realgud-lang realgud-send realgud-window realgud-buffer-helper realgud-buffer-breakpoint realgud-buffer-backtrace realgud-locals realgud-buffer-locals realgud-utils realgud-buffer-command realgud-buffer-info realgud-regexp realgud-lochist realgud-loc realgud-buffer-source realgud-key realgud-custom key realgud-follow loc-changes realgud-fringe realgud-helper load-relative inf-ruby rbenv ruby-tools ruby-mode-expansions smartparens-ruby ruby-mode counsel xdg swiper smex ido cmake-mode smartparens-rst rst eshell-vterm em-term vterm face-remap term ehelp vterm-module term/xterm xterm em-smart eshell-syntax-highlighting em-alias esh-mode shrink-path fish-mode flycheck-plantuml plantuml-mode xml ob-plantuml graphviz-dot-mode doc-view jka-compr image-mode exif cperl-mode-expansions cperl-mode cua-base package-utils time ccls ccls-member-hierarchy ccls-inheritance-hierarchy ccls-call-hierarchy ccls-tree ccls-code-lens ccls-semantic-highlight ccls-common lsp-mode lsp-protocol spinner network-stream puny nsm rmc smartparens-markdown markdown-mode lv f f-shortdoc shortdoc epg rfc6068 epg-config which-key lpr use-package-chords bind-chord equake buffer-focus-hook org-capture-pop-frame org-capture org-refile web-server mm-encode web-server-content-types web-server-status-codes eshell-git-prompt s org-cua-dwim org-expiry el-get el-get-autoloading el-get-list-packages el-get-dependencies el-get-build el-get-status el-get-methods el-get-fossil el-get-svn el-get-pacman el-get-github-zip el-get-github-tar el-get-http-zip el-get-http-tar el-get-hg el-get-go el-get-git-svn el-get-fink el-get-emacswiki el-get-http el-get-notify el-get-emacsmirror el-get-github el-get-git el-get-elpa el-get-darcs el-get-cvs el-get-bzr el-get-brew el-get-builtin el-get-apt-get el-get-recipes el-get-byte-compile el-get-custom el-get-core autoload radix-tree validate req-package view req-package-cycles req-package-args req-package-hooks ht inline log4e use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key use-package-core prelude-yaml prelude-xml nxml-mode-expansions rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap html-mode-expansions sgml-mode facemenu dom nxml-util nxml-enc xmltok prelude-web web-mode-expansions smartparens-html web-mode disp-table prelude-shell sh-script smie executable prelude-ruby prelude-python prelude-perl prelude-org the-org-mode-expansions org-element avl-tree smartparens-org org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex ol org-keys oc org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs prelude-js js2-mode-expansions js2-mode js-mode-expansions smartparens-javascript js cc-mode-expansions smartparens-c cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs prelude-emacs-lisp prelude-lisp prelude-c prelude-programming flycheck find-func hl-todo compat compat-macs which-func prelude-key-chord key-chord prelude-company company-oddmuse company-keywords make-mode company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb company prelude-ivy two-column ivy ivy-faces ivy-overlay colir color prelude-erc erc-truncate erc-track erc-match erc-autoaway erc-spelling erc-notify erc-networks erc-log erc-goodies erc erc-backend erc-loaddefs prelude-linux exec-path-from-shell prelude-global-keybindings warnings prelude-editor editorconfig editorconfig-core editorconfig-core-handle editorconfig-fnmatch operate-on-number calc-bin calc-ext calc calc-loaddefs calc-macs diff-hl smartrep log-view pcvs-util vc-dir ewoc vc vc-dispatcher diff-mode winner undo-tree diff queue eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util re-builder whitespace tabify browse-kill-ring derived midnight ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util dired-x dired dired-loaddefs anzu avy projectile lisp-mnt mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr grep compile ibuf-ext ibuffer ibuffer-loaddefs bookmark text-property-search expand-region text-mode-expansions er-basic-expansions expand-region-core expand-region-custom flyspell ispell rect etags fileloop generator xref project volatile-highlights hl-line super-save windmove recentf tree-widget savehist saveplace diminish smartparens-config smartparens-text smartparens advice dash autorevert filenotify delsel prelude-mode edmacro kmacro crux easy-mmode pcase tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ansi-color ring parse-time iso8601 time-date ls-lisp format-spec thingatpt imenu-anywhere imenu prelude-core epl prelude-ui zenburn-theme prelude-custom prelude-packages cl-extra help-mode finder-inf preload cus-edit pp cus-load wid-edit ede/auto eieio-base tex-site rx realgud-recursive-autoloads cl info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads xwidget-internal dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 2427653 696067) (symbols 48 85570 62) (strings 32 379359 114192) (string-bytes 1 10987724) (vectors 16 131074) (vector-slots 8 2422995 586466) (floats 8 1318 2569) (intervals 56 140887 10141) (buffers 992 28)) --0000000000007c441405e188175c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Setup:<br>$ echo "Hello, world!" > /tmp/hello= .txt<br><br>Normal behavior:<br>$ gnome-terminal<br>;; now within terminal<= br>$ gio open /tmp/hello.txt<br>;; GOOD RESULT - file is opened in app, as = described by mime type. On my system, app is 'Xed'<br><br>Emacs beh= avior:<br>$ emacs -Q<br>;; now in emacs<br>M-x eshell<br>;; now in eshell b= uffer<br>$ gio open /tmp/hello.txt<br>;; BAD RESULT - nothing happens, app = not opened, silent failure, nothing<br>in message buffer<br>$ xdg-open /tmp= /hello.txt<br>;; BAD RESULT - nothing happens, app not opened, silent failu= re, nothing<br>in message buffer<div><br>I've tried making my $ENV iden= tical between normal terminal and eshell,<br>but I get the same results.<br= ><br>Thanks for your help,<div>Jeff Kowalski<br>---------<div><br>In GNU Em= acs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version= 1.16.0)<br>=C2=A0of 2022-05-30 built on lcy02-amd64-022<br>Windowing syste= m distributor 'The X.Org Foundation', version 11.0.12013000<br>Syst= em Description: Linux Mint 20.3<br><br>Configured using:<br>=C2=A0'conf= igure --build=3Dx86_64-linux-gnu --prefix=3D/usr<br>=C2=A0'--includedir= =3D${prefix}/include' '--mandir=3D${prefix}/share/man'<br>=C2= =A0'--infodir=3D${prefix}/share/info' --sysconfdir=3D/etc --localst= atedir=3D/var<br>=C2=A0--disable-silent-rules '--libdir=3D${prefix}/lib= /x86_64-linux-gnu'<br>=C2=A0'--libexecdir=3D${prefix}/lib/x86_64-li= nux-gnu' --disable-maintainer-mode<br>=C2=A0--disable-dependency-tracki= ng --prefix=3D/usr --sharedstatedir=3D/var/lib<br>=C2=A0--libexecdir=3D/usr= /lib --localstatedir=3D/var/lib<br>=C2=A0--infodir=3D/usr/share/info --mand= ir=3D/usr/share/man<br>=C2=A0--enable-locallisppath=3D/etc/emacs:/usr/local= /share/emacs/28.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/ema= cs/28.1/site-lisp:/usr/share/emacs/site-lisp<br>=C2=A0--program-suffix=3D28= --with-modules --with-file-notification=3Dinotify<br>=C2=A0--with-mailutil= s --with-harfbuzz --with-json --with-zlib --with-x=3Dyes<br>=C2=A0--with-x-= toolkit=3Dgtk3 --with-lcms2 --with-cairo --with-xpm=3Dyes<br>=C2=A0--with-g= if=3Dyes --with-gnutls=3Dyes --with-jpeg=3Dyes --with-png=3Dyes<br>=C2=A0--= with-tiff=3Dyes --with-xwidgets 'CFLAGS=3D-g -O2<br>=C2=A0-fdebug-prefi= x-map=3D/build/emacs28-jmphgn/emacs28-28.1~1.git5a223c7f2e=3D. -fstack-prot= ector-strong<br>=C2=A0-Wformat -Werror=3Dformat-security -no-pie' '= CPPFLAGS=3D-Wdate-time<br>=C2=A0-D_FORTIFY_SOURCE=3D2' 'LDFLAGS=3D-= Wl,-Bsymbolic-functions -Wl,-z,relro<br>=C2=A0-no-pie''<br><br>Conf= igured features:<br>ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTIN= GS HARFBUZZ JPEG<br>JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FL= T MODULES NOTIFY<br>INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOO= LKIT_SCROLL_BARS<br>X11 XDBE XIM XPM XWIDGETS GTK3 ZLIB<br><br>Important se= ttings:<br>=C2=A0 value of $LANG: en_US.UTF-8<br>=C2=A0 locale-coding-syste= m: utf-8-unix<br><br>Major mode: Info<br><br>Minor modes in effect:<br>=C2= =A0 minions-mode: t<br>=C2=A0 doom-modeline-mode: t<br>=C2=A0 dimmer-mode: = t<br>=C2=A0 auto-dim-other-buffers-mode: t<br>=C2=A0 global-atomic-chrome-e= dit-mode: t<br>=C2=A0 org-super-agenda-mode: t<br>=C2=A0 global-git-commit-= mode: t<br>=C2=A0 magit-auto-revert-mode: t<br>=C2=A0 global-rbenv-mode: t<= br>=C2=A0 counsel-mode: t<br>=C2=A0 eshell-vterm-mode: t<br>=C2=A0 eshell-s= yntax-highlighting-global-mode: t<br>=C2=A0 cua-mode: t<br>=C2=A0 display-t= ime-mode: t<br>=C2=A0 which-key-mode: t<br>=C2=A0 override-global-mode: t<b= r>=C2=A0 global-flycheck-mode: t<br>=C2=A0 global-hl-todo-mode: t<br>=C2=A0= which-function-mode: t<br>=C2=A0 key-chord-mode: t<br>=C2=A0 global-compan= y-mode: t<br>=C2=A0 company-mode: t<br>=C2=A0 ivy-mode: t<br>=C2=A0 erc-tru= ncate-mode: t<br>=C2=A0 erc-track-mode: t<br>=C2=A0 erc-spelling-mode: t<br= >=C2=A0 editorconfig-mode: t<br>=C2=A0 global-diff-hl-mode: t<br>=C2=A0 win= ner-mode: t<br>=C2=A0 global-undo-tree-mode: t<br>=C2=A0 undo-tree-mode: t<= br>=C2=A0 global-anzu-mode: t<br>=C2=A0 anzu-mode: t<br>=C2=A0 projectile-m= ode: t<br>=C2=A0 volatile-highlights-mode: t<br>=C2=A0 global-hl-line-mode:= t<br>=C2=A0 super-save-mode: t<br>=C2=A0 windmove-mode: t<br>=C2=A0 recent= f-mode: t<br>=C2=A0 savehist-mode: t<br>=C2=A0 save-place-mode: t<br>=C2=A0= show-smartparens-global-mode: t<br>=C2=A0 global-auto-revert-mode: t<br>= =C2=A0 delete-selection-mode: t<br>=C2=A0 prelude-mode: t<br>=C2=A0 shell-d= irtrack-mode: t<br>=C2=A0 tooltip-mode: t<br>=C2=A0 global-eldoc-mode: t<br= >=C2=A0 show-paren-mode: t<br>=C2=A0 electric-indent-mode: t<br>=C2=A0 mous= e-wheel-mode: t<br>=C2=A0 menu-bar-mode: t<br>=C2=A0 file-name-shadow-mode:= t<br>=C2=A0 global-font-lock-mode: t<br>=C2=A0 font-lock-mode: t<br>=C2=A0= blink-cursor-mode: t<br>=C2=A0 auto-composition-mode: t<br>=C2=A0 auto-enc= ryption-mode: t<br>=C2=A0 auto-compression-mode: t<br>=C2=A0 buffer-read-on= ly: t<br>=C2=A0 size-indication-mode: t<br>=C2=A0 column-number-mode: t<br>= =C2=A0 line-number-mode: t<br>=C2=A0 transient-mark-mode: t<br><br>Load-pat= h shadows:<br>/home/jeff/.emacs.d/elpa/git-modes-20220422.1611/gitignore-mo= de hides /home/jeff/.emacs.d/elpa/gitignore-mode-20210528.1856/gitignore-mo= de<br>/home/jeff/.emacs.d/elpa/el-get-20211224.959/el-get-install hides /ho= me/jeff/.emacs.d/elpa/load-relative-20201130.2202/el-get-install<br>/home/j= eff/.emacs.d/el-get/emacs-web-server/web-server-status-codes hides /home/je= ff/.emacs.d/elpa/web-server-20210708.2242/web-server-status-codes<br>/home/= jeff/.emacs.d/el-get/emacs-web-server/web-server hides /home/jeff/.emacs.d/= elpa/web-server-20210708.2242/web-server<br>/home/jeff/.emacs.d/elpa/cmake-= mode-20220322.1258/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode<b= r>/home/jeff/.emacs.d/elpa/clang-format-20191121.1708/clang-format hides /u= sr/share/emacs/site-lisp/clang-format/clang-format<br>/home/jeff/.emacs.d/e= lpa/transient-20220527.2213/transient hides /usr/share/emacs/28.1/lisp/tran= sient<br>/home/jeff/.emacs.d/el-get/flymake/flymake hides /usr/share/emacs/= 28.1/lisp/progmodes/flymake<br><br>Features:<br>(shadow sort mail-extr emac= sbug sendmail goto-addr esh-autosuggest<br>em-unix em-script em-prompt em-l= s em-hist em-pred em-glob em-cmpl<br>em-dirs esh-var em-basic em-banner dia= ry-lib diary-loaddefs cal-iso<br>org-duration ffap ol-eww eww url-queue mm-= url ol-rmail ol-mhe ol-irc<br>ol-info ol-gnus nnselect gnus-search eieio-op= t speedbar ezimage dframe<br>gnus-art mm-uu mml2015 mm-view mml-smime smime= dig gnus-sum shr kinsoku<br>svg gnus-group gnus-undo gnus-start gnus-dbus = dbus gnus-cloud nnimap<br>nnmail mail-source utf7 netrc nnoo gnus-spec gnus= -int gnus-range<br>gnus-win gnus nnheader ol-docview ol-bibtex ol-bbdb ol-w= 3m ol-doi<br>org-link-doi origami origami-parsers solarized-gruvbox-dark-th= eme<br>solarized-palettes rainbow-mode rainbow-delimiters elisp-slime-nav<b= r>personal mule-util company-ispell company-anaconda anaconda-mode<br>pytho= nic minions doom-modeline doom-modeline-segments doom-modeline-env<br>doom-= modeline-core all-the-icons all-the-icons-faces data-material<br>data-weath= ericons data-octicons data-fileicons data-faicons<br>data-alltheicons solar= ized-theme solarized solarized-faces dimmer<br>auto-dim-other-buffers hydra= atomic-chrome websocket bindat let-alist<br>shackle trace org-ehtml org-eh= tml-server ox-ehtml org-ehtml-util ox-org<br>org-lint org-attach org-id org= -protocol org-clock org-super-agenda ts<br>htmlize org-habit ox-odt ox-late= x ox-icalendar org-agenda ox-html table<br>ox-ascii ox-publish ox org-inden= t ob-gnuplot ob-latex ob-dot ob-ruby<br>ob-python ob-shell ace-window magit= -bookmark magit-submodule<br>magit-obsolete magit-popup magit-blame magit-s= tash magit-reflog<br>magit-bisect magit-push magit-pull magit-fetch magit-c= lone magit-remote<br>magit-commit magit-sequence magit-notes magit-worktree= magit-tag<br>magit-merge magit-branch magit-reset magit-files magit-refs m= agit-status<br>magit magit-repos magit-apply magit-wip magit-log magit-diff= smerge-mode<br>git-commit log-edit message rfc822 mml mml-sec epa gnus-uti= l rmail<br>rmail-loaddefs mm-decode mm-bodies mailabbrev mail-utils gmm-uti= ls<br>mailheader add-log magit-core magit-autorevert magit-margin<br>magit-= transient magit-process with-editor server magit-mode transient<br>magit-gi= t magit-base magit-section crm compat-27 compat-26<br>platformio-mode async= irony-eldoc irony-completion irony-snippet<br>flycheck-irony irony-diagnos= tics irony irony-iotask realgud-byebug<br>realgud:byebug-track-mode realgud= :byebug-init realgud:byebug-core<br>realgud-pry realgud:pry-track-mode real= gud:pry-init realgud:pry-core<br>realgud realgud-lang-java realgud-zshdb re= algud:zshdb-track-mode<br>realgud:zshdb-core realgud:zshdb-init realgud-tre= pan3k<br>realgud:trepan3k-track-mode realgud:trepan3k-core realgud:trepan3k= -init<br>realgud-trepan2 realgud:trepan2-track-mode realgud:trepan2-core<br= >realgud:trepan2-init realgud-trepanpl realgud:trepanpl-track-mode<br>realg= ud:trepanpl-core realgud:trepanpl-init realgud-trepanjs<br>realgud:trepanjs= -track-mode realgud:trepanjs-core realgud:trepanjs-init<br>realgud-lang-js = realgud-trepan realgud:trepan-track-mode<br>realgud:trepan-core realgud:tre= pan-init realgud-remake<br>realgud:remake-track-mode realgud:remake-core re= algud:remake-init<br>realgud-rdebug realgud-rdebug-track-mode realgud-rdebu= g-core<br>realgud-rdebug-init realgud-lang-ruby realgud-perldb<br>realgud:p= erldb-track-mode realgud:perldb-core realgud:perldb-init<br>realgud-lang-pe= rl realgud-pdb realgud:pdb-track-mode realgud:pdb-core<br>realgud:pdb-init = realgud-lang-python python-el-fgallina-expansions<br>smartparens-python pyt= hon tramp-sh realgud-kshdb<br>realgud:kshdb-track-mode realgud:kshdb-core r= ealgud:kshdb-init<br>realgud-gub realgud:gub-track-mode realgud:gub-core re= algud:gub-init<br>realgud-gdb realgud:gdb-track-mode realgud:gdb-init realg= ud:gdb-core<br>realgud-bashdb realgud:bashdb-track-mode realgud:bashdb-core= <br>realgud:bashdb-init realgud-lang-posix-shell realgud:run<br>realgud-loc= als-mode realgud-breakpoint-mode realgud-backtrack-mode<br>realgud-track-mo= de realgud-backtrace-mode realgud-track realgud-init<br>realgud-file realgu= d-attach realgud-shortkey realgud-menu realgud-eval<br>realgud-cmds realgud= -core realgud-reset realgud-bp realgud-bp-image-data<br>realgud-lang realgu= d-send realgud-window realgud-buffer-helper<br>realgud-buffer-breakpoint re= algud-buffer-backtrace realgud-locals<br>realgud-buffer-locals realgud-util= s realgud-buffer-command<br>realgud-buffer-info realgud-regexp realgud-loch= ist realgud-loc<br>realgud-buffer-source realgud-key realgud-custom key rea= lgud-follow<br>loc-changes realgud-fringe realgud-helper load-relative inf-= ruby rbenv<br>ruby-tools ruby-mode-expansions smartparens-ruby ruby-mode co= unsel xdg<br>swiper smex ido cmake-mode smartparens-rst rst eshell-vterm em= -term<br>vterm face-remap term ehelp vterm-module term/xterm xterm em-smart= <br>eshell-syntax-highlighting em-alias esh-mode shrink-path fish-mode<br>f= lycheck-plantuml plantuml-mode xml ob-plantuml graphviz-dot-mode<br>doc-vie= w jka-compr image-mode exif cperl-mode-expansions cperl-mode<br>cua-base pa= ckage-utils time ccls ccls-member-hierarchy<br>ccls-inheritance-hierarchy c= cls-call-hierarchy ccls-tree ccls-code-lens<br>ccls-semantic-highlight ccls= -common lsp-mode lsp-protocol spinner<br>network-stream puny nsm rmc smartp= arens-markdown markdown-mode lv f<br>f-shortdoc shortdoc epg rfc6068 epg-co= nfig which-key lpr<br>use-package-chords bind-chord equake buffer-focus-hoo= k<br>org-capture-pop-frame org-capture org-refile web-server mm-encode<br>w= eb-server-content-types web-server-status-codes eshell-git-prompt s<br>org-= cua-dwim org-expiry el-get el-get-autoloading el-get-list-packages<br>el-ge= t-dependencies el-get-build el-get-status el-get-methods<br>el-get-fossil e= l-get-svn el-get-pacman el-get-github-zip<br>el-get-github-tar el-get-http-= zip el-get-http-tar el-get-hg el-get-go<br>el-get-git-svn el-get-fink el-ge= t-emacswiki el-get-http el-get-notify<br>el-get-emacsmirror el-get-github e= l-get-git el-get-elpa el-get-darcs<br>el-get-cvs el-get-bzr el-get-brew el-= get-builtin el-get-apt-get<br>el-get-recipes el-get-byte-compile el-get-cus= tom el-get-core autoload<br>radix-tree validate req-package view req-packag= e-cycles req-package-args<br>req-package-hooks ht inline log4e use-package = use-package-ensure<br>use-package-delight use-package-diminish use-package-= bind-key bind-key<br>use-package-core prelude-yaml prelude-xml nxml-mode-ex= pansions rng-nxml<br>rng-valid rng-loc rng-uri rng-parse nxml-parse rng-mat= ch rng-dt rng-util<br>rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap html-= mode-expansions<br>sgml-mode facemenu dom nxml-util nxml-enc xmltok prelude= -web<br>web-mode-expansions smartparens-html web-mode disp-table prelude-sh= ell<br>sh-script smie executable prelude-ruby prelude-python prelude-perl<b= r>prelude-org the-org-mode-expansions org-element avl-tree smartparens-org<= br>org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote<br= >org-src ob-comint org-pcomplete org-list org-faces org-entities noutline<b= r>outline org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic<br>b= ibtex ol org-keys oc org-compat org-macs org-loaddefs cal-menu calendar<br>= cal-loaddefs prelude-js js2-mode-expansions js2-mode js-mode-expansions<br>= smartparens-javascript js cc-mode-expansions smartparens-c cc-mode<br>cc-fo= nts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars<br>cc-de= fs prelude-emacs-lisp prelude-lisp prelude-c prelude-programming<br>flychec= k find-func hl-todo compat compat-macs which-func<br>prelude-key-chord key-= chord prelude-company company-oddmuse<br>company-keywords make-mode company= -etags company-gtags<br>company-dabbrev-code company-dabbrev company-files = company-clang<br>company-capf company-cmake company-semantic company-templa= te<br>company-bbdb company prelude-ivy two-column ivy ivy-faces ivy-overlay= <br>colir color prelude-erc erc-truncate erc-track erc-match erc-autoaway<b= r>erc-spelling erc-notify erc-networks erc-log erc-goodies erc erc-backend<= br>erc-loaddefs prelude-linux exec-path-from-shell<br>prelude-global-keybin= dings warnings prelude-editor editorconfig<br>editorconfig-core editorconfi= g-core-handle editorconfig-fnmatch<br>operate-on-number calc-bin calc-ext c= alc calc-loaddefs calc-macs diff-hl<br>smartrep log-view pcvs-util vc-dir e= woc vc vc-dispatcher diff-mode<br>winner undo-tree diff queue eshell esh-cm= d esh-ext esh-opt esh-proc<br>esh-io esh-arg esh-module esh-groups esh-util= re-builder whitespace<br>tabify browse-kill-ring derived midnight ediff ed= iff-merg ediff-mult<br>ediff-wind ediff-diff ediff-help ediff-init ediff-ut= il dired-x dired<br>dired-loaddefs anzu avy projectile lisp-mnt mail-parse = rfc2231 rfc2047<br>rfc2045 mm-util ietf-drums mail-prsvr grep compile ibuf-= ext ibuffer<br>ibuffer-loaddefs bookmark text-property-search expand-region= <br>text-mode-expansions er-basic-expansions expand-region-core<br>expand-r= egion-custom flyspell ispell rect etags fileloop generator xref<br>project = volatile-highlights hl-line super-save windmove recentf<br>tree-widget save= hist saveplace diminish smartparens-config<br>smartparens-text smartparens = advice dash autorevert filenotify delsel<br>prelude-mode edmacro kmacro cru= x easy-mmode pcase tramp tramp-loaddefs<br>trampver tramp-integration files= -x tramp-compat shell pcomplete comint<br>ansi-color ring parse-time iso860= 1 time-date ls-lisp format-spec<br>thingatpt imenu-anywhere imenu prelude-c= ore epl prelude-ui zenburn-theme<br>prelude-custom prelude-packages cl-extr= a help-mode finder-inf preload<br>cus-edit pp cus-load wid-edit ede/auto ei= eio-base tex-site rx<br>realgud-recursive-autoloads cl info package browse-= url url url-proxy<br>url-privacy url-expand url-methods url-history url-coo= kie url-domsuf<br>url-util mailcap url-handlers url-parse auth-source cl-se= q eieio<br>eieio-core cl-macs eieio-loaddefs password-cache json subr-x map= <br>url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib= <br>iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks<br= >lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd<b= r>tool-bar dnd fontset image regexp-opt fringe tabulated-list replace<br>ne= wcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar<br>rf= n-eshadow isearch easymenu timer select scroll-bar mouse jit-lock<br>font-l= ock syntax font-core term/tty-colors frame minibuffer cl-generic<br>cham ge= orgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao<br>korean = japanese eucjp-ms cp51932 hebrew greek romanian slovak czech<br>european et= hiopic indian cyrillic chinese composite emoji-zwj charscript<br>charprop c= ase-table epa-hook jka-cmpr-hook help simple abbrev obarray<br>cl-preloaded= nadvice button loaddefs faces cus-face macroexp files<br>window text-prope= rties overlay sha1 md5 base64 format env code-pages<br>mule custom widget h= ashtable-print-readable backquote threads<br>xwidget-internal dbusbind inot= ify lcms2 dynamic-setting<br>system-font-setting font-render-setting cairo = move-toolbar gtk x-toolkit<br>x multi-tty make-network-process emacs)<br><b= r>Memory information:<br>((conses 16 2427653 696067)<br>=C2=A0(symbols 48 8= 5570 62)<br>=C2=A0(strings 32 379359 114192)<br>=C2=A0(string-bytes 1 10987= 724)<br>=C2=A0(vectors 16 131074)<br>=C2=A0(vector-slots 8 2422995 586466)<= br>=C2=A0(floats 8 1318 2569)<br>=C2=A0(intervals 56 140887 10141)<br>=C2= =A0(buffers 992 28))<br></div></div></div></div> --0000000000007c441405e188175c--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Jeff Kowalski <jeff.kowalski@HIDDEN> Subject: bug#56013: Acknowledgement (28.1; "gio open" and "xdg-open" fail silently under eshell) Message-ID: <handler.56013.B.165536081314264.ack <at> debbugs.gnu.org> References: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> X-Gnu-PR-Message: ack 56013 X-Gnu-PR-Package: emacs Reply-To: 56013 <at> debbugs.gnu.org Date: Thu, 16 Jun 2022 06:27:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 56013 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 56013: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D56013 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under eshell Resent-From: Lars Ingebrigtsen <larsi@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 16 Jun 2022 11:59:02 +0000 Resent-Message-ID: <handler.56013.B56013.16553807391123 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jeff Kowalski <jeff.kowalski@HIDDEN> Cc: 56013 <at> debbugs.gnu.org Received: via spool by 56013-submit <at> debbugs.gnu.org id=B56013.16553807391123 (code B ref 56013); Thu, 16 Jun 2022 11:59:02 +0000 Received: (at 56013) by debbugs.gnu.org; 16 Jun 2022 11:58:59 +0000 Received: from localhost ([127.0.0.1]:40927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o1o9K-0000I3-V5 for submit <at> debbugs.gnu.org; Thu, 16 Jun 2022 07:58:59 -0400 Received: from quimby.gnus.org ([95.216.78.240]:43800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1o1o9I-0000Hn-Rk for 56013 <at> debbugs.gnu.org; Thu, 16 Jun 2022 07:58:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2uH7r9xaGKkBLffw9Hdu0FdX9q1WdsbSJDPYL1zJzRE=; b=sWgYCnayiKtrs62WSaQ38bmX8j wVqzJmdgrq0iet5lDuttIBnBLMWMCwy9MjEBQ4tHENc1tws9enSQQDrb5k4/PxMxgaymLGaR5GDNh qNNKBy+osMU2izNrTmotuj82rz6eDhsTsbA6TNB9voMPaAmN7abQaL9sv4jq2BdHRb0g=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1o1o99-0006fq-Vy; Thu, 16 Jun 2022 13:58:50 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> References: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> X-Now-Playing: Bogdan Raczynski's _Planet Mu 25_: "tteosintae" Date: Thu, 16 Jun 2022 13:58:46 +0200 In-Reply-To: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> (Jeff Kowalski's message of "Wed, 15 Jun 2022 20:18:18 -0700") Message-ID: <87h74kes5l.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Jeff Kowalski <jeff.kowalski@HIDDEN> writes: > Emacs behavior: > $ emacs -Q > ;; now in emacs > M-x eshell > ;; now in eshell buffer > $ gio open /tmp/hello.txt > ;; BAD RESULT - nothing happens, app not opened, silent failure, nothing > in mess [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Jeff Kowalski <jeff.kowalski@HIDDEN> writes: > Emacs behavior: > $ emacs -Q > ;; now in emacs > M-x eshell > ;; now in eshell buffer > $ gio open /tmp/hello.txt > ;; BAD RESULT - nothing happens, app not opened, silent failure, nothing > in message buffer > $ xdg-open /tmp/hello.txt > ;; BAD RESULT - nothing happens, app not opened, silent failure, nothing > in message buffer [...] > In GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo > version 1.16.0) > of 2022-05-30 built on lcy02-amd64-022 > Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 > System Description: Linux Mint 20.3 I'm unable to reproduce this problem (Debian/bookworm, Gnome Shell), but I vaguely remember other reports about xdg-open not working in some circumstances -- I don't remember the details. Anybody else remember? Hm... was it something to do with timing and the weird way that xdg-open works? Hm, no, don't remember. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
X-Loop: help-debbugs@HIDDEN Subject: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under eshell Resent-From: Andreas Schwab <schwab@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 16 Jun 2022 14:23:01 +0000 Resent-Message-ID: <handler.56013.B56013.16553893388970 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen <larsi@HIDDEN> Cc: 56013 <at> debbugs.gnu.org, Jeff Kowalski <jeff.kowalski@HIDDEN> Received: via spool by 56013-submit <at> debbugs.gnu.org id=B56013.16553893388970 (code B ref 56013); Thu, 16 Jun 2022 14:23:01 +0000 Received: (at 56013) by debbugs.gnu.org; 16 Jun 2022 14:22:18 +0000 Received: from localhost ([127.0.0.1]:42736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o1qO2-0002Kc-24 for submit <at> debbugs.gnu.org; Thu, 16 Jun 2022 10:22:18 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:60282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <whitebox@HIDDEN>) id 1o1qNx-0002KS-29 for 56013 <at> debbugs.gnu.org; Thu, 16 Jun 2022 10:22:16 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4LP4BC4mHLz1qyJ7; Thu, 16 Jun 2022 16:22:11 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4LP4BC35hmz1qqkB; Thu, 16 Jun 2022 16:22:11 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id s-Mef9RGeIyx; Thu, 16 Jun 2022 16:22:10 +0200 (CEST) X-Auth-Info: ecBF+m1SXpNHP/xCYPGHrAJ6C8s3QF8AzVihhg30HfJbxrVSx94kfJhtwgL5gJ/v Received: from igel.home (ppp-46-244-177-5.dynamic.mnet-online.de [46.244.177.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 16 Jun 2022 16:22:10 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 394692C3A5D; Thu, 16 Jun 2022 16:22:10 +0200 (CEST) From: Andreas Schwab <schwab@HIDDEN> References: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> <87h74kes5l.fsf@HIDDEN> X-Yow: Sign my PETITION. Date: Thu, 16 Jun 2022 16:22:10 +0200 In-Reply-To: <87h74kes5l.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Thu, 16 Jun 2022 13:58:46 +0200") Message-ID: <87h74k8z8t.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.5 (-) On Jun 16 2022, Lars Ingebrigtsen wrote: > Hm... was it something to do with timing and the weird way that > xdg-open works? It's how it backgrounds itself, and how eshell spawns a new session for each command. -- Andreas Schwab, schwab@HIDDEN GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."
X-Loop: help-debbugs@HIDDEN Subject: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under eshell Resent-From: Andreas Schwab <schwab@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 16 Jun 2022 14:33:02 +0000 Resent-Message-ID: <handler.56013.B56013.165538996518493 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen <larsi@HIDDEN> Cc: 56013 <at> debbugs.gnu.org, Jeff Kowalski <jeff.kowalski@HIDDEN> Received: via spool by 56013-submit <at> debbugs.gnu.org id=B56013.165538996518493 (code B ref 56013); Thu, 16 Jun 2022 14:33:02 +0000 Received: (at 56013) by debbugs.gnu.org; 16 Jun 2022 14:32:45 +0000 Received: from localhost ([127.0.0.1]:42768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o1qY9-0004oC-IK for submit <at> debbugs.gnu.org; Thu, 16 Jun 2022 10:32:45 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:57331) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <whitebox@HIDDEN>) id 1o1qY3-0004nx-Rn for 56013 <at> debbugs.gnu.org; Thu, 16 Jun 2022 10:32:43 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4LP4QG4JR1z1s75L; Thu, 16 Jun 2022 16:32:38 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4LP4QG2Bhgz1qqkB; Thu, 16 Jun 2022 16:32:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id Aswa7PsC8JMh; Thu, 16 Jun 2022 16:32:37 +0200 (CEST) X-Auth-Info: p3Ytu98pMjU62URn1zDB4zv7JOG2Vrjy6trVvwBnw0Ahc3Iy1+FSduoXyCYxVYLF Received: from igel.home (ppp-46-244-177-5.dynamic.mnet-online.de [46.244.177.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 16 Jun 2022 16:32:37 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 3D36B2C3A5D; Thu, 16 Jun 2022 16:32:37 +0200 (CEST) From: Andreas Schwab <schwab@HIDDEN> References: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> <87h74kes5l.fsf@HIDDEN> X-Yow: I can't decide which WRONG TURN to make first!! I wonder if BOB GUCCIONE has these problems! Date: Thu, 16 Jun 2022 16:32:37 +0200 In-Reply-To: <87h74kes5l.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Thu, 16 Jun 2022 13:58:46 +0200") Message-ID: <87czf88yre.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.5 (-) See bug#44824. -- Andreas Schwab, schwab@HIDDEN GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."
X-Loop: help-debbugs@HIDDEN Subject: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under eshell Resent-From: Lars Ingebrigtsen <larsi@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jun 2022 12:01:02 +0000 Resent-Message-ID: <handler.56013.B56013.1655467209397 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab <schwab@HIDDEN> Cc: Jim Porter <jporterbugs@HIDDEN>, 56013 <at> debbugs.gnu.org, Jeff Kowalski <jeff.kowalski@HIDDEN> Received: via spool by 56013-submit <at> debbugs.gnu.org id=B56013.1655467209397 (code B ref 56013); Fri, 17 Jun 2022 12:01:02 +0000 Received: (at 56013) by debbugs.gnu.org; 17 Jun 2022 12:00:09 +0000 Received: from localhost ([127.0.0.1]:43965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o2Ae1-00006J-5p for submit <at> debbugs.gnu.org; Fri, 17 Jun 2022 08:00:09 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1o2Adt-0008VA-KD for 56013 <at> debbugs.gnu.org; Fri, 17 Jun 2022 08:00:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4jM28Q+/Sww1vl5VWiBXtn/KZ9K+tv1mvpXmF+hNd0I=; b=VnjugB23guSzFi8qlCJBGfdgRE cDw/KLGHROlhipobpxQBCsZ/P4XJqqM2YiVEovF5ONj3LbDrMunvx/XFAUxsmZARIdngjWj34tWxl 0Tku5tDio0Vja1y79SquHrm2/EZh3OdPv88/S0ydMb+qby3TANq50HltPblVWhAMGgNQ=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1o2Adj-0002h1-SB; Fri, 17 Jun 2022 13:59:54 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> References: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> <87h74kes5l.fsf@HIDDEN> <87czf88yre.fsf@HIDDEN> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEU2Pj+OeFf///+r WAvDAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+YGEQs6J+faE5YA AAEeSURBVCjPTZFRjsMgDETHEv4HCe5jpObfSPj+V9kxSZtFSpqHzczgolnpAPgEcM2uBIMQIloC DrSxpqEBSlhd3Vi4diG0cAhk8AfSplc2rUEoa2xumcVproNbaDtFrxZ1mg4kFN8XxbesA5BpUnEU qDUhwmIGqQTo7g8ws0xNhfk0ZFJQJW0rQyHvVjJDVlSdpymX9ck0slOmMii9eP98QysO2BFUo3lY vtE6iqUXM6ZE4e6EsvLhhotF1rMBrtZBO1TGqHk4zzAJ2/ihH9zrwO20/YWWAoR5X/S460nXca4i p60wsXq9/AZGGn55/4J4+G2Ts9xrv57eHuDfSee4hzciYqtUfFeV5T9w2Z8f2Bnety1n+gLiPcPZ 4N/qfyafNBAw3keoAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA2LTE3VDExOjU4OjM5KzAwOjAw /EEBIgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNi0xN1QxMTo1ODozOSswMDowMI0cuZ4AAAAA SUVORK5CYII= X-Now-Playing: Loma's _Don't Shy Away_: "Breaking Waves Like a Stone" Date: Fri, 17 Jun 2022 13:59:50 +0200 In-Reply-To: <87czf88yre.fsf@HIDDEN> (Andreas Schwab's message of "Thu, 16 Jun 2022 16:32:37 +0200") Message-ID: <87ilozbivd.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Andreas Schwab <schwab@HIDDEN> writes: > See bug#44824. Ah, right. The fix proposed there was: Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Andreas Schwab <schwab@HIDDEN> writes: > See bug#44824. Ah, right. The fix proposed there was: org.el: Avoid xdg-open silent failure * lisp/org.el (org-open-file): Use 'pipe :connection-type instead of 'pty to prevent killing of background process on handler exit. Perhaps Jim has some comments here; added to the CCs. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
X-Loop: help-debbugs@HIDDEN Subject: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under eshell Resent-From: Jim Porter <jporterbugs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jun 2022 17:18:02 +0000 Resent-Message-ID: <handler.56013.B56013.165548623714083 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen <larsi@HIDDEN>, Andreas Schwab <schwab@HIDDEN> Cc: 56013 <at> debbugs.gnu.org, Jeff Kowalski <jeff.kowalski@HIDDEN> Received: via spool by 56013-submit <at> debbugs.gnu.org id=B56013.165548623714083 (code B ref 56013); Fri, 17 Jun 2022 17:18:02 +0000 Received: (at 56013) by debbugs.gnu.org; 17 Jun 2022 17:17:17 +0000 Received: from localhost ([127.0.0.1]:46862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o2Fav-0003f5-F6 for submit <at> debbugs.gnu.org; Fri, 17 Jun 2022 13:17:17 -0400 Received: from mail-pg1-f175.google.com ([209.85.215.175]:41507) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1o2Far-0003eq-JM for 56013 <at> debbugs.gnu.org; Fri, 17 Jun 2022 13:17:15 -0400 Received: by mail-pg1-f175.google.com with SMTP id w29so4558755pgl.8 for <56013 <at> debbugs.gnu.org>; Fri, 17 Jun 2022 10:17:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=oC1f9ec7Pq8DY+P6v4y3WTifOQUH597xHY/7GpifOvg=; b=hbWyWU/KISZTCFhbhFWg8x1jmTeKW3bbs+pEu28U4Bf5FdLUJfAlYcUiPPNtXA5wMy DiTiXesnnsah/fjWlmBKxxS8fNDBdUWSmx5osnaFoAjTj5cXFnjbzBej2b/zoO+9uUls JHmpCQzeWLjGsH5xg8YsWgfghngDY80D/2TypZVosV/AhJBd9LdkGDAr9xoQLlaXNHVA y8S1YUsWUiT+Pvyxyzlc5rTVhPmR0JCNcxsKaxCI+an0CW4QFfWRPO544W7kPuZXNlFQ TYYof/D5lSzR+8gU/BE/Lv3F/TD2zpWMRbTr5Y1t7TjaJ40tniBCFPgThe1qp1tdszvX 3z/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=oC1f9ec7Pq8DY+P6v4y3WTifOQUH597xHY/7GpifOvg=; b=e3vXVuV/1Im+GnfV9l3q3LznAtVZ7rCEtV/lhGXJj8nm1dCBS3FFsAtHqtXuLH3qgj NREqVX0Igk0kUQlW/mumtp5ueGnDlF1u5dG+PdBMJsRFAlWYdznDM/r80/uBzlu77bDj dkEos4ZT+Ybe3kfVPIwuYiK2FLij/rSeSuDJr1Lmzj6kAT9KgjusujBWiG2jE59aUC8x OjevPxS+nwxhxzBL3CKKzGCpLU3+MolYFuv4ZI8xuMCkp77h3RuFRdlLGwVWEC1Bc6ZX u8UAQwRsNIeYEXR1vZc7IoR2dTLkTnHsPMILYZ8xDwV0/Voc0XmcB6+yjE+oNiwuPPRP uWgw== X-Gm-Message-State: AJIora81A75mnAHn3YaVV9ci3RXw3YWL9KrS6sZC2kHVGACxwY8Bt/Z2 Z9gtgqsqiQWAqyfFgnmL/iE= X-Google-Smtp-Source: AGRyM1u/5guI+F0UM3CdeofnGfWLvAXbyTl9gMgk29BAI0BNvfAzlAUKHwqSt3TEZdV1agEYdgWbPA== X-Received: by 2002:a62:2584:0:b0:520:785d:2ba with SMTP id l126-20020a622584000000b00520785d02bamr11061451pfl.55.1655486227438; Fri, 17 Jun 2022 10:17:07 -0700 (PDT) Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id i10-20020a170902cf0a00b001641244d051sm3809244plg.257.2022.06.17.10.17.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Jun 2022 10:17:07 -0700 (PDT) References: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> <87h74kes5l.fsf@HIDDEN> <87czf88yre.fsf@HIDDEN> <87ilozbivd.fsf@HIDDEN> From: Jim Porter <jporterbugs@HIDDEN> Message-ID: <a388eeea-411a-7834-a104-d8fcb51d33dd@HIDDEN> Date: Fri, 17 Jun 2022 10:17:08 -0700 MIME-Version: 1.0 In-Reply-To: <87ilozbivd.fsf@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 6/17/2022 4:59 AM, Lars Ingebrigtsen wrote: > Andreas Schwab <schwab@HIDDEN> writes: > >> See bug#44824. > > Ah, right. The fix proposed there was: > > org.el: Avoid xdg-open silent failure > > * lisp/org.el (org-open-file): Use 'pipe :connection-type instead of > 'pty to prevent killing of background process on handler exit. > > Perhaps Jim has some comments here; added to the CCs. Yeah, this is an issue with how `start-file-process' is being called in Eshell (see `eshell-gather-process-output'). If I call `(setq process-connection-type nil)' before running gio in Eshell, it works fine. There's *almost* an existing Eshell function that would solve this: `eshell-needs-pipe-p'. Currently, it only returns t if certain programs are being piped *to*, but we could enhance that to allow specifying that some programs need a "pipe" (i.e. for `process-connection-type' to be nil) all the time. Then we'd just need to add gio and xdg-open to `eshell-needs-pipe' (which should probably be a defcustom while we're there).
X-Loop: help-debbugs@HIDDEN Subject: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under eshell Resent-From: Jim Porter <jporterbugs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jun 2022 18:27:02 +0000 Resent-Message-ID: <handler.56013.B56013.165549037029000 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen <larsi@HIDDEN>, Andreas Schwab <schwab@HIDDEN> Cc: 56013 <at> debbugs.gnu.org, Jeff Kowalski <jeff.kowalski@HIDDEN> Received: via spool by 56013-submit <at> debbugs.gnu.org id=B56013.165549037029000 (code B ref 56013); Fri, 17 Jun 2022 18:27:02 +0000 Received: (at 56013) by debbugs.gnu.org; 17 Jun 2022 18:26:10 +0000 Received: from localhost ([127.0.0.1]:46918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1o2GfZ-0007Xf-Ts for submit <at> debbugs.gnu.org; Fri, 17 Jun 2022 14:26:10 -0400 Received: from mail-pl1-f181.google.com ([209.85.214.181]:39496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1o2GfU-0007X7-PS for 56013 <at> debbugs.gnu.org; Fri, 17 Jun 2022 14:26:08 -0400 Received: by mail-pl1-f181.google.com with SMTP id a17so2573402pls.6 for <56013 <at> debbugs.gnu.org>; Fri, 17 Jun 2022 11:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:from:to:cc:references:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=YGuF6e2D0WuhyAdagA8pFKd+A4j/25322gAXfWBpPfY=; b=beAA1Z9IdmwXfH35W9/K6AAUVODeqRTixM5WO5YXyItBla6LHnoo/j0HufC5caXIsn 6fYMit/4mtN0HFx+nQoP60vhtiXtTi3CaFP0iAdeF/kmrQJyrw9hx53AOyLl5yqmUmni VmIIkvYLHvuwYkJvCGRcBB4ldEe6mCvymmvkMynx5z/QkzeegMMvaO+VxLXeC9Ix3si1 IAamFmp2GkaJYiLMFVT19ZCRxbIAZn1JHjcgt3VSZAwB/DAD9ss02YLNgcIUuEMgYgPE 8rlHoPIGRRC05lxZkKU9WgD/jRvt/mKgP12SwquzBfDNw2OA02tb7abpTikxIDgXX92k etlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YGuF6e2D0WuhyAdagA8pFKd+A4j/25322gAXfWBpPfY=; b=OkR5D5LLAV/z/Pa8EbYL/b/u+HOCWV1tL1bhCwahCLb2RdXi7I+pZjLYvKnjZIYO9/ PuxiimBpG+yn2kvWGXrHTugfglDnblt0UxtRfsz7diTM+352u+E2dow4+EUdliZSPlOY MR9ibrp1vbipQRNKA5q4RCOkOE5wajGGNpDPf5MFxrmGMn4OQwWmxglw+ACzdH/ZK5f+ ZD85oTKIgLFUSqFqRNtj5r8Y+02kB3JeNJl3zrojHZoq+hz450aqrSrcThWQVsbNd3a4 e9TWGAU8+98Tm3ea4yWPgHEkrldxI7VD3qR3mXarik7PxfJhN2i2aa6YTKnA2FyzCcrw CJzA== X-Gm-Message-State: AJIora9yDpweIFgwp1/WA+e7pbWvjWfSt0qEB6B7Ks72Np/OPVuXNG2l CYto19hTG/G0OXG/LWpSl6k= X-Google-Smtp-Source: AGRyM1teManzHf02k9BnN7RWm8XaPFbq5SB+pzYaKKPLVc/Knc5lPeI/L5RYjZzWMcht9oL3XKSt1Q== X-Received: by 2002:a17:90b:33c8:b0:1ea:c199:9794 with SMTP id lk8-20020a17090b33c800b001eac1999794mr12036766pjb.224.1655490357822; Fri, 17 Jun 2022 11:25:57 -0700 (PDT) Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id d20-20020a056a00199400b0050dc762815asm4263737pfl.52.2022.06.17.11.25.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Jun 2022 11:25:57 -0700 (PDT) From: Jim Porter <jporterbugs@HIDDEN> References: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> <87h74kes5l.fsf@HIDDEN> <87czf88yre.fsf@HIDDEN> <87ilozbivd.fsf@HIDDEN> <a388eeea-411a-7834-a104-d8fcb51d33dd@HIDDEN> Message-ID: <292942b6-4a7f-0002-2af4-210b32612ba1@HIDDEN> Date: Fri, 17 Jun 2022 11:25:58 -0700 MIME-Version: 1.0 In-Reply-To: <a388eeea-411a-7834-a104-d8fcb51d33dd@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 6/17/2022 10:17 AM, Jim Porter wrote: > On 6/17/2022 4:59 AM, Lars Ingebrigtsen wrote: >> Andreas Schwab <schwab@HIDDEN> writes: >> >>> See bug#44824. >> >> Ah, right. The fix proposed there was: >> >> org.el: Avoid xdg-open silent failure >> * lisp/org.el (org-open-file): Use 'pipe :connection-type instead of >> 'pty to prevent killing of background process on handler exit. >> >> Perhaps Jim has some comments here; added to the CCs. > > Yeah, this is an issue with how `start-file-process' is being called in > Eshell (see `eshell-gather-process-output'). If I call `(setq > process-connection-type nil)' before running gio in Eshell, it works fine. Oh right... I remember looking at a related issue before. Note: I don't think this will directly fix the issue in this bug, but it might affect how we do fix this, so I'm mentioning it here. `eshell-needs-pipe-p' has a link to bug#1388, which discusses why that function exists in the first place. Basically, if `eshell-needs-pipe-p' didn't exist, then the following Eshell command wouldn't work right[1]: ~ $ *echo "1+1" | bc However, the solution isn't quite right if you think about it: while it's true that bc's stdin should be a pipe, couldn't its stdout still be a pty? The all-or-nothing nature of "pipe vs pty" seems a bit over-restrictive. For example, this is (part of) why piping to `less' is so broken in Eshell. If you remove "less" from `eshell-visual-commands', you can see some of the issues. The following works ok, though you get the "dumb terminal" interface for less: ~ $ less file.txt But this fails: ~ $ cat file.txt | less Missing filename ("less --help" for help) I believe that's because `less' sees that stdin is a pty in that case and so it expects a filename. However, adding `less' to `eshell-needs-pipe' fails though because then `less' thinks stdout is a pipe too, so you don't even get the dumb terminal UI; it just forwards stdin to stdout unchanged. Fixing this would get rid of the current uses for `eshell-needs-pipe-p', but then we'd probably want to keep it around in a slightly different form in order to handle gio/xdg-open properly. What we do about the issue described above would probably determine how the contents of `eshell-needs-pipe' should be specified. [1] The "*" in that command is to use the real /bin/echo, since bc expects a trailing newline and Eshell's built-in echo doesn't do that.
X-Loop: help-debbugs@HIDDEN Subject: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under eshell Resent-From: Jeff Kowalski <jeff.kowalski@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 21 Nov 2022 09:03:03 +0000 Resent-Message-ID: <handler.56013.B56013.16690213355741 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim Porter <jporterbugs@HIDDEN> Cc: 56013 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN>, Andreas Schwab <schwab@HIDDEN> Received: via spool by 56013-submit <at> debbugs.gnu.org id=B56013.16690213355741 (code B ref 56013); Mon, 21 Nov 2022 09:03:03 +0000 Received: (at 56013) by debbugs.gnu.org; 21 Nov 2022 09:02:15 +0000 Received: from localhost ([127.0.0.1]:45376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ox2gv-0001UQ-V3 for submit <at> debbugs.gnu.org; Mon, 21 Nov 2022 04:02:15 -0500 Received: from mail-ua1-f49.google.com ([209.85.222.49]:41550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jeff.kowalski@HIDDEN>) id 1owz8N-0007vN-7o for 56013 <at> debbugs.gnu.org; Mon, 21 Nov 2022 00:14:19 -0500 Received: by mail-ua1-f49.google.com with SMTP id y18so3683392uae.8 for <56013 <at> debbugs.gnu.org>; Sun, 20 Nov 2022 21:14:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hYEIhypKwOof+JQwlt/5vTH0lFjpU+zoryRwv9VTgg0=; b=kILXOO+tqv6N7J+r2ZMjStj3EnYQCk6+x1+3/vzrl0KJgpqh8/0sXMXR2aiQCR7r/t zyvYAhyKps7cAS5dgRv1MaX0Cr2Z7zUSzBIYl3bB6g1wnSdyl/ZvJLLI1MbAonNdSjF+ HW49U0FxCPxd3jAXyhJzeQZa1ZnDnamuVg8n8UN2MVMbVgfT9XNxRHFDEGWRCLT5JLFf K19kwgKf35B59gEVZZyLgxpEYwm7glMoVjsQ2RqVES+EkRSDKeZfhBZuYgmXiUaphGhn hXydNiiOqH9Wtne9T6AMXQdzXn4qrTOzaLvxrQCS2SJvIX5oG4y8dlBU60T+2H4djBYH /tEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hYEIhypKwOof+JQwlt/5vTH0lFjpU+zoryRwv9VTgg0=; b=n6GyVlE3CSV6iTx8NS6PomCct1hQxXFJa00VHaEZ4JD6vaoS2lQpe/cfpJeK8xWG9S KZM1UiHJtalrKHFY0Rfp1dKHFOS5mmyHqmNo8HLruoi6sWMcg7Cq2uZbvlsDV18aJ9J6 3YhT4NHTjrye+d7nbIz776m1z5Q87UdzPiO11mAyf0duBckIPypIYh/JZl2GQeuaItFw KbWUnZjUPRGn2Mk8/qi9oecxL7oQRhAfySUvN25S7mlpGYpWvIh2qaj2aPL+u1pPZYOn oew2PWh+3JnzOjxk2y9KQgDrXtUfEGus62bz34WBj9anbQHK87kBgTUjfEwAXrDG5hLy JbLg== X-Gm-Message-State: ANoB5pkT0rLbgZ2bVMzmCHaWW2i5B3nzf4QSg90iAYGwduAFOmAzDps5 hEwMlEWkAKYv6/sEyaeL8mXKPZS4qMIkeOYEAtI= X-Google-Smtp-Source: AA0mqf4II8Zb9uiEFAljRygwDjneeStOJgYF9tnu4ui6+9dX0cibAAe9t6BFst3sIb5Vy0Zm1oQXIw2iMiXbGJtI/48= X-Received: by 2002:ab0:4a05:0:b0:3df:5b51:4886 with SMTP id q5-20020ab04a05000000b003df5b514886mr8070769uae.115.1669007653654; Sun, 20 Nov 2022 21:14:13 -0800 (PST) MIME-Version: 1.0 References: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> <87h74kes5l.fsf@HIDDEN> <87czf88yre.fsf@HIDDEN> <87ilozbivd.fsf@HIDDEN> <a388eeea-411a-7834-a104-d8fcb51d33dd@HIDDEN> <292942b6-4a7f-0002-2af4-210b32612ba1@HIDDEN> In-Reply-To: <292942b6-4a7f-0002-2af4-210b32612ba1@HIDDEN> From: Jeff Kowalski <jeff.kowalski@HIDDEN> Date: Sun, 20 Nov 2022 21:14:02 -0800 Message-ID: <CAG-eCj5OD_Hzv5A+ON9nuoE+Pwx2zdJrFBAQJu5iQkdNr5DMBg@HIDDEN> Content-Type: multipart/alternative; boundary="00000000000052d58b05edf4204d" X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Mon, 21 Nov 2022 04:02:11 -0500 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --00000000000052d58b05edf4204d Content-Type: text/plain; charset="UTF-8" While I cannot help to craft the solution (I'm limited by my knowledge of internals here), I'm very happy to help test proposals. It seemed there was a hint of a solution developed in this thread. On Fri, Jun 17, 2022 at 11:25 AM Jim Porter <jporterbugs@HIDDEN> wrote: > On 6/17/2022 10:17 AM, Jim Porter wrote: > > On 6/17/2022 4:59 AM, Lars Ingebrigtsen wrote: > >> Andreas Schwab <schwab@HIDDEN> writes: > >> > >>> See bug#44824. > >> > >> Ah, right. The fix proposed there was: > >> > >> org.el: Avoid xdg-open silent failure > >> * lisp/org.el (org-open-file): Use 'pipe :connection-type instead > of > >> 'pty to prevent killing of background process on handler exit. > >> > >> Perhaps Jim has some comments here; added to the CCs. > > > > Yeah, this is an issue with how `start-file-process' is being called in > > Eshell (see `eshell-gather-process-output'). If I call `(setq > > process-connection-type nil)' before running gio in Eshell, it works > fine. > > Oh right... I remember looking at a related issue before. Note: I don't > think this will directly fix the issue in this bug, but it might affect > how we do fix this, so I'm mentioning it here. > > `eshell-needs-pipe-p' has a link to bug#1388, which discusses why that > function exists in the first place. Basically, if `eshell-needs-pipe-p' > didn't exist, then the following Eshell command wouldn't work right[1]: > > ~ $ *echo "1+1" | bc > > However, the solution isn't quite right if you think about it: while > it's true that bc's stdin should be a pipe, couldn't its stdout still be > a pty? The all-or-nothing nature of "pipe vs pty" seems a bit > over-restrictive. For example, this is (part of) why piping to `less' is > so broken in Eshell. If you remove "less" from `eshell-visual-commands', > you can see some of the issues. The following works ok, though you get > the "dumb terminal" interface for less: > > ~ $ less file.txt > > But this fails: > > ~ $ cat file.txt | less > Missing filename ("less --help" for help) > > I believe that's because `less' sees that stdin is a pty in that case > and so it expects a filename. However, adding `less' to > `eshell-needs-pipe' fails though because then `less' thinks stdout is a > pipe too, so you don't even get the dumb terminal UI; it just forwards > stdin to stdout unchanged. > > Fixing this would get rid of the current uses for `eshell-needs-pipe-p', > but then we'd probably want to keep it around in a slightly different > form in order to handle gio/xdg-open properly. What we do about the > issue described above would probably determine how the contents of > `eshell-needs-pipe' should be specified. > > [1] The "*" in that command is to use the real /bin/echo, since bc > expects a trailing newline and Eshell's built-in echo doesn't do that. > --00000000000052d58b05edf4204d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">While I cannot help to craft the solution (I'm limited= by my knowledge of internals here), I'm very happy to help test propos= als.=C2=A0 It seemed there was a hint of a solution developed in this threa= d.</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr= ">On Fri, Jun 17, 2022 at 11:25 AM Jim Porter <<a href=3D"mailto:jporter= bugs@HIDDEN">jporterbugs@HIDDEN</a>> wrote:<br></div><blockquote c= lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px soli= d rgb(204,204,204);padding-left:1ex">On 6/17/2022 10:17 AM, Jim Porter wrot= e:<br> > On 6/17/2022 4:59 AM, Lars Ingebrigtsen wrote:<br> >> Andreas Schwab <<a href=3D"mailto:schwab@HIDDEN" target= =3D"_blank">schwab@HIDDEN</a>> writes:<br> >><br> >>> See bug#44824.<br> >><br> >> Ah, right.=C2=A0 The fix proposed there was:<br> >><br> >> =C2=A0=C2=A0=C2=A0=C2=A0 org.el: Avoid xdg-open silent failure<br> >> =C2=A0=C2=A0=C2=A0=C2=A0 * lisp/org.el (org-open-file): Use 'p= ipe :connection-type instead of<br> >> =C2=A0=C2=A0=C2=A0=C2=A0 'pty to prevent killing of background= process on handler exit.<br> >><br> >> Perhaps Jim has some comments here; added to the CCs.<br> > <br> > Yeah, this is an issue with how `start-file-process' is being call= ed in <br> > Eshell (see `eshell-gather-process-output'). If I call `(setq <br> > process-connection-type nil)' before running gio in Eshell, it wor= ks fine.<br> <br> Oh right... I remember looking at a related issue before. Note: I don't= <br> think this will directly fix the issue in this bug, but it might affect <br= > how we do fix this, so I'm mentioning it here.<br> <br> `eshell-needs-pipe-p' has a link to bug#1388, which discusses why that = <br> function exists in the first place. Basically, if `eshell-needs-pipe-p'= <br> didn't exist, then the following Eshell command wouldn't work right= [1]:<br> <br> =C2=A0 =C2=A0~ $ *echo "1+1" | bc<br> <br> However, the solution isn't quite right if you think about it: while <b= r> it's true that bc's stdin should be a pipe, couldn't its stdout= still be <br> a pty? The all-or-nothing nature of "pipe vs pty" seems a bit <br= > over-restrictive. For example, this is (part of) why piping to `less' i= s <br> so broken in Eshell. If you remove "less" from `eshell-visual-com= mands', <br> you can see some of the issues. The following works ok, though you get <br> the "dumb terminal" interface for less:<br> <br> =C2=A0 =C2=A0~ $ less file.txt<br> <br> But this fails:<br> <br> =C2=A0 =C2=A0~ $ cat file.txt | less<br> =C2=A0 =C2=A0Missing filename ("less --help" for help)<br> <br> I believe that's because `less' sees that stdin is a pty in that ca= se <br> and so it expects a filename. However, adding `less' to <br> `eshell-needs-pipe' fails though because then `less' thinks stdout = is a <br> pipe too, so you don't even get the dumb terminal UI; it just forwards = <br> stdin to stdout unchanged.<br> <br> Fixing this would get rid of the current uses for `eshell-needs-pipe-p'= , <br> but then we'd probably want to keep it around in a slightly different <= br> form in order to handle gio/xdg-open properly. What we do about the <br> issue described above would probably determine how the contents of <br> `eshell-needs-pipe' should be specified.<br> <br> [1] The "*" in that command is to use the real /bin/echo, since b= c <br> expects a trailing newline and Eshell's built-in echo doesn't do th= at.<br> </blockquote></div> --00000000000052d58b05edf4204d--
X-Loop: help-debbugs@HIDDEN Subject: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under eshell Resent-From: Jim Porter <jporterbugs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 22 Nov 2022 20:21:02 +0000 Resent-Message-ID: <handler.56013.B56013.16691484085071 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jeff Kowalski <jeff.kowalski@HIDDEN> Cc: Andreas Schwab <schwab@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN>, 56013 <at> debbugs.gnu.org Received: via spool by 56013-submit <at> debbugs.gnu.org id=B56013.16691484085071 (code B ref 56013); Tue, 22 Nov 2022 20:21:02 +0000 Received: (at 56013) by debbugs.gnu.org; 22 Nov 2022 20:20:08 +0000 Received: from localhost ([127.0.0.1]:52625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oxZkW-0001Ji-GW for submit <at> debbugs.gnu.org; Tue, 22 Nov 2022 15:20:08 -0500 Received: from mail-pg1-f177.google.com ([209.85.215.177]:41565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1oxZkU-0001J7-1H for 56013 <at> debbugs.gnu.org; Tue, 22 Nov 2022 15:20:07 -0500 Received: by mail-pg1-f177.google.com with SMTP id q71so14985817pgq.8 for <56013 <at> debbugs.gnu.org>; Tue, 22 Nov 2022 12:20:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=Ytjl4SQW9VR1yF3UYr2bbQ6r/M3tEXJPBaXmpQoNHKU=; b=L9kjJCoNiJriJ2ssk/CBIu4OjkjKQ3ihzfP3WfUDVZ9w7TPj1biatpBR6l+2LaBVBj 9ePpOFiwqSy2RJcuT+7NHv0dX+1MWY2tbQQEvGQE4nDQ5J9w0ZG0YsCWS+l3SuYEnLrC GOa2425Mo42/D5NfFKZxFHkG0c22jkBNX5Djp57gmR6MQea1fU+gbQe7up2WgMPWLrtd YA3WfBZfDPK3D/B0VUMWM9fA7QTx+w/U3e4PNy1xEou3Ovx+HUZNqRUvd7HQS+mMuHk/ cZmX54ZgUgTRSgkdp3lrjg5vEsIeJ7RWlVtCWaOKWgFIObJCXp6gCbQWcdb4JJjmKl9z Htjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ytjl4SQW9VR1yF3UYr2bbQ6r/M3tEXJPBaXmpQoNHKU=; b=fPWLkWVSvj27TGqzuzMGeYuN3NBLEDwTuNfzFt2CRY1LMP4F8yuIpnCKFdtVWhahPt t3gN//ctKkPOrU0jT2mLPfMDxJkGxjRSqRDQFI4LAb2TAQp2Ao8Re33HfMUo9g3kCpy+ WIHym5n85+49PA/OqzI82MCplEw2SEIy+Zd4+xSPoTiqxs9/E+DMcTBLnFEWkOwU6P/w g71Kckh+biheiHIFg7ggyDsH3WS7i6LGk8VceC3sq7K/kb8IoOIYWCMD5I2NhFBPNVkw O9ztO94ytAhOl/H0UTbd2XNhj+MGbNtNp0k1gDj+SB4gU6K0XKmhNg85rPiHTvVeJ36Y 7X6g== X-Gm-Message-State: ANoB5pk86aWgXtMwwznO5MsQieoID+wLlAZnKMr9B82x48dG8RHmZn4I /nmQ5+DwfFM35sxDp0/OEI8= X-Google-Smtp-Source: AA0mqf7UejXcPexRqOdInl7Dhhqe78ZJmnr7RqDZpaF6+T0ncuRBVPkaCcBw3QIAYimqFCJlOqFB1A== X-Received: by 2002:a63:5719:0:b0:476:ea7d:3ff6 with SMTP id l25-20020a635719000000b00476ea7d3ff6mr6108323pgb.73.1669148400215; Tue, 22 Nov 2022 12:20:00 -0800 (PST) Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id 135-20020a62178d000000b0056e8eb09d58sm11352072pfx.170.2022.11.22.12.19.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Nov 2022 12:19:59 -0800 (PST) Message-ID: <381f9df9-4442-4580-17f5-6590f7326e3b@HIDDEN> Date: Tue, 22 Nov 2022 12:19:56 -0800 MIME-Version: 1.0 Content-Language: en-US References: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> <87h74kes5l.fsf@HIDDEN> <87czf88yre.fsf@HIDDEN> <87ilozbivd.fsf@HIDDEN> <a388eeea-411a-7834-a104-d8fcb51d33dd@HIDDEN> <292942b6-4a7f-0002-2af4-210b32612ba1@HIDDEN> <CAG-eCj5OD_Hzv5A+ON9nuoE+Pwx2zdJrFBAQJu5iQkdNr5DMBg@HIDDEN> From: Jim Porter <jporterbugs@HIDDEN> In-Reply-To: <CAG-eCj5OD_Hzv5A+ON9nuoE+Pwx2zdJrFBAQJu5iQkdNr5DMBg@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 11/20/2022 9:14 PM, Jeff Kowalski wrote: > While I cannot help to craft the solution (I'm limited by my knowledge > of internals here), I'm very happy to help test proposals. It seemed > there was a hint of a solution developed in this thread. This is a hacky workaround, but if it works for you, it would help prove a strategy to fix this: ~ $ cat | xdg-open file.txt | cat The above forces 'xdg-open' to be run with pipes for its stdin and stdout. I believe the issue is that when 'xdg-open' sees a PTY for stdin/stdout, it seems to assume that the PTY will live for a long time; however, in Eshell, it will close the PTY as soon as 'xdg-open' returns, which breaks things. A real fix would be to tell Eshell that certain programs, like xdg-open, should never use PTYs. (There used to be a variable called 'eshell-needs-pipe' that did something similar to this, but after changing how Eshell connects processes, it was no longer needed.)
X-Loop: help-debbugs@HIDDEN Subject: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under eshell Resent-From: Jeff Kowalski <jeff.kowalski@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 23 Nov 2022 08:29:04 +0000 Resent-Message-ID: <handler.56013.B56013.166919210928601 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim Porter <jporterbugs@HIDDEN> Cc: Andreas Schwab <schwab@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN>, 56013 <at> debbugs.gnu.org Received: via spool by 56013-submit <at> debbugs.gnu.org id=B56013.166919210928601 (code B ref 56013); Wed, 23 Nov 2022 08:29:04 +0000 Received: (at 56013) by debbugs.gnu.org; 23 Nov 2022 08:28:29 +0000 Received: from localhost ([127.0.0.1]:53439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oxl7M-0007RC-Tn for submit <at> debbugs.gnu.org; Wed, 23 Nov 2022 03:28:29 -0500 Received: from mail-vs1-f48.google.com ([209.85.217.48]:39514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jeff.kowalski@HIDDEN>) id 1oxaNt-0004dx-DY for 56013 <at> debbugs.gnu.org; Tue, 22 Nov 2022 16:00:50 -0500 Received: by mail-vs1-f48.google.com with SMTP id m4so15676547vsc.6 for <56013 <at> debbugs.gnu.org>; Tue, 22 Nov 2022 13:00:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=O+SjeY6eKHleQgOAt5/4wAgk/6dY6y/JOVAHW1PaxwY=; b=SlZZgsvbTyo3PwKAQ8TxiareWOUcaShmOUirIfdwjEqu4DEXZQUIhE/+ffa6UR73UK 7dXu3ZMZnjuXAQ06UtOhAgf6epH4mP1X3RebDUHROYXstV0VimA4xLSWhvFRQV9/i1WS FAfgsS7pz3ZmrssJGhN9rB3er74llk8Vqulh+lX/ix87pvdD5L8Sxj4jf6WvvWkYN2si jpVebjHAZxFBuIX5xqfJnDVJ0+j/znS/ihbVzmohxzO3Y5FB6OlwmLryH/BZWtC1Lbes 5+lyU3yn6B99xuJcegugdaLuDjDCVpomCLvoq9rju/HVXGDGcRtvVW7GaiedpdWxEb5a r+Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=O+SjeY6eKHleQgOAt5/4wAgk/6dY6y/JOVAHW1PaxwY=; b=m3GC6uO8wC91xTOmI1x3J2KSWD45THPgvw0HCShZVWtrq25ROXv/QPW9c1uIPUFOXV vIdq78kfY9s4HZFdH1dv768fIqm3XicfsCtb7FLCzsPgbJHAwgKYyAzFq+jWlsyZgvmw xXHIRRYctbUDhwaD42GPf9l6hcbvn+zB2mwpBcSR4pS+T5MAFdRpGQSsuDdAncQDRKxK EehBaHYFiJpIDR3gph7HNUkUbrwFGaPiwC2VI42gOahTTUyydRlY4SvXMMxtkmHSfC86 Lo6qN4/EnQYhEVS3QKIJ/Iyy4r7qcKEh1MPH7LSr10zIwGt3jRBofzo3ARMH+BwCfLJH fyDg== X-Gm-Message-State: ANoB5pkhQ0TBHOaKwbSqEo7mIHpSXJIXFdCsH6aBvdyf0wldlZo3dKgx /ehotjJJtT6yft4O47oPjJ6/YrDynQfeqiFetXM= X-Google-Smtp-Source: AA0mqf56d8O2S5eKeKooMwFfF+M5sVcv0QMk2iNG7e+Xe7yKuJndLv28VQG8hgMY81q0yYDRfVn4vpXO/5kqxmhzGSs= X-Received: by 2002:a67:fd53:0:b0:3a6:eff1:94ca with SMTP id g19-20020a67fd53000000b003a6eff194camr3849563vsr.62.1669150843564; Tue, 22 Nov 2022 13:00:43 -0800 (PST) MIME-Version: 1.0 References: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> <87h74kes5l.fsf@HIDDEN> <87czf88yre.fsf@HIDDEN> <87ilozbivd.fsf@HIDDEN> <a388eeea-411a-7834-a104-d8fcb51d33dd@HIDDEN> <292942b6-4a7f-0002-2af4-210b32612ba1@HIDDEN> <CAG-eCj5OD_Hzv5A+ON9nuoE+Pwx2zdJrFBAQJu5iQkdNr5DMBg@HIDDEN> <381f9df9-4442-4580-17f5-6590f7326e3b@HIDDEN> In-Reply-To: <381f9df9-4442-4580-17f5-6590f7326e3b@HIDDEN> From: Jeff Kowalski <jeff.kowalski@HIDDEN> Date: Tue, 22 Nov 2022 13:00:32 -0800 Message-ID: <CAG-eCj5w_7ppJme8vYBY90wLOXQgaft1evrJGX4XAkNf7Rr9MA@HIDDEN> Content-Type: multipart/alternative; boundary="0000000000001b77e705ee1577cb" X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Wed, 23 Nov 2022 03:28:22 -0500 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --0000000000001b77e705ee1577cb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for the response and suggestion. From eshell, =CE=BB xdg-open file.txt exits immediately, without opening file.txt, and =CE=BB cat | xdg-open file.txt | cat shows the same behavior, but =CE=BB setsid -w xdg-open file.txt opens the file as expected. Hope this helps, Jeff On Tue, Nov 22, 2022 at 12:20 PM Jim Porter <jporterbugs@HIDDEN> wrote: > On 11/20/2022 9:14 PM, Jeff Kowalski wrote: > > While I cannot help to craft the solution (I'm limited by my knowledge > > of internals here), I'm very happy to help test proposals. It seemed > > there was a hint of a solution developed in this thread. > > This is a hacky workaround, but if it works for you, it would help prove > a strategy to fix this: > > ~ $ cat | xdg-open file.txt | cat > > The above forces 'xdg-open' to be run with pipes for its stdin and > stdout. I believe the issue is that when 'xdg-open' sees a PTY for > stdin/stdout, it seems to assume that the PTY will live for a long time; > however, in Eshell, it will close the PTY as soon as 'xdg-open' returns, > which breaks things. > > A real fix would be to tell Eshell that certain programs, like xdg-open, > should never use PTYs. (There used to be a variable called > 'eshell-needs-pipe' that did something similar to this, but after > changing how Eshell connects processes, it was no longer needed.) > --0000000000001b77e705ee1577cb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Thanks for the response and suggestion.<div>From eshell,= =C2=A0</div><div>=C2=A0 =C2=A0 =C2=A0=CE=BB xdg-open file.txt=C2=A0=C2=A0<b= r></div><div>exits immediately, without opening file.txt, and</div><div>=C2= =A0 =C2=A0 =C2=A0=CE=BB cat | xdg-open file.txt | cat<br></div><div>shows t= he same behavior, but</div><div>=C2=A0 =C2=A0 =C2=A0=CE=BB setsid -w xdg-op= en file.txt<br></div><div>opens the file as expected.</div><div>Hope this= =C2=A0helps,</div><div>Jeff</div><div><br></div><div><br></div></div><br><d= iv class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Nov = 22, 2022 at 12:20 PM Jim Porter <<a href=3D"mailto:jporterbugs@HIDDEN= ">jporterbugs@HIDDEN</a>> wrote:<br></div><blockquote class=3D"gmail_= quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,= 204);padding-left:1ex">On 11/20/2022 9:14 PM, Jeff Kowalski wrote:<br> > While I cannot help to craft the solution (I'm limited by my knowl= edge <br> > of internals here), I'm very happy to help test proposals.=C2=A0 I= t seemed <br> > there was a hint of a solution developed in this thread.<br> <br> This is a hacky workaround, but if it works for you, it would help prove <b= r> a strategy to fix this:<br> <br> =C2=A0 =C2=A0~ $ cat | xdg-open file.txt | cat<br> <br> The above forces 'xdg-open' to be run with pipes for its stdin and = <br> stdout. I believe the issue is that when 'xdg-open' sees a PTY for = <br> stdin/stdout, it seems to assume that the PTY will live for a long time; <b= r> however, in Eshell, it will close the PTY as soon as 'xdg-open' ret= urns, <br> which breaks things.<br> <br> A real fix would be to tell Eshell that certain programs, like xdg-open, <b= r> should never use PTYs. (There used to be a variable called <br> 'eshell-needs-pipe' that did something similar to this, but after <= br> changing how Eshell connects processes, it was no longer needed.)<br> </blockquote></div> --0000000000001b77e705ee1577cb--
X-Loop: help-debbugs@HIDDEN Subject: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under eshell Resent-From: Jim Porter <jporterbugs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 23 Nov 2022 23:00:01 +0000 Resent-Message-ID: <handler.56013.B56013.166924438110122 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jeff Kowalski <jeff.kowalski@HIDDEN> Cc: 56013 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN>, Andreas Schwab <schwab@HIDDEN> Received: via spool by 56013-submit <at> debbugs.gnu.org id=B56013.166924438110122 (code B ref 56013); Wed, 23 Nov 2022 23:00:01 +0000 Received: (at 56013) by debbugs.gnu.org; 23 Nov 2022 22:59:41 +0000 Received: from localhost ([127.0.0.1]:56537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oxyiT-0002dB-4n for submit <at> debbugs.gnu.org; Wed, 23 Nov 2022 17:59:41 -0500 Received: from mail-pf1-f182.google.com ([209.85.210.182]:38879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1oxyiP-0002cu-LA for 56013 <at> debbugs.gnu.org; Wed, 23 Nov 2022 17:59:40 -0500 Received: by mail-pf1-f182.google.com with SMTP id w129so46381pfb.5 for <56013 <at> debbugs.gnu.org>; Wed, 23 Nov 2022 14:59:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=XzYXm/CnJc15gPhfOeYKfg8EkesWCuTF5aZMBzlNWLw=; b=Slx1bSFH8CCSXYeEJ/D3QXtx9cK/mxuK2kpm19ukchGYf7WuKF0I/3tTPaWavS8QeO vmOx3N9ajgAYWyvdsxeHMkGimeNO7HE59F/yZJbIeZuvQTspz7yH4HdlGxvipr/6EZPJ WwDlszuJbf/6ULeedYT0eCugCkZ/X5G9Xzs3RdumqKvPp2EUrWEETfPgwOLB/H7dlGzN 8Gwa6Q36FuDpVMqj5eZ+ltLlYSaoEHfutWqeDmRSojGOmtRpObVPYkE3eVjcX0Nk3cDg b5K2X/vQeQ0m49Soq5xKhvuyQQoaasDw/qnDn+D+GLZ2XdzelYAPdYF0/ajQ7dvNuFrg G9nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XzYXm/CnJc15gPhfOeYKfg8EkesWCuTF5aZMBzlNWLw=; b=A89Prubcxqsq4mePzcxOl1jaWvh7XfXiL4uptV7T9LctEoa5D5a322DIfZo2kP0dgF KWpvw5ELgRKWD+pSWEA1Rp2vCVYl4898OcXo5zzmZRA9sUNOe8FlyNrRtEqMQfjXb3NO GeItCKZPGmjkXOdcq8g1FlAYmas0eHb+xrq2I3+es0quLF974yGpp/zVyUNc5aIQoCnF 4BO7o1QkZ7ZB9kW3ISaUrWrzgHoXYC8wcEPZsx6QVTgzIRrimOIQIdY2oeZNSv6+vy+C cwPYgMaraAxhDOSeJvriKgC4g6xmWj+i5Adwm7ugKFsjCxjVPKONxy2KKZlvtUS2hfP2 6nFw== X-Gm-Message-State: ANoB5pnSBpQdxlym5cE524J0bgMTiGwEb+509bAqdxSAZKjLBvPO97rp Pmiy2TBUMobWKwz7VjLLbJs= X-Google-Smtp-Source: AA0mqf62P8czgkTPGabECJhws8fJoEJm7vlx/PGBr2vKrQVIVucIHPnNMM+YM9h0XgB9igI05JqUqg== X-Received: by 2002:a63:5263:0:b0:439:8dd3:c3c2 with SMTP id s35-20020a635263000000b004398dd3c3c2mr8956534pgl.481.1669244371592; Wed, 23 Nov 2022 14:59:31 -0800 (PST) Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id h10-20020a17090a470a00b0021870b2c7absm1904296pjg.42.2022.11.23.14.59.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Nov 2022 14:59:30 -0800 (PST) Message-ID: <18d536c3-13c7-f1cf-ab64-72ba7b8931dc@HIDDEN> Date: Wed, 23 Nov 2022 14:59:30 -0800 MIME-Version: 1.0 Content-Language: en-US References: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> <87h74kes5l.fsf@HIDDEN> <87czf88yre.fsf@HIDDEN> <87ilozbivd.fsf@HIDDEN> <a388eeea-411a-7834-a104-d8fcb51d33dd@HIDDEN> <292942b6-4a7f-0002-2af4-210b32612ba1@HIDDEN> <CAG-eCj5OD_Hzv5A+ON9nuoE+Pwx2zdJrFBAQJu5iQkdNr5DMBg@HIDDEN> <381f9df9-4442-4580-17f5-6590f7326e3b@HIDDEN> <CAG-eCj5w_7ppJme8vYBY90wLOXQgaft1evrJGX4XAkNf7Rr9MA@HIDDEN> From: Jim Porter <jporterbugs@HIDDEN> In-Reply-To: <CAG-eCj5w_7ppJme8vYBY90wLOXQgaft1evrJGX4XAkNf7Rr9MA@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 11/22/2022 1:00 PM, Jeff Kowalski wrote: > Thanks for the response and suggestion. > From eshell, > λ xdg-open file.txt > exits immediately, without opening file.txt, and > λ cat | xdg-open file.txt | cat > shows the same behavior, but > λ setsid -w xdg-open file.txt > opens the file as expected. Is this with Emacs 28 or 29? In 29, `cat | xdg-open file.txt | cat` should work as expected (I hope). If it doesn't, then the solution I had in mind (make `xdg-open` use a pipe for its IO) probably wouldn't work, leaving us back at square one for this bug...
X-Loop: help-debbugs@HIDDEN Subject: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under eshell Resent-From: Jeff Kowalski <jeff.kowalski@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 24 Nov 2022 08:57:03 +0000 Resent-Message-ID: <handler.56013.B56013.16692801896687 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim Porter <jporterbugs@HIDDEN> Cc: 56013 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN>, Andreas Schwab <schwab@HIDDEN> Received: via spool by 56013-submit <at> debbugs.gnu.org id=B56013.16692801896687 (code B ref 56013); Thu, 24 Nov 2022 08:57:03 +0000 Received: (at 56013) by debbugs.gnu.org; 24 Nov 2022 08:56:29 +0000 Received: from localhost ([127.0.0.1]:57186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oy821-0001jg-CV for submit <at> debbugs.gnu.org; Thu, 24 Nov 2022 03:56:29 -0500 Received: from mail-vs1-f48.google.com ([209.85.217.48]:34423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jeff.kowalski@HIDDEN>) id 1oy2cb-0002pG-1R for 56013 <at> debbugs.gnu.org; Wed, 23 Nov 2022 22:09:54 -0500 Received: by mail-vs1-f48.google.com with SMTP id i2so411309vsc.1 for <56013 <at> debbugs.gnu.org>; Wed, 23 Nov 2022 19:09:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6aYOaNwY0UII1Oj0gwwEtN7hXJePFBj7F1S9mOiKTFs=; b=fyH6ilPs0VUMi+L48hssoEnxU4EIoyKMAVbamMB3Ta4JZMyeFV+x4hPd3zM6bTuHe2 QWawgp+bAXRqyo7YzILkT/KssLxHV9hYLySKNCUKLNpcW68GxhB55/zmyx5mVetYtvMz lrOKAtWfbDF1S5xd4+TGRuo1ftXojI//uPHxjaV9Y5psNZBrvign5MfKP0l5bR9eZLaV AJBECEkeqREoX2DN5p3cMgzuMb6kP+SIz2yiZqPr9jYYNnOgTLdj58P6FyOZ1+e+O+VD WNsVelPtgGytvAdzDY85zvwFmh2I+vkPxKxYDlG6nYA4bFAR06vaL3ItfKlspcuZp87I zaDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6aYOaNwY0UII1Oj0gwwEtN7hXJePFBj7F1S9mOiKTFs=; b=TaqXE1Djjd6ByS+p+PMDlFFpBqhTz5ryqozjIuGsnDWpIClvPX7tRRHeOtjMmIqNmw h50FahyJ6KX40fB/iAZJNA2bsnGlTnXxZCUjamqLkh/mvHteQqwGa4pVclOmI8x0PyMU e9aXbBG0sdvnmlhXXRPcsGmrzY7YxJRjKBtUjdm4hoI5Bt1HRznSx/Y6Wg83m7FdZzDu XByBXDfEhPC4gqqyd2vQGmfaKdLaRbnXWdkXYOpVl1UZOasfJMGUdY54PIUpETEyiRGn BGUfnwkdX6wHsv0BWccqEOC28njPI0GjCZ+vayU3StbQ7bM0ZWUCLBD/paQR5k0P+/0R 1nMw== X-Gm-Message-State: ANoB5pkcz+7zOFQQ5MNc41l+rYfiLmOR0f4novv5v77904s9ouyU0kwM lSHdPRRj6vC/ze34O8C3UoOR6Yi/5B8zjcEOA+QSLAKx8Wk= X-Google-Smtp-Source: AA0mqf5VXCgaccKleuP1FNIIpH661mCG8hDvove6iy0SRGPN/XPvHQioOfAZ4LBdIl/QPa5fOVt7KiScnwEcLSi0hSQ= X-Received: by 2002:a05:6102:159f:b0:3b0:51c3:fab9 with SMTP id g31-20020a056102159f00b003b051c3fab9mr6195920vsv.63.1669259387259; Wed, 23 Nov 2022 19:09:47 -0800 (PST) MIME-Version: 1.0 References: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> <87h74kes5l.fsf@HIDDEN> <87czf88yre.fsf@HIDDEN> <87ilozbivd.fsf@HIDDEN> <a388eeea-411a-7834-a104-d8fcb51d33dd@HIDDEN> <292942b6-4a7f-0002-2af4-210b32612ba1@HIDDEN> <CAG-eCj5OD_Hzv5A+ON9nuoE+Pwx2zdJrFBAQJu5iQkdNr5DMBg@HIDDEN> <381f9df9-4442-4580-17f5-6590f7326e3b@HIDDEN> <CAG-eCj5w_7ppJme8vYBY90wLOXQgaft1evrJGX4XAkNf7Rr9MA@HIDDEN> <18d536c3-13c7-f1cf-ab64-72ba7b8931dc@HIDDEN> In-Reply-To: <18d536c3-13c7-f1cf-ab64-72ba7b8931dc@HIDDEN> From: Jeff Kowalski <jeff.kowalski@HIDDEN> Date: Wed, 23 Nov 2022 19:09:35 -0800 Message-ID: <CAG-eCj7y93BB1zgoJN9_GWK9K30f-avQcBKgfiH7zdjzHGQ4pA@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000d0ce0a05ee2ebc9e" X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Thu, 24 Nov 2022 03:56:19 -0500 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --000000000000d0ce0a05ee2ebc9e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'm sorry, thanks for checking. I didn't realize you meant v29. I'm using GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2022-05-30 Is there something more I can help you with? On Wed, Nov 23, 2022 at 2:59 PM Jim Porter <jporterbugs@HIDDEN> wrote: > On 11/22/2022 1:00 PM, Jeff Kowalski wrote: > > Thanks for the response and suggestion. > > From eshell, > > =CE=BB xdg-open file.txt > > exits immediately, without opening file.txt, and > > =CE=BB cat | xdg-open file.txt | cat > > shows the same behavior, but > > =CE=BB setsid -w xdg-open file.txt > > opens the file as expected. > > Is this with Emacs 28 or 29? In 29, `cat | xdg-open file.txt | cat` > should work as expected (I hope). > > If it doesn't, then the solution I had in mind (make `xdg-open` use a > pipe for its IO) probably wouldn't work, leaving us back at square one > for this bug... > > --000000000000d0ce0a05ee2ebc9e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr">I'm= sorry, thanks for checking.=C2=A0 I didn't realize you meant v29.<div>= I'm using GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.= 24.33, cairo version 1.16.0) of 2022-05-30</div><div>Is there something mor= e I can help=C2=A0you with?</div></div></div></div></div><br><div class=3D"= gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Nov 23, 2022 at = 2:59 PM Jim Porter <<a href=3D"mailto:jporterbugs@HIDDEN" target=3D"_= blank">jporterbugs@HIDDEN</a>> wrote:<br></div><blockquote class=3D"g= mail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204= ,204,204);padding-left:1ex">On 11/22/2022 1:00 PM, Jeff Kowalski wrote:<br> > Thanks for the response and suggestion.<br> >=C2=A0 From eshell,<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0=CE=BB xdg-open file.txt<br> > exits immediately, without opening file.txt, and<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0=CE=BB cat | xdg-open file.txt | cat<br> > shows the same behavior, but<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0=CE=BB setsid -w xdg-open file.txt<br> > opens the file as expected.<br> <br> Is this with Emacs 28 or 29? In 29, `cat | xdg-open file.txt | cat` <br> should work as expected (I hope).<br> <br> If it doesn't, then the solution I had in mind (make `xdg-open` use a <= br> pipe for its IO) probably wouldn't work, leaving us back at square one = <br> for this bug...<br> <br> </blockquote></div> --000000000000d0ce0a05ee2ebc9e--
X-Loop: help-debbugs@HIDDEN Subject: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under eshell Resent-From: Andreas Schwab <schwab@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 03 Oct 2024 08:11:01 +0000 Resent-Message-ID: <handler.56013.B56013.172794302416039 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jeff Kowalski <jeff.kowalski@HIDDEN> Cc: Jim Porter <jporterbugs@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN>, 56013 <at> debbugs.gnu.org Received: via spool by 56013-submit <at> debbugs.gnu.org id=B56013.172794302416039 (code B ref 56013); Thu, 03 Oct 2024 08:11:01 +0000 Received: (at 56013) by debbugs.gnu.org; 3 Oct 2024 08:10:24 +0000 Received: from localhost ([127.0.0.1]:59944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1swGub-00044X-0f for submit <at> debbugs.gnu.org; Thu, 03 Oct 2024 04:10:24 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:40536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <whitebox@HIDDEN>) id 1swGuC-00040n-6d for 56013 <at> debbugs.gnu.org; Thu, 03 Oct 2024 04:10:06 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4XK4866CxGz1qsP6; Thu, 3 Oct 2024 10:09:10 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4XK4864R6Mz1qqlS; Thu, 3 Oct 2024 10:09:10 +0200 (CEST) X-Virus-Scanned: amavis at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024) with ESMTP id RM6f5OKlOYNU; Thu, 3 Oct 2024 10:09:10 +0200 (CEST) X-Auth-Info: /o0OUTliHqJ4RcByDi1jLHSefEf776ORCmlK3dlGGsgIznstZfeplLY5LZdMs2Mf Received: from tiger.home (aftr-62-216-205-225.dynamic.mnet-online.de [62.216.205.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 3 Oct 2024 10:09:09 +0200 (CEST) Received: by tiger.home (Postfix, from userid 1000) id 495112E5327; Thu, 3 Oct 2024 10:09:08 +0200 (CEST) From: Andreas Schwab <schwab@HIDDEN> In-Reply-To: <CAG-eCj5VtAGePhdjQb8qbkJUN93UPFLZ_1jJnju0MmwvL+rM4A@HIDDEN> (Jeff Kowalski's message of "Wed, 2 Oct 2024 20:15:44 -0700") References: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> <87h74kes5l.fsf@HIDDEN> <87czf88yre.fsf@HIDDEN> <87ilozbivd.fsf@HIDDEN> <a388eeea-411a-7834-a104-d8fcb51d33dd@HIDDEN> <292942b6-4a7f-0002-2af4-210b32612ba1@HIDDEN> <CAG-eCj5OD_Hzv5A+ON9nuoE+Pwx2zdJrFBAQJu5iQkdNr5DMBg@HIDDEN> <381f9df9-4442-4580-17f5-6590f7326e3b@HIDDEN> <CAG-eCj5w_7ppJme8vYBY90wLOXQgaft1evrJGX4XAkNf7Rr9MA@HIDDEN> <18d536c3-13c7-f1cf-ab64-72ba7b8931dc@HIDDEN> <CAG-eCj7y93BB1zgoJN9_GWK9K30f-avQcBKgfiH7zdjzHGQ4pA@HIDDEN> <CAG-eCj5VtAGePhdjQb8qbkJUN93UPFLZ_1jJnju0MmwvL+rM4A@HIDDEN> X-Yow: .. over in west Philadelphia a puppy is vomiting.. Date: Thu, 03 Oct 2024 10:09:08 +0200 Message-ID: <87msjlr4kb.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.4 (-) On Okt 02 2024, Jeff Kowalski wrote: > Recall we're still trying to get the "xdg-open file.txt" case to work > correctly. This is not possible as long as eshell creates a new session for each command and closes it immediately after the command exits. You can observe the same effect if you run "xterm -e 'xdg-open file.txt'". -- Andreas Schwab, schwab@HIDDEN GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."
X-Loop: help-debbugs@HIDDEN Subject: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under eshell Resent-From: Jim Porter <jporterbugs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 03 Oct 2024 23:48:02 +0000 Resent-Message-ID: <handler.56013.B56013.172799926115179 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab <schwab@HIDDEN>, Jeff Kowalski <jeff.kowalski@HIDDEN> Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 56013 <at> debbugs.gnu.org Received: via spool by 56013-submit <at> debbugs.gnu.org id=B56013.172799926115179 (code B ref 56013); Thu, 03 Oct 2024 23:48:02 +0000 Received: (at 56013) by debbugs.gnu.org; 3 Oct 2024 23:47:41 +0000 Received: from localhost ([127.0.0.1]:34090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1swVXp-0003wk-4r for submit <at> debbugs.gnu.org; Thu, 03 Oct 2024 19:47:41 -0400 Received: from mail-pj1-f54.google.com ([209.85.216.54]:61468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1swVXn-0003wb-6q for 56013 <at> debbugs.gnu.org; Thu, 03 Oct 2024 19:47:39 -0400 Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-2e078d28fe9so1145270a91.2 for <56013 <at> debbugs.gnu.org>; Thu, 03 Oct 2024 16:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727999196; x=1728603996; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=t26df5qsSlPEKDciADIMApNHrIrhUfv3lHiXl590gLY=; b=aa0wW5+hGYnmQRGHHJ/D0uchJzuXaoc7lJV7EQHCJFIBWQV+Dj5z7mZovl6LrnjP9F LYYHjFuwk3vxqYF6bJQv1AAnNOLmXrWAZb2OAanWni9c82NpuSJx2gTgQoEIXV7+K7JH XIuw6P3iIKs59k9N96BmH9OF6aAbw8D+j7i1KYcojo59ihE0fCgy7HwzlhROw1ueduBS ft9YdmXXBUkn9IESwaxH2aLa7u7WjYSvN7sw0RP/NDXFxFBeU0s4+OqzcVC+GGwUBSp4 r87AbPOtTwX2gedgSdlPvUEv+LyiMBGC980tS97UJ7k26B2ZRVJRz6jzeD41qccJQV6W rWfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727999196; x=1728603996; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=t26df5qsSlPEKDciADIMApNHrIrhUfv3lHiXl590gLY=; b=nL0AEE0NTah5OA0EKEH5EZ1qeGExe13T19rtHEYAeQNpBiitDzdnoYQqQJkYo3pzro gCx9bxMJh4nZbnjqGSECekIrKanirodH9dmZpNnvbyL1oE/eA8Kl8wm97iqiy9F1rrge mn1Js4qORSfQjtT/WDVJW2MOMcj+oWk8bTvHpuEagf5UZZO4Hr2EfFwHrvv9w/M+lRpC DQhgeYwQFeCtNW9YAVA60Dq+8h6+nwBAjCJzd6Sus3Ave57N/vWpKCWLs2Not1hMzA3O M/EEMJ59J/b/SQFsZVz2ndrLq2UzVIMVt5ZFFz+hgj1eIpQXgsQC9F4aZZ4LL+LmGQgk 88xA== X-Forwarded-Encrypted: i=1; AJvYcCWKjkREgAt0PFUCmp1/3tlDIQY3cAPYdYeEsnYNKYTy2xymDncS4ZdCgBLYBMIKRl6Lfomjrw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwWHQPkS4LxbhsuL3XDcg3eTnr0PsHFRfQ69hIlFUWG2C3ZWYsV 08ghp8NFTDj2TPfiz3KQmyxTZG5wPCZgvZLdQd5YbaHE1BVK1hB7 X-Google-Smtp-Source: AGHT+IF35JlSIU44d6pDtNR8WgyHz0nLrOkTbrzYEJKsdRCcM2//SXY6M3W5h3czAWNqMSYQOoMBSQ== X-Received: by 2002:a17:90a:5511:b0:2d3:da82:28e0 with SMTP id 98e67ed59e1d1-2e1e621e96cmr945596a91.9.1727999196084; Thu, 03 Oct 2024 16:46:36 -0700 (PDT) Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-2e1e85e2a29sm105370a91.31.2024.10.03.16.46.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Oct 2024 16:46:35 -0700 (PDT) Message-ID: <626a55fd-409d-a670-1677-0f58eb257b7f@HIDDEN> Date: Thu, 3 Oct 2024 16:46:35 -0700 MIME-Version: 1.0 Content-Language: en-US References: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> <87h74kes5l.fsf@HIDDEN> <87czf88yre.fsf@HIDDEN> <87ilozbivd.fsf@HIDDEN> <a388eeea-411a-7834-a104-d8fcb51d33dd@HIDDEN> <292942b6-4a7f-0002-2af4-210b32612ba1@HIDDEN> <CAG-eCj5OD_Hzv5A+ON9nuoE+Pwx2zdJrFBAQJu5iQkdNr5DMBg@HIDDEN> <381f9df9-4442-4580-17f5-6590f7326e3b@HIDDEN> <CAG-eCj5w_7ppJme8vYBY90wLOXQgaft1evrJGX4XAkNf7Rr9MA@HIDDEN> <18d536c3-13c7-f1cf-ab64-72ba7b8931dc@HIDDEN> <CAG-eCj7y93BB1zgoJN9_GWK9K30f-avQcBKgfiH7zdjzHGQ4pA@HIDDEN> <CAG-eCj5VtAGePhdjQb8qbkJUN93UPFLZ_1jJnju0MmwvL+rM4A@HIDDEN> <87msjlr4kb.fsf@HIDDEN> From: Jim Porter <jporterbugs@HIDDEN> In-Reply-To: <87msjlr4kb.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 10/3/2024 1:09 AM, Andreas Schwab wrote: > On Okt 02 2024, Jeff Kowalski wrote: > >> Recall we're still trying to get the "xdg-open file.txt" case to work >> correctly. > > This is not possible as long as eshell creates a new session for each > command and closes it immediately after the command exits. You can > observe the same effect if you run "xterm -e 'xdg-open file.txt'". I'm not sure there's a way to avoid creating a new session for each command, at least not without a bunch of changes to process.c (though if someone disagrees, I'd be happy for some pointers in the right direction). As a workaround, if you make sure that the I/O handles for "xdg-open" are all pipes, that should outsmart it, e.g.: echo | xdg-open <whatever> |& cat
X-Loop: help-debbugs@HIDDEN Subject: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under eshell Resent-From: Jeff Kowalski <jeff.kowalski@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 04 Oct 2024 02:35:02 +0000 Resent-Message-ID: <handler.56013.B56013.172800928317310 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim Porter <jporterbugs@HIDDEN> Cc: 56013 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN>, Andreas Schwab <schwab@HIDDEN> Received: via spool by 56013-submit <at> debbugs.gnu.org id=B56013.172800928317310 (code B ref 56013); Fri, 04 Oct 2024 02:35:02 +0000 Received: (at 56013) by debbugs.gnu.org; 4 Oct 2024 02:34:43 +0000 Received: from localhost ([127.0.0.1]:34175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1swY9S-0004V8-Vn for submit <at> debbugs.gnu.org; Thu, 03 Oct 2024 22:34:43 -0400 Received: from mail-wm1-f51.google.com ([209.85.128.51]:57725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jeff.kowalski@HIDDEN>) id 1swY9Q-0004Uq-Ug for 56013 <at> debbugs.gnu.org; Thu, 03 Oct 2024 22:34:41 -0400 Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-42e5e1e6d37so15240105e9.3 for <56013 <at> debbugs.gnu.org>; Thu, 03 Oct 2024 19:34:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728009212; x=1728614012; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5mCafL7a3Vzl3Uj8FdHteG5WmqoCCH2pYEWpnAuxsr4=; b=XzT0946X3op6tYmWVU6XHKu7G6dMJK9uyR3NMYLDts7jyv1CYqKSPDSTTBsX3p8ByJ s/1zB7NcXiSLfx8rDXLqHJrzyvoqubiYOn+v9iVGiDsnfZEIRZcNspZJQeC7WtWcdAik b03hptHJEF6rE+J+0ITGiBEu1wvswR1qoFP5blxLB2OeX8rVPJDCH0keHdqUGYE1IAjq y1r7cdT4oqTky2m5O6NHWX6mbwGG5Y/OEfB++jWrjwGzxcGQe/cvrc4/rlkFfxjkqz6p vg2/4MTQbaXHfxRSQLcQ+qeU7PuNsH0mnLDgcclu0Zw83Jvmy0kY3iFNMbAIDpCKslrY Gl4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728009212; x=1728614012; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5mCafL7a3Vzl3Uj8FdHteG5WmqoCCH2pYEWpnAuxsr4=; b=g6WQkcPps1NDTUB5GKHXgop/eTmIaqQGIKnueJyGB1X9OvrBBgcL1CQeZwZjOnx17U lHTH06lGXh9Gkym/g1lCAuo0z4Uv0yTGdtxREcu7qb7UZMi2JRrK8JtO0H7DM98At0W/ mypppXYTFfkNSavDe9fK7sdLeehpUwUo6jMTziycZ5oE82m9g32CO/ubtmAFQY14oyyh rlZuiFt8FdqNl0pYLPAbSV+rMpsK7peP4EOfMMy6ZNONrpHl+q45iOAhrm8aeCJVPxTd t9axGB/RQ9CamUfosXRkHszLLO9tr/6aCJYlwPZySOqv9ZRHFxMiyhMTri1mNV2HoBxG pk6g== X-Forwarded-Encrypted: i=1; AJvYcCVj9QcjAufUqjAoMohgqs0i5SAc4OQ9wWJkqxfvhzO22jnzjyIYwZ3kdwCFc9abA51ri/8LpA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzGkbT2lWjxijC4z66dJdh53by5YoWTOUgqpIknlmZH00614RBE p/F4SN8yiKZdgE8JCexCa2ny/0iQ0VXD8n3jIOqnwCFfpVTaXIxRRaKdJAbDvAL2hMECdRg5tkj ndH0+bttiUyp2aHa2cI+Tn2oGxaw= X-Google-Smtp-Source: AGHT+IHePtxLVwSK/nvdffWcduDHvDX2BHREcjBvqN59T9bwgV8eApVU0KFRUIN+F2WfsY4CSd5kyOoiMG9BxcJg4qI= X-Received: by 2002:a5d:5610:0:b0:374:c56c:fbb4 with SMTP id ffacd0b85a97d-37d0e769454mr767462f8f.22.1728009212216; Thu, 03 Oct 2024 19:33:32 -0700 (PDT) MIME-Version: 1.0 References: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> <87h74kes5l.fsf@HIDDEN> <87czf88yre.fsf@HIDDEN> <87ilozbivd.fsf@HIDDEN> <a388eeea-411a-7834-a104-d8fcb51d33dd@HIDDEN> <292942b6-4a7f-0002-2af4-210b32612ba1@HIDDEN> <CAG-eCj5OD_Hzv5A+ON9nuoE+Pwx2zdJrFBAQJu5iQkdNr5DMBg@HIDDEN> <381f9df9-4442-4580-17f5-6590f7326e3b@HIDDEN> <CAG-eCj5w_7ppJme8vYBY90wLOXQgaft1evrJGX4XAkNf7Rr9MA@HIDDEN> <18d536c3-13c7-f1cf-ab64-72ba7b8931dc@HIDDEN> <CAG-eCj7y93BB1zgoJN9_GWK9K30f-avQcBKgfiH7zdjzHGQ4pA@HIDDEN> <CAG-eCj5VtAGePhdjQb8qbkJUN93UPFLZ_1jJnju0MmwvL+rM4A@HIDDEN> <87msjlr4kb.fsf@HIDDEN> <626a55fd-409d-a670-1677-0f58eb257b7f@HIDDEN> In-Reply-To: <626a55fd-409d-a670-1677-0f58eb257b7f@HIDDEN> From: Jeff Kowalski <jeff.kowalski@HIDDEN> Date: Thu, 3 Oct 2024 19:33:19 -0700 Message-ID: <CAG-eCj5CSQOxK0L_ia=J1szOvxcXfAto=QA5hvEb3Z-OomZ-cA@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000434d8906239d7fd8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --000000000000434d8906239d7fd8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for the replies. I had hoped that there was indeed that change in process creation, but I can live with the current implementation. I am currently using a shortcut "o", defined as: ~ =CE=BB which o o is an alias, defined as "setsid -w gio open $*" Best regards, Jeff On Thu, Oct 3, 2024 at 4:46=E2=80=AFPM Jim Porter <jporterbugs@HIDDEN> w= rote: > On 10/3/2024 1:09 AM, Andreas Schwab wrote: > > On Okt 02 2024, Jeff Kowalski wrote: > > > >> Recall we're still trying to get the "xdg-open file.txt" case to work > >> correctly. > > > > This is not possible as long as eshell creates a new session for each > > command and closes it immediately after the command exits. You can > > observe the same effect if you run "xterm -e 'xdg-open file.txt'". > > I'm not sure there's a way to avoid creating a new session for each > command, at least not without a bunch of changes to process.c (though if > someone disagrees, I'd be happy for some pointers in the right > direction). As a workaround, if you make sure that the I/O handles for > "xdg-open" are all pipes, that should outsmart it, e.g.: > > echo | xdg-open <whatever> |& cat > --000000000000434d8906239d7fd8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Thanks for the replies.=C2=A0 I had hoped that there was i= ndeed that change in process creation, but I can live with the current impl= ementation.<div>I am currently using a shortcut "o", defined as:<= /div><div><br></div><div>~ =CE=BB which o<br>o is an alias, defined as &quo= t;setsid -w gio open $*"<br></div><div><br></div><div>Best regards,</d= iv><div>Jeff</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" cla= ss=3D"gmail_attr">On Thu, Oct 3, 2024 at 4:46=E2=80=AFPM Jim Porter <<a = href=3D"mailto:jporterbugs@HIDDEN">jporterbugs@HIDDEN</a>> wrote:<= br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e= x;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 10/3/2024 1:0= 9 AM, Andreas Schwab wrote:<br> > On Okt 02 2024, Jeff Kowalski wrote:<br> > <br> >> Recall we're still trying to get the "xdg-open file.txt&q= uot; case to work<br> >> correctly.<br> > <br> > This is not possible as long as eshell creates a new session for each<= br> > command and closes it immediately after the command exits.=C2=A0 You c= an<br> > observe the same effect if you run "xterm -e 'xdg-open file.t= xt'".<br> <br> I'm not sure there's a way to avoid creating a new session for each= <br> command, at least not without a bunch of changes to process.c (though if <b= r> someone disagrees, I'd be happy for some pointers in the right <br> direction). As a workaround, if you make sure that the I/O handles for <br> "xdg-open" are all pipes, that should outsmart it, e.g.:<br> <br> =C2=A0 =C2=A0echo | xdg-open <whatever> |& cat<br> </blockquote></div> --000000000000434d8906239d7fd8--
X-Loop: help-debbugs@HIDDEN Subject: bug#56013: 28.1; "gio open" and "xdg-open" fail silently under eshell Resent-From: Jim Porter <jporterbugs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 04 Oct 2024 03:15:02 +0000 Resent-Message-ID: <handler.56013.B56013.172801167925542 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 56013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jeff Kowalski <jeff.kowalski@HIDDEN> Cc: Andreas Schwab <schwab@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN>, 56013 <at> debbugs.gnu.org Received: via spool by 56013-submit <at> debbugs.gnu.org id=B56013.172801167925542 (code B ref 56013); Fri, 04 Oct 2024 03:15:02 +0000 Received: (at 56013) by debbugs.gnu.org; 4 Oct 2024 03:14:39 +0000 Received: from localhost ([127.0.0.1]:34195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1swYm6-0006dt-L9 for submit <at> debbugs.gnu.org; Thu, 03 Oct 2024 23:14:38 -0400 Received: from mail-pj1-f52.google.com ([209.85.216.52]:48338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1swYm5-0006dk-BI for 56013 <at> debbugs.gnu.org; Thu, 03 Oct 2024 23:14:37 -0400 Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-2e09a276ec6so1384453a91.0 for <56013 <at> debbugs.gnu.org>; Thu, 03 Oct 2024 20:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728011614; x=1728616414; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=rJPo0zCcOQ93WduGPh9LK28NEIp6PQAAYU84OBrmfOA=; b=eSocJ25I/UtCtuMZJODsk1Rk1tiXOFT3B4WQYlmuQRrOReRnKJLxyhv3VE80RcIRBP wXM9oVjdQpW1iQvjIYq0RN/cQBcw0H+iBN+ZrK7daRHt42ts5VjkXrMAfGnTtlGaysdC a4mshkqv/P9L7yz9BtrFb9jlzZ0jzJ+tvokJEV9XVh4xpV5Qzd+Ybu7HF64l3VYCowgF kovS2QoXILRk+GdIQgk5i8lqjVDZEXU1aPkytTgRuqc4IP00en0s8SkQG/xsJKQE1bHS K0MNMqhznANpMSwu+QasaghGwymmd3CzQ6XE1KclouGawECKeJHy0+mVtbw93je35r4i QRow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728011614; x=1728616414; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rJPo0zCcOQ93WduGPh9LK28NEIp6PQAAYU84OBrmfOA=; b=hTrU+TukNyDXwj3dBA86cjoVAeRGJ/1/WEQloy1mMuwVsQLwgKqZp/Ce9s2jNm01v3 tDfleLHi/g3aXrTRIDHaNDRy7gjlHiTGQMHYKx2ZxXTRJDAg4JiyCtVu8s3Vtkd0RjPN LK2lxRD81I+W5GYRDjgmxEOTIhHXpZ9nl0v37pdyFRrYF0gJ4f2QLoo4L+YoOaJLhxIM 04KTpmOMlbD49Z2xTRYwNK457mLdKlyHVQYWYGAw4b7tUZV1kSA+NuuOhmWpbguo+T1B rnqAKU3NkgSAvItVrteNLJz1/gJP1x7Jms3RMCLZDU6rgMhz4WDr/k7JUTeCkD4tVG5z WXMw== X-Gm-Message-State: AOJu0YyJxn3c0YSXBH0S6IXasbldMc5Z1Ld+esPlMbvrNDW8UuhTqSKc LGyrxEmN7g1PYU3Lv+Xf2PPFt4JRr0eKesx7JLv4OK5amRPAWo7Z X-Google-Smtp-Source: AGHT+IEXwnzoIJJnNV19i6pjZTl2GFwxPbBEl7aU+55VAZVQXpXWfc7zkjkqu1c50Mois2Klr6tKew== X-Received: by 2002:a17:90b:4a4c:b0:2e0:d1fa:fdd7 with SMTP id 98e67ed59e1d1-2e1e631e2c9mr1555661a91.27.1728011613738; Thu, 03 Oct 2024 20:13:33 -0700 (PDT) Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-2e1e85c13f9sm341238a91.6.2024.10.03.20.13.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Oct 2024 20:13:33 -0700 (PDT) Message-ID: <9c735ea9-1d2e-544a-31b4-97f6a565958a@HIDDEN> Date: Thu, 3 Oct 2024 20:13:33 -0700 MIME-Version: 1.0 Content-Language: en-US References: <CAG-eCj5Ro3ZZy-NL5n6swZBBvr1=7QwLOfnCQV0Z3Q7AWopfYw@HIDDEN> <87h74kes5l.fsf@HIDDEN> <87czf88yre.fsf@HIDDEN> <87ilozbivd.fsf@HIDDEN> <a388eeea-411a-7834-a104-d8fcb51d33dd@HIDDEN> <292942b6-4a7f-0002-2af4-210b32612ba1@HIDDEN> <CAG-eCj5OD_Hzv5A+ON9nuoE+Pwx2zdJrFBAQJu5iQkdNr5DMBg@HIDDEN> <381f9df9-4442-4580-17f5-6590f7326e3b@HIDDEN> <CAG-eCj5w_7ppJme8vYBY90wLOXQgaft1evrJGX4XAkNf7Rr9MA@HIDDEN> <18d536c3-13c7-f1cf-ab64-72ba7b8931dc@HIDDEN> <CAG-eCj7y93BB1zgoJN9_GWK9K30f-avQcBKgfiH7zdjzHGQ4pA@HIDDEN> <CAG-eCj5VtAGePhdjQb8qbkJUN93UPFLZ_1jJnju0MmwvL+rM4A@HIDDEN> <87msjlr4kb.fsf@HIDDEN> <626a55fd-409d-a670-1677-0f58eb257b7f@HIDDEN> <CAG-eCj5CSQOxK0L_ia=J1szOvxcXfAto=QA5hvEb3Z-OomZ-cA@HIDDEN> From: Jim Porter <jporterbugs@HIDDEN> In-Reply-To: <CAG-eCj5CSQOxK0L_ia=J1szOvxcXfAto=QA5hvEb3Z-OomZ-cA@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 10/3/2024 7:33 PM, Jeff Kowalski wrote: > Thanks for the replies. I had hoped that there was indeed that change > in process creation, but I can live with the current implementation. > I am currently using a shortcut "o", defined as: > > ~ λ which o > o is an alias, defined as "setsid -w gio open $*" I'd like to come up with a better solution for this eventually; the hacky way to do it would be to be able to identify when a command should just use pipes for the I/O handles instead of PTYs. I'd looked into that a while back but xdg-open specifically proved a bit tricky to get right thanks to some Eshell shebang handling mucking things up (as I recall). Probably fixable given enough work though...
Received: (at control) by debbugs.gnu.org; 11 Jan 2025 19:32:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 11 14:32:32 2025 Received: from localhost ([127.0.0.1]:44979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tWhDj-000894-RG for submit <at> debbugs.gnu.org; Sat, 11 Jan 2025 14:32:32 -0500 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]:49220) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1tWhDg-00088b-Ry; Sat, 11 Jan 2025 14:32:29 -0500 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-21634338cfdso26647195ad.2; Sat, 11 Jan 2025 11:32:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736623942; x=1737228742; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=STN80RkAZOJGeQ0+2bBcOR4uXMCUL137q6G0qAHF/Uo=; b=Awz2iAT4hnbX7fQkc2VdtCBLKqnYuCjtsZ08B3meEtmaAq1pMmHybO24RizPq4n742 r3qjNlZFwgi5Ov8yUuAdKi9J+lL4vFfswnPLGSfdzIPhfaCov+pdu9GE7G/sPWNuIEZT HQL+8bUUcNy6EIoxx5AL6jYvCvOj40FWZ0J2QcrHcnYN7rnofUoc9kjU0fx3+4z+2DmP kG0Ftb4PijGXWjStWs6achuLexbRnOeTPnr6tNC1RZFh9Whrq3sv0WFfx4aBllLGuPn1 0/13CcRJ4E5wG0/IWhmlScMwABAJj4LXc0EdFPBeBWe70Ap931rprIXu6YHVP/fF0g5R LXig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736623942; x=1737228742; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=STN80RkAZOJGeQ0+2bBcOR4uXMCUL137q6G0qAHF/Uo=; b=UYF/FmI+YIl44/blQZ1GPRWKor2cZ82daeo5jbZww5UQqDEAe02PL8rVCJ2PqjXSUR 7f0y4TndsVcAoq1lhiEbu9GGkLgVruJZZIzcJ/HqmakUM72b4x8LW0ogMkcVQLV6PltX F2kZU80tmbCOTURKmllWmnE7uWAJxqLvEVfs5M9j2IqbSRhk8ynlwfMmTEBfrEk6bOsu T86nZd0nYYMr3EX0Dl4VzTbrT0ewbMN47r7aZslNjzSHCJ2c229/jVfwqLZaDnjDJOuO 35ptS7wJhsXaEsYx+vNMp6IIC3+y7Bd2yPIRY33/rqAFPpDPZ+K3Pwd7LrCggxDDnxw9 S5OA== X-Forwarded-Encrypted: i=1; AJvYcCVk+PSs0RHlKGO6r8wX/8Eg+yhJj9E6rb438ooFyFTZWPatDmEddSoJnq5G4FT4LfKpBY18HV47TQ==@debbugs.gnu.org, AJvYcCWlE2iMUqYjR+U+uyvBsnKtRExZfYyP9Twzk5AW3G0a92dXspPE+0sTLW/ngvc1+tQIXYhfIQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yyt/L5AohcQtinvpC6RtSSzcsbPw+G2pVtCuxOkpLGOYdJlE5lm SDD5cPANsB3Jmof4vSz3yXwwu38sXVg+4aYwq6KzQ9wQXI1bGKia X-Gm-Gg: ASbGncsnHocFRHO2P7/AJZSh3iWaGPNLm+/5T/5klNHh0Y/fCCFQCtZ9b3Nh2xtQtoZ 6JXm4rrFu1LJEwP+ckAUnvoGGP33pRbIgVTr3m0i+hJeK6y6LBa1Th0+lQSlpQ8MYUQ9Vx33W1A 7pLTdTqvxlng7NqQi5u9bxk/0hiwmQV9LfmY7FsqStLeDCh2MwClP8RaoKUgIcegON/2hnVW4JH EIuN4y3E+20m+t82UpqhjCkwkkJlVDQnVI8+INa4zUXosHE1HbEUn0Nhdow5ugWwo6tBdPGlysv esU1p9Tym7H83rY/UgT9W/lNCkVIRWeOxQ== X-Google-Smtp-Source: AGHT+IE2Wfn9FbTCQfcrUX7+xqpfQPGWdyM+I8SfqH+b7hn07qq09EpYzVUpmeatE1/EnbSSSrZwvQ== X-Received: by 2002:a05:6a21:33aa:b0:1e1:c0d7:7502 with SMTP id adf61e73a8af0-1e88d306722mr26122966637.37.1736623942520; Sat, 11 Jan 2025 11:32:22 -0800 (PST) Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-72d4056a5fesm3323253b3a.48.2025.01.11.11.32.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Jan 2025 11:32:22 -0800 (PST) Message-ID: <f3f2c493-ae2d-98b7-917c-b89fb3c02c97@HIDDEN> Date: Sat, 11 Jan 2025 11:32:21 -0800 MIME-Version: 1.0 Subject: Re: bug#75304: 29.4; sshfs fails to mount when run by eshell and -f isn't passed Content-Language: en-US To: Richard Sent <richard@HIDDEN>, 75304 <at> debbugs.gnu.org References: <878qrsq4m6.fsf@HIDDEN> From: Jim Porter <jporterbugs@HIDDEN> In-Reply-To: <878qrsq4m6.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) merge 56013 75304 thanks On 1/2/2025 1:37 PM, Richard Sent wrote: > If I set process-connection-type to nil, sshfs works as expected. This > isn't ideal because it can cause breakage elsewhere (e.g. ripgrep). If that's the case, then this is just bug#56013, which you linked to. That's not fixed yet, and there's not a great general solution for it (at least not one without extensive changes to process.c, which I'd rather avoid). A workaround in Eshell would be to change process-connection-type based on the program name, but in my tests that interacts badly with shell scripts, so would require a bit more work to support things like xdg-open.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.