From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: Default application for org-reveal Date: Sat, 07 Jan 2017 11:39:37 +0100 Message-ID: <84k2a7m9w6.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPoPj-0005gR-3e for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 05:39:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPoPf-00029f-U2 for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 05:39:55 -0500 Received: from [195.159.176.226] (port=46824 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cPoPf-00028S-Mz for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 05:39:51 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cPoPV-0006oc-Rd for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 11:39:41 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi, Florian Lindner writes: > Hello, > > the Org Attach dispatcher offers a key "f" to open the attachment directory not in Emacs. > > (defun org-attach-reveal (&optional if-exists) > "Show the attachment directory of the current task. > This will attempt to use an external program to show the directory." > (interactive "P") > (let ((attach-dir (org-attach-dir (not if-exists)))) > (and attach-dir (org-open-file attach-dir)))) > > On my two systems this is the same a F, it opens in dired. xdg-open . uses dolphin to open inode/directory. How does Emacs/org determine which > application to use? How can I influence it? The documentation of `org-open-file' points to variable `org-file-apps'. You can customize `org-file-apps'. E.g. the entry [INS] [DEL] Cons-cell: Choice: [Value Menu] Links to a directory Choice: [Value Menu] Command: firefox %s stands for opening directories in firefox. Ciao Marco