LibreOffice Dock Icons

Joined
Nov 5, 2011
Messages
8
Reaction score
0
Points
1
LibreOffice, for those of you unfamiliar with it, is a free, open sourced office suite recently split from the OpenOffice.org suite. Once installed, it lumps its word processor, spreadsheet, presentation, drawing, database, and formula applications into one app, and thus, one dock icon. Does anyone out there know how to "split" those up, for easier access. If you are able to do this with OpenOffice.org, please let me know, as it may work for LibreOffice as well.

Thank you,
~ Chris
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
It appears that the Mac version of LibreOffice is set up this way and can't be changed. You can however make your own individual launchers.

Open up Automator and create an application. Add the "Run Shell Script" action. For the value, add the following for the word processor:
Code:
/Applications/LibreOffice.app/Contents/MacOS/swriter
Save that as an application and you've got yourself a launcher for the word processor.

Repeat those steps, replacing the script value with the following for each of the other parts:

Calc:
Code:
/Applications/LibreOffice.app/Contents/MacOS/scalc
Draw:
Code:
/Applications/LibreOffice.app/Contents/MacOS/sdraw
Base:
Code:
/Applications/LibreOffice.app/Contents/MacOS/sbase
Impress:
Code:
/Applications/LibreOffice.app/Contents/MacOS/simpress
Math:
Code:
/Applications/LibreOffice.app/Contents/MacOS/smath
It's admittedly not the most elegant solution but it should get the job done.
 
OP
C
Joined
Nov 5, 2011
Messages
8
Reaction score
0
Points
1
Elegant or not, it works, and I am able to put each individual launcher in the dock. On top of all that, I learned something new for Mac OS, the essential equivalent of a DOS Batch file, which I used to find quite handy in Windows.

Thanks,
~ Chris
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
Since you mentioned batch files, you might want to look up "bash scripts", AppleScript and Automator. Each of those can help automate tasks and do other neat OS level things (bash scripting is the closest to batch files).
 
OP
C
Joined
Nov 5, 2011
Messages
8
Reaction score
0
Points
1
Sounds good, bash is one of the things I like about Mac OS, I can go from Xubuntu on my notebook computer to Mac OS on my iMac and not change a thing, thanks for mentioning that. By the way, you wouldn't happen to know of a way to get the icons out of LibreOffice for the individual modules? I tried copying a JPEG, but when I keep it in the Dock, it reverts to the Automater logo.

~ Chris
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
You need to have ICNS files. Unfortunately, unlike just about any other OS I've used, OS X is very picky when it comes to icons. Take a look at this document to see how to change the icon. To create ICNS files out of pictures, take a look at img2icns - it's simple and the base version is free.
 
Joined
May 6, 2012
Messages
2
Reaction score
0
Points
1
libreOffice icons dock

I just downloaded libreOffice on OSX 10.7 and am trying to put separate icons for writer and calc on the dock. I've tried the suggested solution with automator several times, but get error msg about running inside or outside automator, etc. It's the first time I've seen Automator, and I must be doing something wrong. When I added the "Get specified file" action (as the error msg suggested) before "Run shell script," I got an application that opened the automator. Another time I created a new file in libreoffice writer, but it was just a file.
Your instructions say to add code "for the value," after adding "Run shell script," but I'm not seeing an obvious place to add the code.
The word cat comes up in a box, and I've put the copied code there with and without including the word cat. Maybe a screen shot?
Sorry to be dense about this.

Joann
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
I'll save you the trouble of fighting with Automator. Here's a zip file containing "launchers" for each of the apps. These should work assuming you've put LibreOffice in /Applications.
 
Joined
May 6, 2012
Messages
2
Reaction score
0
Points
1
Thank you very much; I'm using them, but I'd still like to know how to have done it. Will work on that.
Joann
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
When you add the "run shell script" action, you needed to replace the script action. By default, it executes "cat" - that's what you need to change.
 
Joined
Aug 29, 2012
Messages
1
Reaction score
0
Points
1
LibreOffice app bundle already includes adequate .icns for all apps

You need to have ICNS files. Unfortunately, unlike just about any other OS I've used, OS X is very picky when it comes to icons.

The LibreOffice application bundle already contains .icns files that work just fine for the Automator apps created using the instructions above, without any extra software, using the regular Mac OS way of changing file/app icons.

Locate LibreOffice.app in the Finder, then right-click and choose Show Package Contents from the context menu.

Inside the package, inside a folder called "Resources" you'll see a whole bunch of .icns files, for all the apps and document types. As of Mac OS 10.7 (not sure about earlier), you can open these in Preview.app, highlight the largest icon size in the sidebar (preview pane), then copy the icon to the clipboard with ⌘C.

Next, locate the Automator app you created before (I put mine in ~/Applications). Right click on the Automator app in Finder and choose Get Info (or ⌘I), then click on the icon in the upper-left of the inspector window to highlight it. Press ⌘V to paste the icon from the clipboard. Close the file inspector 'n you're done. No muss, no fuss.
 
Joined
Oct 7, 2013
Messages
1
Reaction score
0
Points
1
A better way...

As of the current LibreOffice version you may make template files from which you can do what was described below. To get them into the dock you simply rename the templates with the .app extension and then drag them into the dock. You may then rename the templates again (Say, name a template for word processing Writer) and you're good to go.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top