The program runs and works on Linux (yay!) but has a couple of "features" that mean it doesn't quite integrate as well as on Windows.
1) The TTT window can't be placed on the task bar/notifcation area in Gnome. It floats above all other windows.
2) Double clicking on Gnome produces an error "/home/user/timecards/timecard-date.xls is not a directory".
The first point might be addressable using newer Java 6 features for the taskbar. For now, I just leave TTT at the top of the screen.
The second point has a workaround - click the "View all timesheets" which opens Nautilus, from here it's possible to open the xls file. For Gnome, maybe using gnome-open would be a better solution than exec("nautilus")? This would work for directories and for single .xls files too.
Logged In: YES
user_id=1244226
Originator: YES
Here is a patch that does what I've suggested above. The down-side is that it needs Java 6 (JDK 1.6) for the tray icon API. I've changed nautilus to gnome-open, which works great under Gnome.
Now the main app window has decoration and there is an icon in the tray area. On closing, the window is set invisible. Double clicking the tray icon makes the main window visible again. The only way to exit is via the right-click menu "Exit" option (it might be handy to add the menu to the tray icon too).
I'll upload the required icon next - I've just used the calendar image from
http://tango.freedesktop.org/Tango_Icon_Gallery
File Added: tray-icon-and-gnome-open.patch
22x22 Calendar icon from tango.freedesktop.org
Logged In: YES
user_id=1244226
Originator: YES
Here is the icon image. Place it in $tinytimetracker/src/tracker and it gets included in the .jar file on build.
File Added: calendar.png
Add tray icon (JDK 1.6 required) with right click menu. Change nautilus to gnome-open.
Logged In: YES
user_id=1244226
Originator: YES
I couldn't resist adding the right-click menu to the tray icon too. Unfortunately, it seems that JDK 1.6 is a bit rough around the edges with regards to the TrayIcon stuff. This means that in order to use a JPopupMenu one has to do it via the mouse listener interface, since a TrayIcon only accepts PopupMenus (which are pretty ugly and I couldn't reuse the main app's menu then).
Anyway, here is the final patch, which also clears up some no-longer-used code.
File Added: trayicon-menu-and-gnome-open.patch
I've added gnome-open ahead of nautilus in the launching applications for linux. I'm not ready to move to Java 6 so the tray stuff will have to wait.