Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency

Post#31 by Ed_P » 01 Jan 2019, 17:18

AF mode.

Image

And I still have the issue. :(
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency

Post#32 by Ed_P » 01 Jan 2019, 17:56

This might explain the problem.
Blaze wrote:
01 Jan 2019, 17:11
My configuration is 003-cinnamon_x86_64-20181230.xzm + porteus-5.0-x86_64-20181224.iso + kernel 4.19.13 by neko
Try a normal V5.0 AF run without the addon. :x
Ed

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency

Post#33 by Blaze » 01 Jan 2019, 19:37

Is is Russian version (about libreoffice-6.1.4-x86_64-ru-5.0.xzm).
Better if you try this bunch libreoffice-6.1.4-x86_64-1_SBo.xzm - active link + libavahi-client-and-common.xzm

Kernel cannot to do effect as double icons.
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency

Post#34 by Ed_P » 01 Jan 2019, 22:43

No change.

Image

But...

I boot V5.0 in AF mode.
I use Nemo to go to the folder the two LibreOffice files are in.
I Activate the libavahi module.
I Activate the libreoffice module.
I check Menu>Office and I see single entries for each option!!
I then used Nemo to find and display the /mnt/live/memory/images folder.
I reopened the Menu>Office window to do a screen print and the double entries are back!! :wall:
Ed

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency

Post#35 by Blaze » 02 Jan 2019, 08:48

I can't to reproduce this.
Can anybody else to confirm availability of these LibreOffice duplicate icons in the applications menu?
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency

Post#36 by Ed_P » 03 Jan 2019, 06:48

Just tried with V5.0 with

Code: Select all

guest@porteus:~$ ls  /mnt/sda6/porteus5.0/003Modules/*.xzm
/mnt/sda6/porteus5.0/003Modules/003-mate_x86_64-20181226.xzm*
guest@porteus:~$ 
And NO double entries. :thumbsup:

I couldn't do a screen print with Mate because apparently the Prt Scr key doesn't work when the Menu is displayed.

So, when I run LibreOffice with Cinnamon, V4.0 or V5.0 I get the dupes. But when you run with Cinnamon and V5.0 you don't. :crazy:
Ed

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

Re: Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency

Post#37 by jssouza » 04 Jan 2019, 05:32

Looks like the double menu entries are coming because of
1. The module creates symlink from /opt/libreoffice6.1/share/xdg/ to /usr/share/applications
2. The activate script, which collects all .desktop files from the module and installs them using desktop-file-install. The lines from /usr/bin/activate:

Code: Select all

desktopfiles=`unsquashfs -l $1 | grep "\.desktop" | sed 's/squashfs-root//g'`
and

Code: Select all

for dfile in $desktopfiles; do
	desktop-file-install $mlmi/${modname}${dfile} >/dev/null 2>&1
	xdg-desktop-menu install $mlmi/${modname}${dfile} >/dev/null 2>&1
done
So, all .desktop files from /opt/libreoffice6.1/share/xdg/ are installed in /usr/share/applications, resulting in the double entries.

Try loading libreoffice module at boot time itself, you should not get the double entries.

Fixing this would be interesting. If the symlinks to /opt/libreoffice6.1/share/xdg/*.desktop files are removed from the module, then it would work if the module is activated, with single menu entries. But loading the module at boot time would not work.
Maybe rename /opt/libreoffice6.1/share/xdg/*.desktop file extensions to something else , but symlink them to /usr/share/applications as .desktop file extensions in the module. This way, activate script wont collect them and create double entries.
Ed_P wrote:
03 Jan 2019, 06:48
Just tried with V5.0 with

Code: Select all

guest@porteus:~$ ls  /mnt/sda6/porteus5.0/003Modules/*.xzm
/mnt/sda6/porteus5.0/003Modules/003-mate_x86_64-20181226.xzm*
guest@porteus:~$ 
And NO double entries. :thumbsup:
Lucky you. I tried it on Mate and the window manager and the panel crashed.

By the way, the screenshots from you guys look fabulous! Nice wallpaper ;)

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency

Post#38 by Ed_P » 04 Jan 2019, 06:04

Wow!! :shock: :worthy: jssouza
jssouza wrote:
04 Jan 2019, 05:32
Fixing this would be interesting. If the symlinks to /opt/libreoffice6.1/share/xdg/*.desktop files are removed from the module, then it would work if the module is activated, with single menu entries. But loading the module at boot time would not work.
:crazy:
Maybe rename /opt/libreoffice6.1/share/xdg/*.desktop file extensions to something else , but symlink them to /usr/share/applications as .desktop file extensions in the module. This way, activate script wont collect them and create double entries.
Sounds like an easy fix. :good:
By the way, the screenshots from you guys look fabulous! Nice wallpaper ;)
:)
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency

Post#39 by Ed_P » 04 Jan 2019, 18:35

Good news, bad news.

Good news: I ran this:

Code: Select all

#!/bin/bash

txtcyan=${txtbld}$(tput setaf 6)  # Bold Cyan
rst=$(tput sgr0)                  # Reset
function cyan() {
  echo -E "$1" $txtcyan
}
if [ `whoami` != "root" ]; then
   cyan "Enter root's password"
   su -c "sh $0 $1"
   exit
fi
echo $rst

MOD=/mnt/sda6/porteus4.0/Optional/libreoffice-6.1.4-x86_64-ru-5.0

echo Edit files in $MOD
read

cd $MOD/opt/libreoffice6.1/share/xdg
ls 
#mv  *.desktop       *.lnk
mv  base.*          base.lnk
mv  draw.*          draw.lnk
mv  math.*          math.lnk
mv  writer.*        writer.lnk
mv  calc.*          calc.lnk
mv  impress.*       impress.lnk
mv  startcenter.*   startcenter.lnk
mv  xsltfilter.*    xsltfilter.lnk
ls 
read

dir2xzm $MOD /home/guest/libreoffice-test.xzm
Activated the new module and got this:

Code: Select all

guest@porteus:~$ ls /usr/share/applications/libre*
/usr/share/applications/libreoffice6.1-base.desktop@
/usr/share/applications/libreoffice6.1-calc.desktop@
/usr/share/applications/libreoffice6.1-draw.desktop@
/usr/share/applications/libreoffice6.1-impress.desktop@
/usr/share/applications/libreoffice6.1-math.desktop@
/usr/share/applications/libreoffice6.1-startcenter.desktop@
/usr/share/applications/libreoffice6.1-writer.desktop@
/usr/share/applications/libreoffice6.1-xsltfilter.desktop@
guest@porteus:~$ 
NO double entries in the Menu. :)

Bad news:

NO Office Menu entries at all. :(

Apparently I need to add new sym links.


-update-

Adding this to my script didn't help.

Code: Select all

ln -s base.*        $MOD/usr/share/applications/base.desktop
ln -s draw.*        $MOD/usr/share/applications/draw.desktop
ln -s math.*        $MOD/usr/share/applications/math.desktop
ln -s writer.*      $MOD/usr/share/applications/writer.desktop
ln -s calc.*        $MOD/usr/share/applications/calc.desktop
ln -s impress.*     $MOD/usr/share/applications/impress.desktop
ln -s startcenter.* $MOD/usr/share/applications/startcenter.desktop
ln -s xsltfilter.*  $MOD/usr/share/applications/xsltfilter.desktop

Code: Select all

guest@porteus:~$ ls /mnt/sda6/porteus4.0/Optional/libreoffice-6.1.4-x86_64-ru-5.0/usr/share/applications/
base.desktop@                    libreoffice6.1-math.desktop@
calc.desktop@                    libreoffice6.1-startcenter.desktop@
draw.desktop@                    libreoffice6.1-writer.desktop@
impress.desktop@                 libreoffice6.1-xsltfilter.desktop@
libreoffice6.1-base.desktop@     math.desktop@
libreoffice6.1-calc.desktop@     startcenter.desktop@
libreoffice6.1-draw.desktop@     writer.desktop@
libreoffice6.1-impress.desktop@  xsltfilter.desktop@
guest@porteus:~$ 
Still no Office Menu items.
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency

Post#40 by Ed_P » 05 Jan 2019, 04:23

Suggestions?
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency

Post#41 by Ed_P » 05 Jan 2019, 17:39

jssouza wrote:
04 Jan 2019, 05:32
Maybe rename /opt/libreoffice6.1/share/xdg/*.desktop file extensions to something else , but symlink them to /usr/share/applications as .desktop file extensions in the module. This way, activate script wont collect them and create double entries.
hmmm The starting point.

Code: Select all

guest@porteus:~$ ls -lght /mnt/sda6/porteus4.0/Optional/libreoffice-6.1.4-x86_64-ru-5.0/usr/share/applications/
total 4.0K
lrwxrwxrwx 1 root 104 Jan  4 18:32 libreoffice6.1-xsltfilter.desktop -> /opt/libreoffice6.1/share/xdg/xsltfilter.desktop
lrwxrwxrwx 1 root  96 Jan  4 18:32 libreoffice6.1-writer.desktop -> /opt/libreoffice6.1/share/xdg/writer.desktop
lrwxrwxrwx 1 root 106 Jan  4 18:32 libreoffice6.1-startcenter.desktop -> /opt/libreoffice6.1/share/xdg/startcenter.desktop
lrwxrwxrwx 1 root  92 Jan  4 18:32 libreoffice6.1-math.desktop -> /opt/libreoffice6.1/share/xdg/math.desktop
lrwxrwxrwx 1 root  98 Jan  4 18:32 libreoffice6.1-impress.desktop -> /opt/libreoffice6.1/share/xdg/impress.desktop
lrwxrwxrwx 1 root  92 Jan  4 18:32 libreoffice6.1-draw.desktop -> /opt/libreoffice6.1/share/xdg/draw.desktop
lrwxrwxrwx 1 root  92 Jan  4 18:32 libreoffice6.1-calc.desktop -> /opt/libreoffice6.1/share/xdg/calc.desktop
lrwxrwxrwx 1 root  92 Jan  4 18:32 libreoffice6.1-base.desktop -> /opt/libreoffice6.1/share/xdg/base.desktop
guest@porteus:~$ 
I think if I rename /opt/libreoffice6.1/share/xdg/*.desktop file extensions to something else the links that need to be changed are the ones in /usr/share/applications/. :hmmm:
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency

Post#42 by Ed_P » 06 Jan 2019, 04:11

-update-

Ok got the menu situation figured out. :good: Deactivating the module still leaves all the Menu links though and clicking on them does nothing.

A new problem, LibreOffice takes over file extension associations including the ones nemo uses for Displaying a file. How do I override that? :Search:
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency

Post#43 by Ed_P » 07 Jan 2019, 16:12

:oops: oops
Ed

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency

Post#44 by Rava » 30 Jan 2019, 19:36

Can someone please confirm:

Code: Select all

8309951d4c40c07aec61413ce6ede5b9  avahi-0.6.32-x86_64-1_SBo.xzm
f8679f1c9176161b6747b3c43b808f9e  libavahi-client-and-common.xzm
Cheers!
Yours Rava

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency

Post#45 by Blaze » 10 Feb 2019, 16:42

I'am wrote a simple script for fixing LO 6.2.x

Code: Select all

#!/bin/bash
# If you use official LibreOffice 6.1.x (or higher) rpm.tar.gz package -
# need to drop avahi and wayland dependences.

# set SAL_USE_VCLPLUGIN=gtk
LO=$(find /opt/libreoffice*/program -name soffice | awk 'NR==1 {print $0}')
sed -i -e '/^#\ restore/i# Prefer GTK2\nexport SAL_USE_VCLPLUGIN=${SAL_USE_VCLPLUGIN:-gtk}\n' $LO

# built two dummy/empty libraries
cd $(echo $LO | sed 's|soffice||')
gcc -shared -o libavahi-client.so.3 -x c - < /dev/null
gcc -shared -o libavahi-common.so.3 -x c - < /dev/null
echo 'Done!'
unset LO
Download libreoffice-6.2.0.3-3.x86_64-ru-5.0.xzm
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Post Reply