Remove autostart file creation

main^2
axtloss 2 years ago
parent 4327b6cf70
commit 8ce173a7cd
No known key found for this signature in database
GPG Key ID: DD6D66939396C90E

@ -127,19 +127,7 @@ class Processor:
if user is None:
user = os.environ.get("USER")
desktop_file = "/home/%s/.local/share/applications/org.vanillaos.FirstSetup.desktop" % user
autostart_file = "/home/%s/.config/autostart/org.vanillaos.FirstSetup.desktop" % user
if os.path.exists(autostart_file):
os.remove(autostart_file)
with open(desktop_file, "w+") as f:
f.write("[Desktop Entry]\n")
f.write("Name=FirstSetup\n")
f.write("Comment=FirstSetup\n")
f.write("Exec=vanilla-first-setup\n")
f.write("Terminal=false\n")
f.write("Type=Application\n")
f.write("NoDisplay=true\n")
f.flush()
f.close()

Loading…
Cancel
Save