Start desktop app in home directory (#1302)

This commit is contained in:
Wojtek Mach 2022-07-28 15:40:55 +02:00 committed by GitHub
parent 2ac02d9547
commit 1b978b43f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -10,3 +10,5 @@ if not exist %cookie_path% (
for /f "skip=1" %%X in ('wmic os get localdatetime') do if not defined TIMESTAMP set TIMESTAMP=%%X
echo cookie-!TIMESTAMP:~0,11!-!RANDOM! > %cookie_path%
)
cd !HOMEDRIVE!!HOMEPATH!

View file

@ -10,3 +10,5 @@ cookie_path="${RELEASE_ROOT}/releases/COOKIE"
if [ ! -f $cookie_path ]; then
cat /dev/urandom | env LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 > $cookie_path
fi
cd $HOME