< prev index next >

src/java.base/unix/native/libjava/java_props_md.c

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 456,466 **** #endif /* _AIX */ #endif /* MACOSX */ sprops.os_arch = ARCHPROPNAME; ! if (getenv("GNOME_DESKTOP_SESSION_ID") != NULL) { sprops.desktop = "gnome"; } else { sprops.desktop = NULL; } --- 456,467 ---- #endif /* _AIX */ #endif /* MACOSX */ sprops.os_arch = ARCHPROPNAME; ! if (getenv("GNOME_DESKTOP_SESSION_ID") != NULL ! || getenv("XDG_CURRENT_DESKTOP") != NULL) { sprops.desktop = "gnome"; } else { sprops.desktop = NULL; }
< prev index next >