import AutoLaunch from "auto-launch" ; let app = { name : "BreakTimer" } ; if ( process . env . APPIMAGE ) { app = Object . assign ( app , { path : process . env . APPIMAGE } ) ; } const AppLauncher = new AutoLaunch ( app ) ; export function setAutoLauch ( autoLaunch ) { if ( process . env . NODE_ENV !== "development" ) { if ( autoLaunch ) { AppLauncher . enable ( ) ; } else { AppLauncher . disable ( ) ; } } }