I don't know the code to check the number of workspaces yet, but just for future reference the lines where a single if is needed to stop the workspaces icon from showing (perhaps for a Unity hack or something):
LauncherController.h under the constructor of LauncherController (at the time of writing line 42) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/677594 Title: Workspace switcher useless with one workspace -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs