Author Topic: LibreOffice5.2.0.4 problem with GTK [SOLVED]  (Read 1234 times)

Offline jacklapinza89s

  • Newly Subscribed
  • *
  • Posts: 2
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 7
LibreOffice5.2.0.4 problem with GTK [SOLVED]
« on: August 15, 2016, 06:33:03 am »
Hi,
I'm running Peppermint 7 and I have a problem with LibreOffice. I'm using a dark GTK theme but i want to disable the GTK integration with LibreOffice because looks bad and the icons are almost unreadable.
Someone suggest me to uninstall the libreoffice-gtk package (removing this package simply disables gtk integration).
But I don't have the libreoffice-gtk package installed, so I don't know what I should do.

If you have any advice I would appreciate your help.

« Last Edit: August 16, 2016, 06:22:39 am by jacklapinza89s »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: LibreOffice5.2.0.4 problem with GTK
« Reply #1 on: August 15, 2016, 09:20:03 am »
Uninstall libreoffice-gtk
Code: [Select]
sudo apt-get remove libreoffice-gtkand install libreoffice-gtk3
Code: [Select]
sudo apt-get install libreoffice-gtk3now create a script that launches libreoffice with say the Greybird theme earlier in the $PATH than the stock libreoffice binary
Code: [Select]
sudo pluma /usr/sbin/libreofficeand make it read
Code: [Select]
#!/bin/sh

env GTK_THEME=Greybird /usr/bin/libreoffice $1 $2 $3 $4 $5 $6 $7 $8 $9
SAVE the file and exit pluma

Now back in the terminal make it executable
Code: [Select]
sudo chmod +x /usr/sbin/libreofficeALL libreoffice apps should now start with the Greybird theme .. you can set any gtk3 theme, it doesn't have to be Greybird.
« Last Edit: August 15, 2016, 09:33:58 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline jacklapinza89s

  • Newly Subscribed
  • *
  • Posts: 2
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 7
Re: LibreOffice5.2.0.4 problem with GTK [SOLVED]
« Reply #2 on: August 16, 2016, 06:22:04 am »
Thank you so much it works.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: LibreOffice5.2.0.4 problem with GTK [SOLVED]
« Reply #3 on: August 16, 2016, 07:11:27 am »
You're most welcome, thanks for taking the time to mark the topic solved :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec