diff options
author | Kevin Cornell <kcornell> | 2002-02-28 13:38:22 +0000 |
---|---|---|
committer | Kevin Cornell <kcornell> | 2002-02-28 13:38:22 +0000 |
commit | 1839d9b7351f1d828c18b817e991e0b42240edae (patch) | |
tree | 89537dca81f74e2189f144fc66e4c41580a306a3 /bundles/org.eclipse.swt/Eclipse SWT Program | |
parent | 2aeb13abe37af893fdc76eeb11aa780be2749fc0 (diff) | |
download | eclipse.platform.swt-1839d9b7351f1d828c18b817e991e0b42240edae.tar.gz eclipse.platform.swt-1839d9b7351f1d828c18b817e991e0b42240edae.tar.xz eclipse.platform.swt-1839d9b7351f1d828c18b817e991e0b42240edae.zip |
bug # 10002 Use a different atom to detect CDE
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Program')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT Program/motif/org/eclipse/swt/program/Program.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/motif/org/eclipse/swt/program/Program.java b/bundles/org.eclipse.swt/Eclipse SWT Program/motif/org/eclipse/swt/program/Program.java index 8640d87eeb..db644663b5 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Program/motif/org/eclipse/swt/program/Program.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Program/motif/org/eclipse/swt/program/Program.java @@ -55,11 +55,14 @@ static int getDesktop( Display display ) { } // Obtain the atoms for the various window manager signature properties. + // On CDE, the atom below may exist without DTWM running. If the atom + // below is defined, the CDE database exists and the available + // applications can be queried. int desktop = DESKTOP_UNKNOWN; int xDisplay = display.xDisplay; /* Use the character encoding for the default locale */ byte[] gnomeName = Converter.wcsToMbcs (null, "GNOME_NAME_SERVER", true); - byte[] cdeName = Converter.wcsToMbcs (null, "DTWM_IS_RUNNING", true); + byte[] cdeName = Converter.wcsToMbcs (null, "_DT_SM_PREFERENCES", true); byte[] kdeName = Converter.wcsToMbcs (null, "KWIN_RUNNING", true); int gnome = OS.XInternAtom( xDisplay, gnomeName, true ); int cde = OS.XInternAtom( xDisplay, cdeName, true ); |