]> glassweightruler.freedombox.rocks Git - waydroid.git/blobdiff - tools/services/user_manager.py
user: Create apps dir if doesn’t exists
[waydroid.git] / tools / services / user_manager.py
index b8771e7b28bdaa1c611305e887c3778803911796..662fb2a521f5f5ed5f2f03b057fbaa6c7f807bfb 100644 (file)
@@ -58,6 +58,10 @@ def start(args, unlocked_cb=None):
 
         platformService = IPlatform.get_service(args)
         if platformService:
+            apps_dir = "/.local/share/applications"
+            if not os.path.exists(apps_dir):
+                os.mkdir(apps_dir)
+                os.chmod(apps_dir, 0o700)
             appsList = platformService.getAppsInfo()
             for app in appsList:
                 makeDesktopFile(app)