* Opening a LibreOffice file
@ 2017-01-02 20:49 Karl Voit
0 siblings, 0 replies; only message in thread
From: Karl Voit @ 2017-01-02 20:49 UTC (permalink / raw)
To: emacs-orgmode
Hi!
I am unsure why but with my configuration, I can't open a
LibreOffice odp file.
By default, Emacs was showing me the content of the odp file as a
ZIP file, which is technically true but not helpful.
John Kitchin suggested setting org-file-apps manually. Here are the
results:
(setq org-file-apps '(
("\\.odp" . "/usr/bin/xdg-open %s")
;; Running xdg-open /home/user/path/2008-06-17_Bachelor_II.odp...done -> nothing opens
;;("\\.odp" . "/usr/lib/libreoffice/program/soffice %s") ;; opens LibreOffice with General I/O Error
;;("\\.odp\\'" . default) ;; runs odp2txt without any resulting file
;;("\\.odp" . "/home/vk/myodp.sh %s") ;; see below
("\\.png\\'" . default) ;; works: geeqie
("\\.jpg\\'" . default) ;; works: geeqie
("\\.jpeg\\'" . default) ;; works: geeqie
(auto-mode . emacs) ;; whatever ;-)
("\\.pdf\\'" . default) ;; works: okular
))
As you can see, graphic files and PDF files works as expected.
The file "/home/user/path/2008-06-17_Bachelor_II.odp" exists and works with
manually invoking "xdg-open" or "libreoffice".
The configuration with "default", "open", or "xdg-open" writes a success
message but nothing happens: no app opens.
As you can see, I also tried a self-written wrapper script to debug the
situation:
,----[ myodp.sh ]
| #!/bin/sh
|
| echo "===========================================" >> ~/myodp.log
| echo "${1}" >> ~/myodp.log
| echo "DISPLAY: $DISPLAY" >> ~/myodp.log
| date >> ~/myodp.log
| /usr/bin/xdg-open "${1}" 2>&1 >>~/myodp.log
| date >> ~/myodp.log
| echo "end" >> ~/myodp.log
`----
Its log output does not look suspicious nor is an error logged. The two date
outputs are always to the same second. No time-out or similar in between.
,----[ content of myodp.log ]
| ===========================================
| /home/user/path/2008-06-17_Bachelor_II.odp
| DISPLAY: :0.0
| Mon Jan 2 20:55:05 CET 2017
| Mon Jan 2 20:55:05 CET 2017
| end
`----
Do you have an idea what I can do to kick-start LibreOffice?
--
get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode:
> get Memacs from https://github.com/novoid/Memacs <
Personal Information Management > http://Karl-Voit.at/tags/pim/
Emacs-related > http://Karl-Voit.at/tags/emacs/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-02 20:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-02 20:49 Opening a LibreOffice file Karl Voit
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.