From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: howto open attachment directory in external program? Date: Fri, 18 Jun 2010 15:32:47 -0400 Message-ID: <87hbl02l28.fsf@fastmail.fm> References: <87wrtwcf76.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=54129 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPhG4-00010V-Qe for emacs-orgmode@gnu.org; Fri, 18 Jun 2010 15:29:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OPhG2-0004iQ-Qs for emacs-orgmode@gnu.org; Fri, 18 Jun 2010 15:29:44 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:44146) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPhG2-0004iM-P5 for emacs-orgmode@gnu.org; Fri, 18 Jun 2010 15:29:42 -0400 In-Reply-To: <87wrtwcf76.fsf@fastmail.fm> (Matt Lundin's message of "Fri, 18 Jun 2010 15:29:17 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Kestutis Matonis Cc: emacs-orgmode@gnu.org Matt Lundin writes: > Kestutis Matonis writes: > >> in .mailcap i have set-upped: >> >> inode/directory-locked; pcmanfm2 '%s'; >> inode/directory; pcmanfm2 '%s'; >> text/directory; pcmanfm2 '%s'; >> >> but when I'm trying to open attachments directory, it is still opened >> in emacs. > > I'm not sure why org-attach is not respecting the mailcap settings. But > for a simple solution you could add a setting to org-file-apps: > > (add-to-list 'org-file-apps '(directory . "pcmanfm2")) > Oops. The above line should read: (add-to-list 'org-file-apps '(directory . "pcmanfm2 %s")) Hope this helps. Matt