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