[Solved] Both OpenOffice & LibreOffice on same installation

Issues with installing under all GNU/Linux Distributions
Post Reply
endtimes
Posts: 8
Joined: Wed Oct 26, 2016 12:18 am

[Solved] Both OpenOffice & LibreOffice on same installation

Post by endtimes »

I installed OpenOffice without running the desktop integration deb.
LibreOffice still runs as normal.
I can run OpenOffice by going to /opt/openoffice4/program in a file manager and clicking on soffice.
It seems to work OK (although there are occasional crashes).
I'd be grateful if someone could tell me how to make a desktop shortcut to start OpenOffice.
Last edited by endtimes on Wed Oct 26, 2016 11:00 pm, edited 1 time in total.
OpenOffice 4.1.3 on (the excellent) Linux Mint 18 Sarah
User avatar
robleyd
Moderator
Posts: 5055
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Both OpenOffice and LibreOffice on same installation

Post by robleyd »

One way; open a file manager and drag the soffice executable to your desktop. At least in KDE this will create a desktop shortcut.

OpenOffice is usually installed in /opt/openoffice4 and the file you want is /opt/openoffice4/program/soffice
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.1.2; SlackBuild for 24.2.1 by Eric Hameleers
esperantisto
Volunteer
Posts: 578
Joined: Mon Oct 08, 2007 1:31 am

Re: Both OpenOffice and LibreOffice on same installation

Post by esperantisto »

Who needs shortcuts? I would simply create a bash script of just two lines:

Code: Select all

#!/bin/bash
/opt/openoffice4/program/soffice
save it to ~/bin (for example, ~/bin/aoo) and make executable. Then simply Alt+F2 and enter aoo. Of course, you can create a shortcut to that script.
AOO 4.2.0 (of 2015) / LO 7.x / Win 7 / openSUSE Linux Leap 15.4 (64-bit)
endtimes
Posts: 8
Joined: Wed Oct 26, 2016 12:18 am

Re: Both OpenOffice and LibreOffice on same installation

Post by endtimes »

esperantisto wrote:Who needs shortcuts? I would simply create a bash script of just two lines:

Code: Select all

#!/bin/bash
/opt/openoffice4/program/soffice
save it to ~/bin (for example, ~/bin/aoo) and make executable. Then simply Alt+F2 and enter aoo. Of course, you can create a shortcut to that script.
That worked.

I made a folder called aoo containing executable text file in /bin.
Wrote:
#!/bin/bash
/opt/openoffice4/program/soffice
in the file.
A link to it on desktop works but only if file manager is set to run executable text files instead of open them.
Created a launcher to it (using the "create launcher..." option from right click on desktop and putting /bin/aoo/oo in command field).
The launcher is not pleasing to the eye but works.

Good solution - Thankyou very much.
OpenOffice 4.1.3 on (the excellent) Linux Mint 18 Sarah
endtimes
Posts: 8
Joined: Wed Oct 26, 2016 12:18 am

Re: Both OpenOffice and LibreOffice on same installation

Post by endtimes »

robleyd wrote:One way; open a file manager and drag the soffice executable to your desktop. At least in KDE this will create a desktop shortcut.

OpenOffice is usually installed in /opt/openoffice4 and the file you want is /opt/openoffice4/program/soffice
Thanks, but that didn't work on Mint. It created a copy of the file on the desktop but clicking on that either opens the flle or does nothing depending on file manager settings. Creating a desktop link to the soffice file doesn't work either.
OpenOffice 4.1.3 on (the excellent) Linux Mint 18 Sarah
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Both OpenOffice and LibreOffice on same installation

Post by RoryOF »

Right click on desktop and create a Launcher?
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
robleyd
Moderator
Posts: 5055
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Both OpenOffice and LibreOffice on same installation

Post by robleyd »

Just for curiosities sake, what window manager does your version of Mint use.

My suggestion worked on my KDE.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.1.2; SlackBuild for 24.2.1 by Eric Hameleers
endtimes
Posts: 8
Joined: Wed Oct 26, 2016 12:18 am

Re: Both OpenOffice and LibreOffice on same installation

Post by endtimes »

robleyd wrote:Just for curiosities sake, what window manager does your version of Mint use.

My suggestion worked on my KDE.

Caja 1.14.2
OpenOffice 4.1.3 on (the excellent) Linux Mint 18 Sarah
endtimes
Posts: 8
Joined: Wed Oct 26, 2016 12:18 am

Re: Both OpenOffice and LibreOffice on same installation

Post by endtimes »

RoryOF wrote:Right click on desktop and create a Launcher?
I thought I had tried that and it didn't work at the time, but have tried again and it does now - thanks.

[I had made some change to the swriter file, but after a purge and reinstall of OpenOffice, a launcher to /opt/openoffice4/program/swriter works fine.]
OpenOffice 4.1.3 on (the excellent) Linux Mint 18 Sarah
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Both OpenOffice and LibreOffice on same installation

Post by Hagar Delest »

If the right click to create a launcher doesn't work, you can also create a desktop entry (the equivalent of the shortcuts but recognized at the desktop manager level):
Create an openoffice.desktop file that contains:

Code: Select all

[Desktop Entry]
Exec=/opt/openoffice4/program/soffice
Icon=/opt/openoffice4/program/logo.png
Name=OpenOffice
Terminal=false
Type=Application
Version=4
Save it in ~/.local/share/applications
Make it executable.
It should now appear in the menus if they follow the freedesktop standard.

Please add [Solved] at the beginning of the title in your first post (top of the topic) with the edit button if your issue has been fixed.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
endtimes
Posts: 8
Joined: Wed Oct 26, 2016 12:18 am

Re: Both OpenOffice and LibreOffice on same installation

Post by endtimes »

Hagar Delest wrote:If the right click to create a launcher doesn't work, you can also create a desktop entry (the equivalent of the shortcuts but recognized at the desktop manager level):
Create an openoffice.desktop file that contains:

Code: Select all

[Desktop Entry]
Exec=/opt/openoffice4/program/soffice
Icon=/opt/openoffice4/program/logo.png
Name=OpenOffice
Terminal=false
Type=Application
Version=4
Save it in ~/.local/share/applications
Make it executable.
It should now appear in the menus if they follow the freedesktop standard.
This was easy and works. I did it for soffice and swriter. I use synapse as a launcher and both OpenOffice and Swriter became available immediately through synapse. They also appear under "Other" in the menu and dragging from there to desktop gives a shortcut with the seagull icon on it - lovely. Thankyou.
OpenOffice 4.1.3 on (the excellent) Linux Mint 18 Sarah
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Both OpenOffice and LibreOffice on same installation

Post by Hagar Delest »

endtimes wrote:I use synapse as a launcher and both OpenOffice and Swriter became available immediately through synapse. They also appear under "Other" in the menu
You can add the following line and it should disappear from the "Other" menu.
Categories=Application;Office;
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
endtimes
Posts: 8
Joined: Wed Oct 26, 2016 12:18 am

Re: Both OpenOffice and LibreOffice on same installation

Post by endtimes »

Hagar Delest wrote:You can add the following line and it should disappear from the "Other" menu.
Categories=Application;Office;
It worked for soffice. It didn't work for the similar "desktop entry I made for swriter.

I fiddled about with the files etc and now it works for swriter and not for soffice. The swriter entry appears in the Office menu with the name OpenOfficeWriter and the soffice entry appears in the Other menu with the name OpenOffice.desktop

The two desktop entry files in .local/share/applications currently contain:

1) soffice file:
[Desktop Entry]
Exec=/opt/openoffice4/program/soffice
Icon=/opt/openoffice4/program/logo.png
Name=OpenOffice
Terminal=false
Type=Application
Version=4
Categories=Application:Office;

2) the similar one I made for swriter:
[Desktop Entry]
Exec=/opt/openoffice4/program/swriter
Icon=/opt/openoffice4/program/logo.png
Name=OpenOfficeWriter
Terminal=false
Type=Application
Version=4
Categories=Application;Office;

Notes:
1) Something had added the following line to the end of the files last time I'd written them:
Name[en_GB]=openofficeWriter
2) Editing the current "Name=xxx" line to "Name[en_GB]=xxx" means the program doesn't appear in any menu.
3) The last word in the current files (ie Office") appears highlighted in red in my text editor. Changing it to "office" - ie lower case, takes away the highlighting and it may still work.
4) The OpenOfficeWriter.desktop file has retained its extension but the soffice one is simply called Openoffice, can be renamed OpenOffice.desktop but is inclined to revert to being extensionless.
5) Earlier today I clicked on the desktop icon I now have for oo writer. I got a message asking (and I paraphrase), Do you trust this?, and on clicking yes, it too suddenly got the seagulls icon.
6) While typing these points, the line: "Name[en_GB]=OpenOffice.desktop" has again been added to the end of the soffice file but not to the swriter one.
7) I'm very happy with the result you've helped me achieve. It is for someone else and is better than I expected. He uses desktop shortcuts instead of the menus so it is a good result, however if you are able to make sense of these notes and gild the lily, I'll continue. Thankyou.
OpenOffice 4.1.3 on (the excellent) Linux Mint 18 Sarah
endtimes
Posts: 8
Joined: Wed Oct 26, 2016 12:18 am

Re: Both OpenOffice and LibreOffice on same installation

Post by endtimes »

Hagar Delest wrote:You can add the following line and it should disappear from the "Other" menu.
Categories=Application;Office;
OK, both the entries - Office & Writer have now moved to the correct menu.

The desktop entry files now read:

[Desktop Entry]
Name=OpenOffice
Exec=/opt/openoffice4/program/soffice
Icon=/opt/openoffice4/program/logo.png
Type=Application
Version=4
Categories=GTK:GNOME;Office;

and

[Desktop Entry]
Name=OpenOfficeWriter
Exec=/opt/openoffice4/program/swriter
Icon=/opt/openoffice4/program/logo.png
Type=Application
Version=4
Categories=GTK:GNOME;Office;

The last word is still showing up highlighted in red but perhaps that doesn't matter.

The lily is now gilded. Thankyou very much for your help - and going the extra mile.
OpenOffice 4.1.3 on (the excellent) Linux Mint 18 Sarah
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Both OpenOffice and LibreOffice on same installation

Post by Hagar Delest »

endtimes wrote:The last word is still showing up highlighted in red but perhaps that doesn't matter.
I see that also in some of my desktop entries. Don't know either what it means.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
Post Reply