https://bugs.freedesktop.org/show_bug.cgi?id=46990

             Bug #: 46990
           Summary: LibreOffice fails to recognize MATE as GNOME/GTK-based
                    desktop
    Classification: Unclassified
           Product: LibreOffice
           Version: LibO 3.4.5 release
          Platform: All
        OS/Version: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Libreoffice
        AssignedTo: libreoffice-bugs@lists.freedesktop.org
        ReportedBy: arnaud.champoll...@laposte.net


I have LibreOffice 3.4.5
OOO340m1 (Build:502)

on Debian Wheezy, with MATE desktop.


In LibreOffice, it's impossible tu use GTK open/save dialog boxes as you can in
Gnome.


The problem have been "solved" by adding

export OOO_FORCE_DESKTOP=gnome

to ~/.profile

and

if [ -r ~/.profile ]; then
    . ~/.profile
fi

to ~/.xsessionrc


Here is the conclusion of Mirosław Zalewski, who helped me on the user mailing
list :

LightDM on login reads script set in session-wrapper in
/etc/lightdm/lightdm.conf file. On Debian, this is /etc/X11/Xsession.

That script sets up X environment, by reading files in /etc/X11/Xsession.d
directory. One of them sources users' XSESSIONRC file, which is ~/.xsessionrc.

In my solution, I tell to put there statement, that reads ~/.profile if it
exists and is readable. Then I tell to put OOO_FORCE_DESKTOP in that ~/.profile
file.

So, in fact, you could put OOO_FORCE_DESKTOP in ~/.xsessionrc and it should
work. I suggest to put in ~/.profile file, because that way you can have all
environment variables in that one single file. If you ever happen to switch
from LightDM to other graphical login manager, or decide to not use any
graphical login manager at all, all your variables should be in place (or will
be with minimal configuration).

Here is an answer of Michael Meeks, on the developper list :

Ok - so this is used in this code:

http://cgit.freedesktop.org/libreoffice/core/tree/vcl/unx/generic/plugadapt/salplug.cxx#n158

    and the black-magic desktop detector is here:

http://cgit.freedesktop.org/libreoffice/core/tree/vcl/unx/generic/desktopdetect/desktopdetector.cxx#n50

(...)

If it is certain that your desktop always wants to use the gtk+
backend, -and- it is possible to detect your desktop reasonably quickly
& easily (ie. an environment variable would be best).

    Then we can trivially add this to the desktopdetector.cxx and fix all
lightdm users in our next release.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to