Update run.py
Browse files
run.py
CHANGED
|
@@ -11,7 +11,7 @@ subprocess.run('python run.py', shell=True)
|
|
| 11 |
# Run it
|
| 12 |
#subprocess.run('./main.sh', shell=True)
|
| 13 |
"""
|
| 14 |
-
print("Started")
|
| 15 |
import os
|
| 16 |
import subprocess
|
| 17 |
import shutil
|
|
@@ -89,7 +89,7 @@ class CRDSetup:
|
|
| 89 |
if Autostart:
|
| 90 |
os.makedirs(f"/home/{user}/.config/autostart", exist_ok=True)
|
| 91 |
link = "www.youtube.com/@The_Disala"
|
| 92 |
-
colab_autostart = "
|
| 93 |
print("Finalizing !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
|
| 94 |
|
| 95 |
Type=Application
|
|
@@ -97,7 +97,7 @@ Name=Colab
|
|
| 97 |
Exec=sh -c "sensible-browser {}"
|
| 98 |
Icon=
|
| 99 |
Comment=Open a predefined notebook at session signin.
|
| 100 |
-
X-GNOME-Autostart-enabled=true"
|
| 101 |
with open(f"/home/{user}/.config/autostart/colab.desktop", "w") as f:
|
| 102 |
f.write(colab_autostart)
|
| 103 |
os.system(f"chmod +x /home/{user}/.config/autostart/colab.desktop")
|
|
@@ -133,4 +133,12 @@ try:
|
|
| 133 |
else:
|
| 134 |
CRDSetup(username)
|
| 135 |
except NameError as e:
|
| 136 |
-
print("'username' variable not found, Create a user first")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
# Run it
|
| 12 |
#subprocess.run('./main.sh', shell=True)
|
| 13 |
"""
|
| 14 |
+
"""print("Started")
|
| 15 |
import os
|
| 16 |
import subprocess
|
| 17 |
import shutil
|
|
|
|
| 89 |
if Autostart:
|
| 90 |
os.makedirs(f"/home/{user}/.config/autostart", exist_ok=True)
|
| 91 |
link = "www.youtube.com/@The_Disala"
|
| 92 |
+
colab_autostart = "[Desktop Entry]
|
| 93 |
print("Finalizing !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
|
| 94 |
|
| 95 |
Type=Application
|
|
|
|
| 97 |
Exec=sh -c "sensible-browser {}"
|
| 98 |
Icon=
|
| 99 |
Comment=Open a predefined notebook at session signin.
|
| 100 |
+
X-GNOME-Autostart-enabled=true".format(link)
|
| 101 |
with open(f"/home/{user}/.config/autostart/colab.desktop", "w") as f:
|
| 102 |
f.write(colab_autostart)
|
| 103 |
os.system(f"chmod +x /home/{user}/.config/autostart/colab.desktop")
|
|
|
|
| 133 |
else:
|
| 134 |
CRDSetup(username)
|
| 135 |
except NameError as e:
|
| 136 |
+
print("'username' variable not found, Create a user first")
|
| 137 |
+
"""
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
import os
|
| 141 |
+
import subprocess
|
| 142 |
+
import shutil
|
| 143 |
+
|
| 144 |
+
os.system(f"echo 'Hi'")
|