From: Karl Voit <devnull@Karl-Voit.at>
To: emacs-orgmode@gnu.org
Subject: Opening a LibreOffice file
Date: Mon, 2 Jan 2017 21:49:00 +0100 [thread overview]
Message-ID: <2017-01-02T21-38-45@devnull.Karl-Voit.at> (raw)
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/
reply other threads:[~2017-01-02 20:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2017-01-02T21-38-45@devnull.Karl-Voit.at \
--to=devnull@karl-voit.at \
--cc=emacs-orgmode@gnu.org \
--cc=news1142@Karl-Voit.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).