If youre focusing on the money youre gonna make a bad product... PG's essays really do explain everything so be sure to read them.
You can focus on creating sustainable small software business. I don't know if you have read "Start small, Stay small" by Rob Wallings. It talks about creating a sustainable small business on the side.