From 4ac2dd719fe99a23b786e08aeeaee9dcb114dd1c Mon Sep 17 00:00:00 2001 From: oqyude Date: Fri, 7 Nov 2025 13:23:18 +0300 Subject: [PATCH] in storage data folder --- src/vars.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vars.ps1 b/src/vars.ps1 index 38e9f6c..6fe8888 100644 --- a/src/vars.ps1 +++ b/src/vars.ps1 @@ -53,9 +53,6 @@ function checkWingetStatus { } } -# Data folder -$data = "$root\data" - # Setup Data Folder $apps = "$data\isolate" $appsAll = "$data\apps.csv" @@ -64,4 +61,7 @@ $mountsAll = "$data\mounts.csv" # GLOBAL $tempFolder = "$env:TEMP\winos"; $storage = "$env:USERPROFILE\Storage" -$autostartDir = "$data\autorun" \ No newline at end of file +$autostartDir = "$data\autorun" + +# Data folder +$data = if (Test-Path "$storage\winos\data") { "$storage\winos\data" } else { "$root\data" } \ No newline at end of file