You are not logged in.

#1 2009-09-01 08:28:23

Garret
Member
From: Palermo, Italy
Registered: 2006-07-09
Posts: 172

Openoffice desktop entries in gnome menu are wrong after updating

I updated to the new version of Openoffice (openoffice-base 3.1.1-1).
Now in gnome menu all desktop entries of openoffice suite are wrong. For example the writer entry is /opt/openoffice/program/soffice -writer

[garret@desktop .dnsomatic-0.1.2]$ /opt/openoffice/program/soffice
bash: /opt/openoffice/program/soffice: No such file or directory

I have to give soffice --writer to start the program.
Why didn't the package correct these entries?

The only solution is to edit each entry manually?

Offline

#2 2009-09-01 09:07:23

majiq
Member
Registered: 2009-03-06
Posts: 259

Re: Openoffice desktop entries in gnome menu are wrong after updating

There's a part of the PKGBUILD that's supposed to take care of this:

        sed -i -e 's|Exec=openoffice.org3|Exec=/usr/bin/soffice|g' *.desktop || return 1
        sed -i -e 's|Exec=/usr/bin/soffice-printeradmin|Exec=/usr/bin/spadmin|g' printeradmin.desktop || return 1
        # fix exec commands in shortcuts for Xfce menu
        sed -i -e 's|base %U|base|g' base.desktop || return 1
        sed -i -e 's|calc %U|calc|g' calc.desktop || return 1
        sed -i -e 's|draw %U|draw|g' draw.desktop || return 1
        sed -i -e 's|impress %U|impress|g' impress.desktop || return 1
        sed -i -e 's|math %U|math|g' math.desktop || return 1
        sed -i -e 's|writer %U|writer|g' writer.desktop || return 1

If you don't mind, you could try and figure out why it's not working properly, and then provide a patch to the PKGBUILD.

Offline

#3 2009-09-01 09:37:19

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,642

Re: Openoffice desktop entries in gnome menu are wrong after updating

please check these files:

openoffice-base /usr/share/applications/base.desktop
openoffice-base /usr/share/applications/calc.desktop
openoffice-base /usr/share/applications/draw.desktop
openoffice-base /usr/share/applications/impress.desktop
openoffice-base /usr/share/applications/math.desktop
openoffice-base /usr/share/applications/printeradmin.desktop
openoffice-base /usr/share/applications/startcenter.desktop
openoffice-base /usr/share/applications/writer.desktop

they should all point to /usr/bin like this:

[andyrtr@workstation64 ~]$ cat /usr/share/applications/writer.desktop | grep Exec
Exec=/usr/bin/soffice -writer

Offline

#4 2009-09-01 09:42:03

Garret
Member
From: Palermo, Italy
Registered: 2006-07-09
Posts: 172

Re: Openoffice desktop entries in gnome menu are wrong after updating

@AndyRTR

[garret@desktop ~]$ cat /usr/share/applications/writer.desktop | grep Exec
Exec=/usr/bin/soffice -writer

But I edited manually each entry in gnome menu before your message sad

Offline

#5 2009-09-01 10:24:34

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,642

Re: Openoffice desktop entries in gnome menu are wrong after updating

please reinstall the pkg and check again. I would wonder how it could be broken. My x86_64 entries look ok. But so far I haven't seen anybody else with broken entries. What architecture? i686?

Offline

#6 2009-09-01 11:16:37

Garret
Member
From: Palermo, Italy
Registered: 2006-07-09
Posts: 172

Re: Openoffice desktop entries in gnome menu are wrong after updating

AndyRTR wrote:

please reinstall the pkg and check again. I would wonder how it could be broken. My x86_64 entries look ok. But so far I haven't seen anybody else with broken entries. What architecture? i686?

If I give sudo pacman -R openoffice-base openoffice-it, I saw entries in gnome menu remain, but of course they don't open anything.

Offline

#7 2009-09-01 12:01:52

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,642

Re: Openoffice desktop entries in gnome menu are wrong after updating

It seems you manually configured something in your menu that broke the freedesktop.org .desktop files. Remove any OOo related menu entries after you pacman -R (removed) it and then reinstall with -S openoffice-base. Then check the included .desktop files (Exec commandc and maybe their timestamp).

Offline

#8 2009-09-01 12:12:32

Garret
Member
From: Palermo, Italy
Registered: 2006-07-09
Posts: 172

Re: Openoffice desktop entries in gnome menu are wrong after updating

AndyRTR wrote:

It seems you manually configured something in your menu that broke the freedesktop.org .desktop files. Remove any OOo related menu entries after you pacman -R (removed) it and then reinstall with -S openoffice-base. Then check the included .desktop files (Exec commandc and maybe their timestamp).

I removed openoffice and then all the voices in gnome menu.
I installed openoffice again but now menu voices don't appear in gnome menu sad

Instead, giving:

[garret@desktop ~]$ cat /usr/share/applications/writer.desktop | grep Exec
Exec=/usr/bin/soffice -writer

Offline

#9 2009-09-01 12:28:54

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,642

Re: Openoffice desktop entries in gnome menu are wrong after updating

no idea what you mean with "voices", but now your menu entries .desktop files look ok. so the pkg is correct.

Offline

#10 2009-09-01 12:31:27

Garret
Member
From: Palermo, Italy
Registered: 2006-07-09
Posts: 172

Re: Openoffice desktop entries in gnome menu are wrong after updating

AndyRTR wrote:

no idea what you mean with "voices", but now your menu entries .desktop files look ok. so the pkg is correct.

For voices I mean desktop entries in gnome menu. Now I don't have any icons in gnome menu of openoffice suite.

How can I restore the icons in gnome menu?

Offline

#11 2009-09-01 15:43:53

rsambuca
Member
From: Calgary, Canada
Registered: 2008-07-21
Posts: 143

Re: Openoffice desktop entries in gnome menu are wrong after updating

I don't know why either, but my OO writer entry for the gnome menu was borked too after the update.  All the other OO products were properly set up.

Offline

#12 2009-09-01 17:34:19

Garret
Member
From: Palermo, Italy
Registered: 2006-07-09
Posts: 172

Re: Openoffice desktop entries in gnome menu are wrong after updating

rsambuca wrote:

I don't know why either, but my OO writer entry for the gnome menu was borked too after the update.  All the other OO products were properly set up.

I think the problem is related with Alacarte: editing entries with it then seems updates can't modify the entries, so you have to edit each entry manually.

Now I am adding openoffice suite entries manually, because reinstalling openoffice doesn't restore the original entries in gnome menu sad

Offline

Board footer

Powered by FluxBB