Page 3 of 3

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

Posted: 01 Jan 2019, 17:18
by Ed_P
AF mode.

Image

And I still have the issue. :(

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

Posted: 01 Jan 2019, 17:56
by Ed_P
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

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

Posted: 01 Jan 2019, 19:37
by Blaze
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.

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

Posted: 01 Jan 2019, 22:43
by Ed_P
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:

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

Posted: 02 Jan 2019, 08:48
by Blaze
I can't to reproduce this.
Can anybody else to confirm availability of these LibreOffice duplicate icons in the applications menu?

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

Posted: 03 Jan 2019, 06:48
by Ed_P
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:

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

Posted: 04 Jan 2019, 05:32
by jssouza
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 ;)

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

Posted: 04 Jan 2019, 06:04
by Ed_P
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 ;)
:)

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

Posted: 04 Jan 2019, 18:35
by Ed_P
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.

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

Posted: 05 Jan 2019, 04:23
by Ed_P
Suggestions?

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

Posted: 05 Jan 2019, 17:39
by Ed_P
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:

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

Posted: 06 Jan 2019, 04:11
by Ed_P
-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:

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

Posted: 07 Jan 2019, 16:12
by Ed_P
:oops: oops

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

Posted: 30 Jan 2019, 19:36
by Rava
Can someone please confirm:

Code: Select all

8309951d4c40c07aec61413ce6ede5b9  avahi-0.6.32-x86_64-1_SBo.xzm
f8679f1c9176161b6747b3c43b808f9e  libavahi-client-and-common.xzm

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

Posted: 10 Feb 2019, 16:42
by Blaze
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