]> glassweightruler.freedombox.rocks Git - waydroid.git/blobdiff - tools/config/__init__.py
Fix prop set command
[waydroid.git] / tools / config / __init__.py
index 2ec77dcd62a50059a797377319622167cb8a9fa4..0ed3d46ffa00af9a119c1f89a43f6ef28c67b579 100644 (file)
@@ -6,8 +6,8 @@ import pwd
 #
 # Exported functions
 #
-from tools.config.load import load, load_session, load_channels
-from tools.config.save import save, save_session
+from tools.config.load import load, load_channels
+from tools.config.save import save
 
 #
 # Exported variables (internal configuration)
@@ -23,18 +23,6 @@ config_keys = ["arch",
                "vendor_datetime",
                "suspend_action"]
 
-session_config_keys = ["user_name",
-                       "user_id",
-                       "group_id",
-                       "host_user",
-                       "xdg_data_home",
-                       "waydroid_data",
-                       "xdg_runtime_dir",
-                       "wayland_display",
-                       "pulse_runtime_path",
-                       "state",
-                       "lcd_density"]
-
 # Config file/commandline default values
 # $WORK gets replaced with the actual value for args.work (which may be
 # overridden on the commandline)
@@ -61,6 +49,7 @@ session_defaults = {
     "user_id": str(os.getuid()),
     "group_id": str(os.getgid()),
     "host_user": os.path.expanduser("~"),
+    "pid": str(os.getpid()),
     "xdg_data_home": str(os.environ.get('XDG_DATA_HOME', os.path.expanduser("~") + "/.local/share")),
     "xdg_runtime_dir": str(os.environ.get('XDG_RUNTIME_DIR')),
     "wayland_display": str(os.environ.get('WAYLAND_DISPLAY')),