imspidey commited on
Commit
8ee346f
·
1 Parent(s): 4bcd7f4

Update remotedesk.py

Browse files
Files changed (1) hide show
  1. remotedesk.py +2 -3
remotedesk.py CHANGED
@@ -1,5 +1,4 @@
1
 
2
- CRP = "DISPLAY= /opt/google/chrome-remote-desktop/start-host --code="4/0AfJohXkIng4SIA4jc0kQ9nKVrsg2QwdbjajKeEeCm3NjB_SUtEPgY-5LABP5NU7AB1CzdQ" --redirect-url="https://remotedesktop.google.com/_/oauthredirect" --name=$(hostname)" #@param {type:"string"}
3
 
4
  #@markdown Enter a Pin (more or equal to 6 digits)
5
  Pin = 123456 #@param {type: "integer"}
@@ -60,7 +59,7 @@ X-GNOME-Autostart-enabled=true""".format(link)
60
  os.system(f"chown {user}:{user} /home/{user}/.config")
61
 
62
  os.system(f"adduser {user} chrome-remote-desktop")
63
- command = f"{CRP} --pin={Pin}"
64
  os.system(f"su - {user} -c '{command}'")
65
  os.system("service chrome-remote-desktop start")
66
 
@@ -69,7 +68,7 @@ X-GNOME-Autostart-enabled=true""".format(link)
69
 
70
 
71
  try:
72
- if CRP == "":
73
  print("Please enter authcode from the given link")
74
  elif len(str(Pin)) < 6:
75
  print("Enter a pin more or equal to 6 digits")
 
1
 
 
2
 
3
  #@markdown Enter a Pin (more or equal to 6 digits)
4
  Pin = 123456 #@param {type: "integer"}
 
59
  os.system(f"chown {user}:{user} /home/{user}/.config")
60
 
61
  os.system(f"adduser {user} chrome-remote-desktop")
62
+ command = f"{TRP} --pin={Pin}"
63
  os.system(f"su - {user} -c '{command}'")
64
  os.system("service chrome-remote-desktop start")
65
 
 
68
 
69
 
70
  try:
71
+ if TRP == "":
72
  print("Please enter authcode from the given link")
73
  elif len(str(Pin)) < 6:
74
  print("Enter a pin more or equal to 6 digits")