You are not logged in.

#1 2016-10-18 07:56:11

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 274

[Solved] LibreOffice GTK2

hi,
can i set gtk2 on LibreOffice (gtk3 is slow in my PC)?
maybe i need to compile it without "--enable-gtk3" in "autogen.sh"?

How much time is required  to compile it with a CPU Dual Core 1.86GHz?

Last edited by quellen (2016-10-18 13:03:21)


sorry for my bad english

Offline

#2 2016-10-18 08:52:53

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: [Solved] LibreOffice GTK2

% ls /etc/profile.d/libreoffice*       
/etc/profile.d/libreoffice-still.csh  /etc/profile.d/libreoffice-still.sh

if that fails, in pacman.conf(5):

NoUpgrade = usr/lib/libreoffice/program/libvclplug_gtk3lo.so
NoExtract = usr/lib/libreoffice/program/libvclplug_gtk3lo.so

Last edited by Alad (2016-10-18 08:53:03)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#3 2016-10-18 12:19:42

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 274

Re: [Solved] LibreOffice GTK2

thanks.
i have tried to edit libreoffice-still.csh and libreoffice-still.sh and pacman.conf but libreoffice still uses gtk3.

$ cat /etc/profile.d/libreoffice-still.sh
# to force a certain look'n feel

#export SAL_USE_VCLPLUGIN=gen
#export SAL_USE_VCLPLUGIN=kde4
export SAL_USE_VCLPLUGIN=gtk
#export SAL_USE_VCLPLUGIN=gtk3 # currently broken and not available
$ cat /etc/profile.d/libreoffice-still.csh 
# to force a certain look'n feel

#setenv SAL_USE_VCLPLUGIN gen
#setenv SAL_USE_VCLPLUGIN kde4
setenv SAL_USE_VCLPLUGIN gtk
#setenv SAL_USE_VCLPLUGIN gtk3 # currently broken and not available
$ cat /etc/pacman.conf |grep -i libr
NoUpgrade   = /usr/lib/libreoffice/program/libvclplug_gtk3lo.so
NoExtract   = /usr/lib/libreoffice/program/libvclplug_gtk3lo.so

sorry for my bad english

Offline

#4 2016-10-18 12:22:07

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [Solved] LibreOffice GTK2

It doesn't matter which VCL plugin you use, libreoffice now has a hard dependency on gtk.  You *must* have gtk2/3 installed, and you can then altneratively have other toolkits installed to use other VCL plugins.  I don't know that this can be changed by compile time options as these are the requirements listed upstream.

See also:
https://bbs.archlinux.org/viewtopic.php?id=206869

EDIT: ah, you have gtk2, so yes it should work without gtk3.  Do you also have gtk3 installed?  If you have gtk3 installed and don't want to use it, just uninstall gtk3.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2016-10-18 12:27:05

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: [Solved] LibreOffice GTK2

pacman.conf but libreoffice still uses gtk3.

I forgot to add that besides blacklisting those files, you also have to either reinstall the packages to reflect the change in the file system, or remove the files manually.

Last edited by Alad (2016-10-18 12:27:20)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#6 2016-10-18 13:03:08

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 274

Re: [Solved] LibreOffice GTK2

SOLVED:
i have removed /usr/lib/libreoffice/program/libvclplug_gtk3lo.so manually and now libreoffice starts with gtk2. thanks.


Trilby: i cant remove gtk3:

# pacman -Rs gtk3
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: file-roller: removing gtk3 breaks dependency 'gtk3'
:: firefox: removing gtk3 breaks dependency 'gtk3'
:: gcr: removing gtk3 breaks dependency 'gtk3'
:: gmtk: removing gtk3 breaks dependency 'gtk3'
:: gnome-screenshot: removing gtk3 breaks dependency 'gtk3'
:: gpaste: removing gtk3 breaks dependency 'gtk3'
:: gufw: removing gtk3 breaks dependency 'gtk3'
:: webkit2gtk: removing gtk3 breaks dependency 'gtk3'
:: webkitgtk: removing gtk3 breaks dependency 'gtk3'

sorry for my bad english

Offline

#7 2016-10-18 13:15:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [Solved] LibreOffice GTK2

Odd - you say gtk3 slows down your system, but you use mainly gtk3 programs.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2016-10-18 23:27:10

Radioactiveman
Member
From: Germany
Registered: 2010-05-13
Posts: 388

Re: [Solved] LibreOffice GTK2

quellen wrote:

thanks.
i have tried to edit libreoffice-still.csh and libreoffice-still.sh and pacman.conf but libreoffice still uses gtk3.

Have you started LibreOffice immediately after that? The changes will not take effect until the next login (if not sourced manually).

Offline

#9 2016-10-24 11:32:16

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 274

Re: [Solved] LibreOffice GTK2

can i disable gtk3 on file-roller too?
https://git.archlinux.org/svntogit/pack … ile-roller

Last edited by quellen (2016-10-24 11:33:06)


sorry for my bad english

Offline

#10 2016-10-24 11:40:12

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,846
Website

Re: [Solved] LibreOffice GTK2

Please don't hijack threads.

https://wiki.archlinux.org/index.php/Co … _hijacking
https://wiki.archlinux.org/index.php/Co … ow_to_post

You had a problem with libreoffice using gtk3, that problem has been solved. Fileroller using gtk3 is a different problem.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#11 2016-10-24 11:53:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [Solved] LibreOffice GTK2

Trilby wrote:

Odd - you say gtk3 slows down your system, but you use mainly gtk3 programs.

Again, if you want to stop using gtk3, stop using gtk3 programs - it's that simple.  File-roller, and all those others, are gtk3 programs.  Use the gtk2/gnome2 alternatives.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB