desktopdetector.cxx (c82f2877) desktopdetector.cxx (aa150a94)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 221 unchanged lines hidden (view full) ---

230 return false;
231}
232
233static bool is_cde_desktop( Display* pDisplay )
234{
235 void* pLibrary = NULL;
236
237 Atom nDtAtom = XInternAtom( pDisplay, "_DT_WM_READY", True );
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 221 unchanged lines hidden (view full) ---

230 return false;
231}
232
233static bool is_cde_desktop( Display* pDisplay )
234{
235 void* pLibrary = NULL;
236
237 Atom nDtAtom = XInternAtom( pDisplay, "_DT_WM_READY", True );
238 OUString aPathName( RTL_CONSTASCII_USTRINGPARAM( "file:///usr/dt/lib/libDtSvc.so" ) );
239 if( nDtAtom && ( pLibrary = osl_loadModule( aPathName.pData, SAL_LOADMODULE_DEFAULT ) ) )
238 if( nDtAtom && ( pLibrary = osl_loadAsciiModule( "file:///usr/dt/lib/libDtSvc.so", SAL_LOADMODULE_DEFAULT ) ) )
240 {
241 osl_unloadModule( (oslModule)pLibrary );
242 return true;
243 }
244
245 return false;
246}
247

--- 92 unchanged lines hidden ---
239 {
240 osl_unloadModule( (oslModule)pLibrary );
241 return true;
242 }
243
244 return false;
245}
246

--- 92 unchanged lines hidden ---