from tools.interfaces import IUserMonitor
from tools.interfaces import IPlatform
stopping = False
def start(args, session, unlocked_cb=None):
from tools.interfaces import IUserMonitor
from tools.interfaces import IPlatform
stopping = False
def start(args, session, unlocked_cb=None):
if not os.path.exists(desktop_file_path):
lines = ["[Desktop Entry]", "Type=Application"]
lines.append("Name=" + appInfo["name"])
lines.append("Exec=waydroid app launch " + packageName)
if not os.path.exists(desktop_file_path):
lines = ["[Desktop Entry]", "Type=Application"]
lines.append("Name=" + appInfo["name"])
lines.append("Exec=waydroid app launch " + packageName)
lines.append("X-Purism-FormFactor=Workstation;Mobile;")
lines.append("Actions=app_settings;")
lines.append("[Desktop Action app_settings]")
lines.append("X-Purism-FormFactor=Workstation;Mobile;")
lines.append("Actions=app_settings;")
lines.append("[Desktop Action app_settings]")
if os.path.isfile(desktop_file_path):
os.remove(desktop_file_path)
lines = ["[Desktop Entry]", "Type=Application"]
lines.append("Name=Waydroid")
lines.append("Exec=waydroid show-full-ui")
if os.path.isfile(desktop_file_path):
os.remove(desktop_file_path)
lines = ["[Desktop Entry]", "Type=Application"]
lines.append("Name=Waydroid")
lines.append("Exec=waydroid show-full-ui")
- if not os.path.exists(args.apps_dir):
- os.mkdir(args.apps_dir)
- os.chmod(args.apps_dir, 0o700)
+ if not os.path.exists(apps_dir):
+ os.mkdir(apps_dir)
+ os.chmod(apps_dir, 0o700)