diff --git a/apps/desktopgui/TODO b/apps/desktopgui/TODO index 1a62d77222..c05b8dcd8a 100644 --- a/apps/desktopgui/TODO +++ b/apps/desktopgui/TODO @@ -15,7 +15,31 @@ HIGH PRIORITY: * One possibility: Adding some kind of 'ApplicationManager' that allows starting applications. Extra remark: ApplicationManager should also allow stopping certain applications from launching. + Suggestion: + * ApplicationManager reads/writes clients.config + * ApplicationManager itself: independent from clients.config? + * Upon reboot, ApplicationManager could add a new application to clients.config _if_ the 'application.manager.version' is not there, or is smaller than the current version. + * ApplicationManager can be the clients.config backend for routerconsole, so routerconsole is not the dependency. + * API: + - addConfig(args, name, ...) + - removeConfig(int) + - removeConfig(ConfigFilter) + ConfigFilter() { + boolean filterArgs(String args); + boolean filterMain(String main); + ... + } + - editConfig(args, name, ..., ConfigFilter) + - editConfig(args, name, ..., int) + - editConfigArgs(args, ConfigFilter) + - editConfigArgs(args, int) + - ... + * For now: added in the routerconsole startup (like the old SysTray. - DONE + Possible migration path: startup ApplicationManager in routerconsole the first time. +- Check bug: restart is happening instead of shutdown! +- Check build order (for example: first desktopgui, only later routerconsole) - Fix tabs versus spaces ;-) +- Add check for Java version 6 in RouterConsoleRunner! UNKNOWN: - API to allow applications to add themselves to the menu? * registerApplication(); -- should return a positive number on success, -1 on failure diff --git a/apps/desktopgui/locale/messages_nl.po b/apps/desktopgui/locale/messages_nl.po index f994059d21..433eb604b0 100644 --- a/apps/desktopgui/locale/messages_nl.po +++ b/apps/desktopgui/locale/messages_nl.po @@ -1,31 +1,29 @@ -#: src/net/i2p/desktopgui/TrayManager.java:73 -msgid "Launch I2P Browser" -msgstr "Start I2P Browser" - -#: src/net/i2p/desktopgui/TrayManager.java:99 -msgid "Browser not found" -msgstr "Browser niet gevonden" - -#: src/net/i2p/desktopgui/TrayManager.java:100 -msgid "The default browser for your system was not found." -msgstr "De standaard webbrowser voor je systeem werd niet gevonden." - -#: src/net/i2p/desktopgui/TrayManager.java:111 +#: src/net/i2p/desktopgui/ExternalTrayManager.java:23 msgid "Start I2P" msgstr "I2P starten" -#: src/net/i2p/desktopgui/TrayManager.java:126 +#: src/net/i2p/desktopgui/ExternalTrayManager.java:38 msgid "I2P is starting!" msgstr "I2P is aan het starten!" -#: src/net/i2p/desktopgui/TrayManager.java:126 +#: src/net/i2p/desktopgui/ExternalTrayManager.java:38 msgid "Starting" msgstr "Bezig met starten" -#: src/net/i2p/desktopgui/TrayManager.java:140 +#: src/net/i2p/desktopgui/InternalTrayManager.java:25 +msgid "Launch I2P Browser" +msgstr "Start I2P Browser" + +#: src/net/i2p/desktopgui/InternalTrayManager.java:49 msgid "Restart I2P" msgstr "I2P herstarten" -#: src/net/i2p/desktopgui/TrayManager.java:161 +#: src/net/i2p/desktopgui/InternalTrayManager.java:67 msgid "Stop I2P" msgstr "I2P stoppen" + +#~ msgid "Browser not found" +#~ msgstr "Browser niet gevonden" + +#~ msgid "The default browser for your system was not found." +#~ msgstr "De standaard webbrowser voor je systeem werd niet gevonden." diff --git a/apps/desktopgui/src/net/i2p/desktopgui/Main.java b/apps/desktopgui/src/net/i2p/desktopgui/Main.java index 7bed90e3a6..0783936ac2 100644 --- a/apps/desktopgui/src/net/i2p/desktopgui/Main.java +++ b/apps/desktopgui/src/net/i2p/desktopgui/Main.java @@ -28,7 +28,7 @@ public class Main { * Start the tray icon code (loads tray icon in the tray area). * @throws Exception */ - private void startUp() throws Exception { + public void startUp() throws Exception { trayManager = TrayManager.getInstance(); trayManager.startManager(); @@ -45,11 +45,15 @@ public class Main { }); } } + + public static void main(String[] args) { + beginStartup(args); + } /** * Main method launching the application. */ - public static void main(String[] args) { + public static void beginStartup(String[] args) { System.setProperty("java.awt.headless", "false"); try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); diff --git a/apps/routerconsole/java/build.xml b/apps/routerconsole/java/build.xml index d544e59aca..e1904d3fb1 100644 --- a/apps/routerconsole/java/build.xml +++ b/apps/routerconsole/java/build.xml @@ -24,6 +24,7 @@ + @@ -54,6 +55,7 @@ + @@ -161,6 +163,7 @@ + @@ -191,6 +194,7 @@ + @@ -220,7 +224,7 @@ <% if ( (System.getProperty("os.name") != null) && (System.getProperty("os.name").startsWith("Win")) ) { %> -

<%=intl._("Systray integration")%>

-

<%=intl._("On the windows platform, there is a small application to sit in the system tray, allowing you to view the router's status")%> - <%=intl._("(later on, I2P client applications will be able to integrate their own functionality into the system tray as well).")%> - <%=intl._("If you are on windows, you can either enable or disable that icon here.")%>

-
- " > - " > -

<%=intl._("Run on startup")%>

+

<%=intl._("Run on startup")%>

<%=intl._("You can control whether I2P is run on startup or not by selecting one of the following options - I2P will install (or remove) a service accordingly.")%> <%=intl._("If you prefer the command line, you can also run the ")%> install_i2p_service_winnt.bat (<%=intl._("or")%> uninstall_i2p_service_winnt.bat).

diff --git a/build.xml b/build.xml index 98fec26e7b..8f42915773 100644 --- a/build.xml +++ b/build.xml @@ -61,7 +61,7 @@ - + @@ -192,6 +196,7 @@ + @@ -201,6 +206,7 @@ + @@ -246,6 +252,7 @@ + @@ -255,6 +262,7 @@ + @@ -301,6 +309,7 @@ + @@ -432,6 +441,7 @@ + @@ -602,6 +612,7 @@ + @@ -733,10 +744,6 @@ - - - - @@ -780,6 +787,7 @@ +