From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Set org-file-apps to open a *.doc file under linux with Word ? Date: Thu, 05 Dec 2013 20:48:32 +0100 Message-ID: <87siu7cc4v.fsf@Rainer.invalid> References: <1981916.uUsSrgBaOc@linux-j9m3.site> <87wqjk2o5l.fsf@alphaville.bos.redhat.com> <3075365.i2Pe7OrQSu@linux-j9m3.site> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Voeur-0006PU-Jt for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 14:48:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Voeuk-0005Kg-PO for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 14:48:53 -0500 Received: from plane.gmane.org ([80.91.229.3]:43096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Voeuk-0005KQ-Az for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 14:48:46 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Voeuh-0003VE-PM for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 20:48:43 +0100 Received: from pd9eb27e3.dip0.t-ipconnect.de ([217.235.39.227]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Dec 2013 20:48:43 +0100 Received: from Stromeko by pd9eb27e3.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Dec 2013 20:48:43 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org AW writes: > #!/bin/bash > > env WINEPREFIX="/home/AW/.wine-office" wine "C:\windows\command\start.exe" /Unix > "/home/AW/.wine-office/dosdevices/c:/users/AW/Start Menu/Programs/Microsoft > Office/Microsoft Word 2010.lnk" > > On the command line "word.sh" works. > > But in .emacs the lines > > (add-to-list 'org-file-apps > '("\\.docx" . "exec /home/AW/bin/word.sh %s")) > > don't. What am I doing in the wrong way? "exec" is a shell built-in. Try: --8<---------------cut here---------------start------------->8--- #!/bin/sh exec WINEPREFIX="/home/AW/.wine-office" \ wine "C:\windows\command\start.exe" /Unix \ "/home/AW/.wine-office/dosdevices/c:/users/AW/Start Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk" --8<---------------cut here---------------end--------------->8--- Then drop the exec from the emacs association to docx. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra