On 9 Mar 2009, at 10:39, sraghunandan at huawei.com wrote:

> Dear All,
> How to check if java desktop is installed and whether it is working.
> My application needs to check if java desktop is present and if yes,  
> create application shortcuts for this desktop also.

There's no trivial way that's completely foolproof, but the easiest  
way to verify that JDS is installed is probably to check for the  
existence of some key JDS files.  One would be /usr/bin/gnome-session,  
the command that's run to launch JDS.  Another might be /usr/bin/ 
nautilus, the JDS file manager. And a third might be /usr/share/gnome- 
about/gnome-version.xml, which contains machine-readable JDS and GNOME  
version information.

Alternatively, you might use pkginfo to check for the presence of  
certain packages in the GNOME2 or JDS3 categories, such as SUNWgnome- 
session.

Cheeri,
Calum.

-- 
CALUM BENSON, Usability Engineer       Sun Microsystems Ireland
mailto:calum.benson at sun.com            OpenSolaris Desktop Team
http://blogs.sun.com/calum             +353 1 819 9771

Any opinions are personal and not necessarily those of Sun Microsystems


Reply via email to