Comment 13 for bug 749986

Revision history for this message
renbag (renbag) wrote :

As a temporary workaround, the resize grips in libreoffice can be disabled by using a custom gtkrc file and calling it from the command line. For example, create a .gtkrc-2.0__libreoffice file in your home directory, with the following content:

style "default-style"
{
  GtkWindow::resize-grip-height = 0
  GtkWindow::resize-grip-width = 0
}

class "GtkWidget" style "default-style"

and then launch libreoffice writer (or another component) with the command:
GTK2_RC_FILES=.gtkrc-2.0__libreoffice libreoffice -writer

This disables the resize grips, but only works from the command line.
To make it work for the gui launchers we have to modify all the libreoffice .desktop files.
I have written a shell script to do this (to be run with sudo). It must also be run after every upgrade of libreoffice packages or appropriately copied to /etc/rc.local, if you prefer.
The script makes backup copies of the original .desktop files, in the case something goes wrong.
It works for me, but it should be probably tested by someone else.