mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
Merge pull request #538 (https://github.com/JetBrains/intellij-community/pull/538)
This commit is contained in:
@@ -90,6 +90,7 @@ public class SystemInfo extends SystemInfoRt {
|
||||
}
|
||||
|
||||
public static final boolean isXWindow = isUnix && !isMac;
|
||||
public static final boolean isWayland = !StringUtil.isEmpty(System.getenv("WAYLAND_DISPLAY"));
|
||||
/* http://askubuntu.com/questions/72549/how-to-determine-which-window-manager-is-running/227669#227669 */
|
||||
public static final boolean isGNOME = isXWindow && ObjectUtils.notNull(System.getenv("GDMSESSION"), "").startsWith("gnome");
|
||||
/* https://userbase.kde.org/KDE_System_Administration/Environment_Variables#KDE_FULL_SESSION */
|
||||
|
||||
Reference in New Issue
Block a user