From: rnayabed Date: Mon, 15 Mar 2021 20:24:06 +0530 Subject: Fixed issue on StartAtBoot where startup did not work due to file spaces in between. --- Fixed issue on StartAtBoot where startup did not work due to file spaces in between. --- --- 'a/src/main/java/com/stream_pi/util/startatboot/StartAtBoot.java' +++ b/src/main/java/com/stream_pi/util/startatboot/StartAtBoot.java @@ -95,7 +95,7 @@ public class StartAtBoot { "[Service]\n" + "Type=simple\n" + "Environment=\"DISPLAY=:0\"\n" + - "WorkingDirectory="+runnerFile.getAbsoluteFile().getParent()+"\n" + + "WorkingDirectory=\""+runnerFile.getAbsoluteFile().getParent()+"\"\n" + "ExecStart="+runnerFile.getAbsoluteFile().getParent()+"/"+runnerFile.getName()+"\n" + "[Install]\n" + "WantedBy=default.target\n"); @@ -106,7 +106,7 @@ public class StartAtBoot { "Description=Stream-Pi "+softwareType+"\n" + "[Service]\n" + "Type=oneshot\n" + - "WorkingDirectory="+runnerFile.getAbsoluteFile().getParent()+"\n" + + "WorkingDirectory=\""+runnerFile.getAbsoluteFile().getParent()+"\"\n" + "ExecStart="+runnerFile.getAbsoluteFile().getParent()+"/"+runnerFile.getName()+"\n" + "[Install]\n" + "WantedBy=default.target\n");