From: rnayabed Date: Sat, 30 Jan 2021 13:57:12 +0530 Subject: fully implemeneted start on boot --- fully implemeneted start on boot --- --- 'a/src/main/java/com/StreamPi/Util/StartAtBoot/StartAtBoot.java' +++ b/src/main/java/com/StreamPi/Util/StartAtBoot/StartAtBoot.java @@ -63,9 +63,9 @@ public class StartAtBoot { "[Service]\n" + "Type=oneshot\n" + "WorkingDirectory="+runnerFile.getAbsoluteFile().getParent()+"\n" + - "ExecStart="+runnerFile.getName()+"\n" + + "ExecStart="+runnerFile.getAbsoluteFile().getParent()+"/"+runnerFile.getName()+"\n" + "[Install]\n" + - "WantedBy=default.target"); + "WantedBy=default.target\n"); bw.close(); Runtime.getRuntime().exec("systemctl --user daemon-reload");