Files
odfstudio/shell/source/backends
Michael Weghorn 82a9023fb4 vcl: Use enum class instead of string to identify desktop environment
So far, Application::GetDesktopEnvironment was returning
a string to identify the desktop environment
(or OS, as e.g. "Windows" or "MacOSX" could also
be returned).

Use the existing DesktopType enum class instead of strings
to avoid one potential of errors, move its header from
being vcl-internal to a global vcl header and add a few
enum values for those cases that didn't have any yet.

This should e.g. prevent issues like the one detected
and fixed in previous commit

    Change-Id: I9cd5076a3eeca8b8c02a121add8dd1cec18c77a8
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Fri Mar 13 22:39:40 2026 +0100

        gtk: Fix desktop environment strings in comparison

        "tde" is no longer used and KDE Plasma environments
        are identified by "PLASMA5" and "PLASMA6", respectively,
        see SalGetDesktopEnvironment.

from happening again in the future.

Change-Id: Ifab1d67f4fa3e9150e4eb3449b3fed54e8e53b98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201687
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-03-17 10:08:05 +01:00
..