I created a custom shortcut to a libreoffice calc spreadsheet to track my Ingress statistics. However, if I click the icon to open the spreadsheet, the libreoffice calc icon is highlighted instead of my custom shortcut. While I understand why this happens and this behaviour makes sense, I would like to have the custom shortcut highlighted in plank. Is this possible, and if so, how?

Here's my custom shortcut:

[Desktop Entry]
Name=Ingress Stats
Comment=ingress statistics
Exec=libreoffice --calc --nologo /home/bene/Dokumente/Ingress\ Stats.ods

[Desktop Action Ingif]
Name=Create Ingress Gif



Make a symlink to libreoffice and reference that in your .desktop file.

Make a symlink to libreoffice with this command:

sudo ln -s /usr/lib/libreoffice/program/soffice.bin /usr/bin/ingressbwi

In your .desktop file change the Exec line to:

Exec=/usr/bin/ingressbwi --calc --nologo /home/bene/Dokumente/Ingress\ Stats.ods
  • Unfortunately, that didn't work. The libreoffice calc icon is still highlighted when I start my spreadsheet via my custom shortcut. Sep 17 '15 at 8:19
  • The libreoffice executable was just a script that launched the actual binary. I've adjusted the symlink above and tested on Freya. Sep 17 '15 at 16:45
  • I'm afraid to tell you that it still didn't work. The libreoffice calc icon is still highlighted. But on top of that, my spreadsheet now opens, displays the black background and then freezes.... Sep 17 '15 at 20:00

Based on how plank currently detects which program is running, this will always (correctly) determine that the LibreOffice Calc executable is being used. Parameters are not factored in, and it is probable that LireOffice passes of after loading anyway.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.