Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] libreoffice-fresh wrong binary referenced in desktop files (Read 271 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] libreoffice-fresh wrong binary referenced in desktop files

Dear Artix devs, I have the latest libreoffice-fresh installed
Code: [Select]
$ pacman -Q libreoffice
libreoffice-fresh 7.5.2.2-1.1
Unfortunately, the *.desktop files referenced from /usr/share/applications
Code: [Select]
$ ls -l /usr/share/applications/ | grep libreoffice
lrwxrwxrwx 1 root root    43 Apr  1 23:44 libreoffice-base.desktop -> /usr/lib/libreoffice/share/xdg/base.desktop
lrwxrwxrwx 1 root root    43 Apr  1 23:44 libreoffice-calc.desktop -> /usr/lib/libreoffice/share/xdg/calc.desktop
lrwxrwxrwx 1 root root    43 Apr  1 23:44 libreoffice-draw.desktop -> /usr/lib/libreoffice/share/xdg/draw.desktop
lrwxrwxrwx 1 root root    46 Apr  1 23:44 libreoffice-impress.desktop -> /usr/lib/libreoffice/share/xdg/impress.desktop
lrwxrwxrwx 1 root root    43 Apr  1 23:44 libreoffice-math.desktop -> /usr/lib/libreoffice/share/xdg/math.desktop
lrwxrwxrwx 1 root root    50 Apr  1 23:44 libreoffice-startcenter.desktop -> /usr/lib/libreoffice/share/xdg/startcenter.desktop
lrwxrwxrwx 1 root root    45 Apr  1 23:44 libreoffice-writer.desktop -> /usr/lib/libreoffice/share/xdg/writer.desktop
lrwxrwxrwx 1 root root    49 Apr  1 23:44 libreoffice-xsltfilter.desktop -> /usr/lib/libreoffice/share/xdg/xsltfilter.desktop
contain a wrong binary in the Exec section
Code: [Select]
$ grep -r Exec /usr/lib/libreoffice/share/xdg/
/usr/lib/libreoffice/share/xdg/calc.desktop:Exec=libreoffice7.5 --calc %U
/usr/lib/libreoffice/share/xdg/calc.desktop:Exec=libreoffice7.5 --calc
/usr/lib/libreoffice/share/xdg/impress.desktop:Exec=libreoffice7.5 --impress %U
/usr/lib/libreoffice/share/xdg/impress.desktop:Exec=libreoffice7.5 --impress
/usr/lib/libreoffice/share/xdg/math.desktop:Exec=libreoffice7.5 --math %U
/usr/lib/libreoffice/share/xdg/math.desktop:Exec=libreoffice7.5 --math
/usr/lib/libreoffice/share/xdg/base.desktop:Exec=libreoffice7.5 --base %U
/usr/lib/libreoffice/share/xdg/base.desktop:Exec=libreoffice7.5 --base
/usr/lib/libreoffice/share/xdg/writer.desktop:Exec=libreoffice7.5 --writer %U
/usr/lib/libreoffice/share/xdg/writer.desktop:Exec=libreoffice7.5 --writer
/usr/lib/libreoffice/share/xdg/startcenter.desktop:Exec=libreoffice7.5 %U
/usr/lib/libreoffice/share/xdg/startcenter.desktop:Exec=libreoffice7.5 --writer
/usr/lib/libreoffice/share/xdg/startcenter.desktop:Exec=libreoffice7.5 --calc
/usr/lib/libreoffice/share/xdg/startcenter.desktop:Exec=libreoffice7.5 --impress
/usr/lib/libreoffice/share/xdg/startcenter.desktop:Exec=libreoffice7.5 --draw
/usr/lib/libreoffice/share/xdg/startcenter.desktop:Exec=libreoffice7.5 --base
/usr/lib/libreoffice/share/xdg/startcenter.desktop:Exec=libreoffice7.5 --math
/usr/lib/libreoffice/share/xdg/xsltfilter.desktop:Exec=libreoffice7.5 %U
/usr/lib/libreoffice/share/xdg/draw.desktop:Exec=libreoffice7.5 --draw %U
/usr/lib/libreoffice/share/xdg/draw.desktop:Exec=libreoffice7.5 --draw
Notice libreoffice7.5 vs libreoffice, which is present in the system
Code: [Select]
$ which libreoffice7.5
which: no libreoffice7.5 in (/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
$ which libreoffice
/usr/bin/libreoffice

Temporarily resolved by a quick "link" fix
Code: [Select]
$ cd /usr/bin
ln -s libreoffice libreoffice7.5

Having it correctly in the system would be much appreciated.
Many thanks in advance.
Zeroflag

Re: libreoffice-fresh wrong binary referenced in desktop files

Reply #1
Many thanks. The problem has been resolved.
Code: [Select]
$ grep -r Exec /usr/lib/libreoffice/share/xdg/
/usr/lib/libreoffice/share/xdg/calc.desktop:Exec=libreoffice --calc %U
/usr/lib/libreoffice/share/xdg/calc.desktop:Exec=libreoffice --calc
/usr/lib/libreoffice/share/xdg/impress.desktop:Exec=libreoffice --impress %U
/usr/lib/libreoffice/share/xdg/impress.desktop:Exec=libreoffice --impress
/usr/lib/libreoffice/share/xdg/math.desktop:Exec=libreoffice --math %U
/usr/lib/libreoffice/share/xdg/math.desktop:Exec=libreoffice --math
/usr/lib/libreoffice/share/xdg/base.desktop:Exec=libreoffice --base %U
/usr/lib/libreoffice/share/xdg/base.desktop:Exec=libreoffice --base
/usr/lib/libreoffice/share/xdg/writer.desktop:Exec=libreoffice --writer %U
/usr/lib/libreoffice/share/xdg/writer.desktop:Exec=libreoffice --writer
/usr/lib/libreoffice/share/xdg/startcenter.desktop:Exec=libreoffice %U
/usr/lib/libreoffice/share/xdg/startcenter.desktop:Exec=libreoffice --writer
/usr/lib/libreoffice/share/xdg/startcenter.desktop:Exec=libreoffice --calc
/usr/lib/libreoffice/share/xdg/startcenter.desktop:Exec=libreoffice --impress
/usr/lib/libreoffice/share/xdg/startcenter.desktop:Exec=libreoffice --draw
/usr/lib/libreoffice/share/xdg/startcenter.desktop:Exec=libreoffice --base
/usr/lib/libreoffice/share/xdg/startcenter.desktop:Exec=libreoffice --math
/usr/lib/libreoffice/share/xdg/xsltfilter.desktop:Exec=libreoffice %U
/usr/lib/libreoffice/share/xdg/draw.desktop:Exec=libreoffice --draw %U
/usr/lib/libreoffice/share/xdg/draw.desktop:Exec=libreoffice --draw