// Path: core/client/src/main/java/de/danner_web/studip_client/utils/OSValidationUtil.java
// public class OSValidationUtil {
// 	
// 	private static String OS = null;
// 
// 	private static String getOsName() {
// 		if (OS == null) {
// 			OS = System.getProperty("os.name");
// 		}
// 		return OS;
// 	}
// 
// 	public static boolean isWindows() {
// 		return getOsName().startsWith("Windows");
// 	}
// 
// 	public static boolean isMac() {
// 		// TODO Implement
// 		return false;
// 	}
// 
// 	public static boolean isLinux() {
// 		return getOsName().startsWith("Linux");
// 	}
// 
// }


import java.io.BufferedReader;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.file.Files;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import de.danner_web.studip_client.utils.OSValidationUtil;
package de.danner_web.studip_client.utils;



public class AutostartUtil {

	private static Logger logger = LogManager.getLogger(AutostartUtil.class);

	// Windows specific
	private static final String SHORTCUT_NAME = "StudIP Client.lnk";
	private static final String EXE_NAME = "StudIP Client.exe";

	// Linux specific
	private static final String DESKTOP_FILE_NAME = "studip_client.desktop";
	private static final String SH_SCRIPT_NAME = "studip_client.sh";
	private static final String DESKTOP_PATH = ".config/autostart";

	// Mac specific

	public static boolean createAutoStartShortcut() {
		String installFolder = System.getProperty("user.dir");
		// Check OS
// Path: core/client/src/main/java/de/danner_web/studip_client/utils/OSValidationUtil.java
// public class OSValidationUtil {
// 	
// 	private static String OS = null;
// 
// 	private static String getOsName() {
// 		if (OS == null) {
// 			OS = System.getProperty("os.name");
// 		}
// 		return OS;
// 	}
// 
// 	public static boolean isWindows() {
// 		return getOsName().startsWith("Windows");
// 	}
// 
// 	public static boolean isMac() {
// 		// TODO Implement
// 		return false;
// 	}
// 
// 	public static boolean isLinux() {
// 		return getOsName().startsWith("Linux");
// 	}
// 
// }


// Path: core/client/src/main/java/de/danner_web/studip_client/utils/AutostartUtil.java
import java.io.BufferedReader;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.file.Files;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import de.danner_web.studip_client.utils.OSValidationUtil;

package de.danner_web.studip_client.utils;



public class AutostartUtil {

	private static Logger logger = LogManager.getLogger(AutostartUtil.class);

	// Windows specific
	private static final String SHORTCUT_NAME = "StudIP Client.lnk";
	private static final String EXE_NAME = "StudIP Client.exe";

	// Linux specific
	private static final String DESKTOP_FILE_NAME = "studip_client.desktop";
	private static final String SH_SCRIPT_NAME = "studip_client.sh";
	private static final String DESKTOP_PATH = ".config/autostart";

	// Mac specific

	public static boolean createAutoStartShortcut() {
		String installFolder = System.getProperty("user.dir");
		// Check OS
		if (OSValidationUtil.isLinux()) {