You are not logged in.

#26 2016-08-31 00:58:53

MountainX
Member
Registered: 2016-02-08
Posts: 371

Re: Disable gtk3 on libreoffice-still

I am having a similar issue - the environment var for Libre Office isn't sticking. I'm running KDE (Plasma 5) on Arch. 

The setting I make in /etc/profile.d/libreoffice-fresh.sh does not take effect and does not show up in ENV variables, even after logging out and back in.

FWIW, I am trying to export SAL_USE_VCLPLUGIN=gtk3 because of an issue described here: https://bbs.archlinux.org/viewtopic.php … 8#p1650768

Here are the things I have checked:

export | grep SAL_USE_VCLPLUGIN

No results

export | grep SAL_*

No results

More results of commands mentioned earlier in this thread:

grep SAL_USE_VCLPLUGIN -rs /etc ~
/etc/profile.d/libreoffice-fresh.sh:#export SAL_USE_VCLPLUGIN=gen
/etc/profile.d/libreoffice-fresh.sh:#export SAL_USE_VCLPLUGIN=kde4
/etc/profile.d/libreoffice-fresh.sh:#export SAL_USE_VCLPLUGIN=gtk
/etc/profile.d/libreoffice-fresh.sh:export SAL_USE_VCLPLUGIN=gtk3
/etc/profile.d/libreoffice-fresh.csh:#setenv SAL_USE_VCLPLUGIN gen
/etc/profile.d/libreoffice-fresh.csh:#setenv SAL_USE_VCLPLUGIN kde4
/etc/profile.d/libreoffice-fresh.csh:#setenv SAL_USE_VCLPLUGIN gtk
/etc/profile.d/libreoffice-fresh.csh:setenv SAL_USE_VCLPLUGIN gtk3
cat /etc/profile.d/libreoffice-fresh.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
cat /etc/profile.d/libreoffice-fresh.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
$ cat .xinitrc 
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
    for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
        [ -x "$f" ] && . "$f"
    done
    unset f
fi
exec startkde

Did I miss anything to check?

EDIT: Yes, I missed something. A solution that didn't work for others in this thread, did work for me: Here are my solution steps:

cp /usr/lib/libreoffice/share/xdg/calc.desktop $HOME/.local/share/applications/

    rename the file to: libreoffice-calc.desktop
    Edit this line in the file:

    Exec=SAL_USE_VCLPLUGIN=gtk3 libreoffice --calc %U

This works for me even when LO Calc is opened by clicking a file in the file manager (Dolphin).

Last edited by MountainX (2016-08-31 01:45:02)

Offline

Board footer

Powered by FluxBB