How to change dock's icon command for launching a program?

On Blufin 40 I have pinned LibreOffice Writer icon to dock. When I now click on LibreOffice Writer the icon to launch a program, LibreOffice splash screen is displayed displayed for few parts of a second which is little bit annoying.

I assume program is launched from dock with command:
flatpak run org.libreoffice.LibreOffice

I would like to add --nologo at the end of command so:
flatpak run org.libreoffice.LibreOffice --nologo

How to change dock’s icon launch command?

I see there are plenty of LibreOffice .desktop files. I executed bellow command to add --nologo to each of LibreOffice’s desktop file.

sudo sed -i 's/\(^Exec.*org.libreoffice.LibreOffice\)/\1 --nologo/' /var/lib/flatpak/exports/share/applications/org.libreoffice.LibreOffice.*.desktop

Problem solved, no more annoying LibreOffice splash screen.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.