issue #15 store appName in preferences before launching application