net.java.sip.communicator.plugin.generalconfig
Class WindowsStartup
java.lang.Object
net.java.sip.communicator.plugin.generalconfig.WindowsStartup
public class WindowsStartup
- extends Object
Take care of application auto startup. Reading and writing the registry.
- Author:
- Damian Minkov
|
Method Summary |
static boolean |
isStartupEnabled(String appName)
Checks whether startup is enabled. |
static void |
setAutostart(String appName,
String workingDirectory,
boolean isAutoStart)
Creates or deletes registry key for application autostart. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WindowsStartup
public WindowsStartup()
isStartupEnabled
public static boolean isStartupEnabled(String appName)
- Checks whether startup is enabled.
- Parameters:
appName - the application name.
- Returns:
- is startup enabled.
setAutostart
public static void setAutostart(String appName,
String workingDirectory,
boolean isAutoStart)
- Creates or deletes registry key for application autostart.
- Parameters:
appName - the application nameworkingDirectory - the current working directory, normally the
place where the application executable is placed.isAutoStart - true to create registry key, false
to delete it.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.