mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-12 10:42:21 -05:00
Detect and log message for Unity users
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2339 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
1a33f0e43c
commit
b8877eaa78
@ -228,12 +228,17 @@ public final class DavGatewayTray {
|
|||||||
String javaVersion = System.getProperty("java.version");
|
String javaVersion = System.getProperty("java.version");
|
||||||
String arch = System.getProperty("sun.arch.data.model");
|
String arch = System.getProperty("sun.arch.data.model");
|
||||||
LOGGER.debug("OS Name: "+System.getProperty("os.name")+
|
LOGGER.debug("OS Name: "+System.getProperty("os.name")+
|
||||||
"Java version: "+javaVersion+((arch!=null)? ' ' +arch:"")+
|
" Java version: "+javaVersion+((arch!=null)? ' ' +arch:"")+
|
||||||
"System tray "+(SystemTray.isSupported()?"":"not ")+"supported"+
|
" System tray "+(SystemTray.isSupported()?"":"not ")+"supported "+
|
||||||
((currentDesktop==null)?"":"Current Desktop: " + currentDesktop)
|
((currentDesktop==null)?"":"Current Desktop: " + currentDesktop)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!Settings.getBooleanProperty("davmail.server")) {
|
if (!Settings.getBooleanProperty("davmail.server")) {
|
||||||
|
if ("Unity".equals(currentDesktop)) {
|
||||||
|
LOGGER.info("Detected Unity desktop, please follow instructions at " +
|
||||||
|
"http://davmail.sourceforge.net/linuxsetup.html to restore normal systray " +
|
||||||
|
"or run DavMail in server mode");
|
||||||
|
}
|
||||||
// first try to load SWT before with Java AWT
|
// first try to load SWT before with Java AWT
|
||||||
ClassLoader classloader = DavGatewayTray.class.getClassLoader();
|
ClassLoader classloader = DavGatewayTray.class.getClassLoader();
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user