* bug#36728: LibreOffice fails to open hyperlinks
@ 2019-07-19 5:10 Chris Marusich
2019-07-19 5:17 ` Chris Marusich
0 siblings, 1 reply; 3+ messages in thread
From: Chris Marusich @ 2019-07-19 5:10 UTC (permalink / raw)
To: 36728
[-- Attachment #1: Type: text/plain, Size: 424 bytes --]
Hi,
LibreOffice cannot open hyperlinks on Guix System. This is because it
attempts to invoke /usr/bin/xdg-open, which does not exist. For
example, if you launch "libreoffice" on the command line and then
attempt to open a hyperlink via Control + Left Click in Calc, you'll get
the following message:
sh: /usr/bin/xdg-open: No such file or directory
I have a fix and will post it in a moment.
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#36728: LibreOffice fails to open hyperlinks
2019-07-19 5:10 bug#36728: LibreOffice fails to open hyperlinks Chris Marusich
@ 2019-07-19 5:17 ` Chris Marusich
2019-07-21 23:50 ` Chris Marusich
0 siblings, 1 reply; 3+ messages in thread
From: Chris Marusich @ 2019-07-19 5:17 UTC (permalink / raw)
To: 36728
[-- Attachment #1.1: Type: text/plain, Size: 490 bytes --]
Chris Marusich <cmmarusich@gmail.com> writes:
> I have a fix and will post it in a moment.
I've verified that the attached patch fixes the issue. It took over 4
hours to build libreoffice on 1 core on my x200 laptop (not including
the time it took to build dependencies). I would normally push this
directly to master because no packages depend on libreoffice, but the
long build time gave me pause.
Should I commit this change to master or to somewhere else?
--
Chris
[-- Attachment #1.2: 0001-gnu-libreoffice-Fix-xdg-open-absolute-paths.patch --]
[-- Type: text/x-patch, Size: 2441 bytes --]
From fd8875e9c8c7403f979617aa689661e2c33e36ed Mon Sep 17 00:00:00 2001
From: Chris Marusich <cmmarusich@gmail.com>
Date: Mon, 15 Jul 2019 22:42:07 -0700
Subject: [PATCH] gnu: libreoffice: Fix xdg-open absolute paths.
Fixes: <https://bugs.gnu.org/36728>.
* gnu/packages/libreoffice.scm (libreoffice) [inputs]: Add xdg-utils.
[arguments][#:phases][prepare-src]: Replace hard-coded absolute paths to
xdg-open in the source with the path to xdg-open in the xdg-utils input.
---
gnu/packages/libreoffice.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm
index 9f5bedd913..026ce92aab 100644
--- a/gnu/packages/libreoffice.scm
+++ b/gnu/packages/libreoffice.scm
@@ -11,6 +11,7 @@
;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2018 Jonathan Brielmaier <jonathan.brielmaier@web.de>
+;;; Copyright © 2019 Chris Marusich <cmmarusich@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -53,6 +54,7 @@
#:use-module (gnu packages documentation)
#:use-module (gnu packages flex)
#:use-module (gnu packages fontutils)
+ #:use-module (gnu packages freedesktop)
#:use-module (gnu packages ghostscript)
#:use-module (gnu packages gl)
#:use-module (gnu packages glib)
@@ -1045,6 +1047,7 @@ converting QuarkXPress file format. It supports versions 3.1 to 4.1.")
("unixodbc" ,unixodbc)
("unzip" ,unzip)
("vigra" ,vigra)
+ ("xdg-utils" ,xdg-utils)
("xmlsec" ,xmlsec-nss)
("zip" ,zip)))
(arguments
@@ -1077,6 +1080,13 @@ converting QuarkXPress file format. It supports versions 3.1 to 4.1.")
(assoc-ref inputs "gpgme")
"/include/gpgme++")))
+ ;; /usr/bin/xdg-open doesn't exist on Guix System.
+ (substitute* '("shell/source/unix/exec/shellexec.cxx"
+ "shell/source/unix/misc/senddoc.sh")
+ (("/usr/bin/xdg-open")
+ (string-append (assoc-ref inputs "xdg-utils")
+ "/bin/xdg-open")))
+
#t))
(add-after 'install 'bin-and-desktop-install
;; Create 'soffice' and 'libreoffice' symlinks to the executable
--
2.20.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#36728: LibreOffice fails to open hyperlinks
2019-07-19 5:17 ` Chris Marusich
@ 2019-07-21 23:50 ` Chris Marusich
0 siblings, 0 replies; 3+ messages in thread
From: Chris Marusich @ 2019-07-21 23:50 UTC (permalink / raw)
To: 36728-close
[-- Attachment #1: Type: text/plain, Size: 657 bytes --]
Chris Marusich <cmmarusich@gmail.com> writes:
> Chris Marusich <cmmarusich@gmail.com> writes:
>
>> I have a fix and will post it in a moment.
>
> I've verified that the attached patch fixes the issue. It took over 4
> hours to build libreoffice on 1 core on my x200 laptop (not including
> the time it took to build dependencies). I would normally push this
> directly to master because no packages depend on libreoffice, but the
> long build time gave me pause.
>
> Should I commit this change to master or to somewhere else?
I've committed this to the master branch as
afb986e77cd669c2f21953f501f7893237730ca7. Closing.
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-21 23:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-19 5:10 bug#36728: LibreOffice fails to open hyperlinks Chris Marusich
2019-07-19 5:17 ` Chris Marusich
2019-07-21 23:50 ` Chris Marusich
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.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).