Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency
- Ed_P
- Contributor
- Posts: 8367
- 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
This might explain the problem.
Try a normal V5.0 AF run without the addon.
Ed
- Blaze
- DEV Team
- Posts: 3885
- 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
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.
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
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
- Ed_P
- Contributor
- Posts: 8367
- 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
No change.
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!!
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!!
Ed
- Blaze
- DEV Team
- Posts: 3885
- 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
I can't to reproduce this.
Can anybody else to confirm availability of these LibreOffice duplicate icons in the applications menu?
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
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
- Ed_P
- Contributor
- Posts: 8367
- 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
Just tried with V5.0 with
And NO double entries.
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.
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:~$
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.
Ed
Re: Libreoffice 6.1.x - fails to start Draw, Impress due to new Avahi dependency
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:
and
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.
By the way, the screenshots from you guys look fabulous! Nice wallpaper
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'`
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
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.
Lucky you. I tried it on Mate and the window manager and the panel crashed.Ed_P wrote: ↑03 Jan 2019, 06:48Just tried with V5.0 withAnd NO double entries.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:~$
By the way, the screenshots from you guys look fabulous! Nice wallpaper
- Ed_P
- Contributor
- Posts: 8367
- 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
Wow!! jssouza
Sounds like an easy fix.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.
By the way, the screenshots from you guys look fabulous! Nice wallpaper
Ed
- Ed_P
- Contributor
- Posts: 8367
- 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
Good news, bad news.
Good news: I ran this:
Activated the new module and got this:
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.
Still no Office Menu items.
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
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:~$
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:~$
Ed
- Ed_P
- Contributor
- Posts: 8367
- 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
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:~$
Ed
- Ed_P
- Contributor
- Posts: 8367
- 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
-update-
Ok got the menu situation figured out. 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?
Ok got the menu situation figured out. 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?
Ed
- Rava
- 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
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
Yours Rava
- Blaze
- DEV Team
- Posts: 3885
- 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
I'am wrote a simple script for fixing LO 6.2.x
Download libreoffice-6.2.0.3-3.x86_64-ru-5.0.xzm
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
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
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16