618ea7d12d
Rename and consolidate portable user-data to usr/user-data and update tooling and runtime to match. Updated appdir-example/run-nebula.sh to point at usr/user-data; make-appdir.sh and update-appdir.sh now patch/copy the launcher, create the usr/user-data directory and set secure permissions (mkdir -p, chmod 700), and remove sed backups. portable-data.js now defaults to app-local user-data and prefers <AppDir>/usr/user-data on Linux AppDir builds (with safe fs checks). Also minor UI change in renderer/setup.css to make the footer background transparent and disable the backdrop blur.
25 lines
746 B
Bash
Executable File
25 lines
746 B
Bash
Executable File
#!/bin/bash
|
|
# Run Nebula with portable data storage
|
|
# User data (cookies, history, bookmarks) is stored in usr/user-data/ alongside the app.
|
|
set -e
|
|
|
|
HERE="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
export APPDIR="$HERE"
|
|
export PATH="$HERE/usr/bin:$PATH"
|
|
export LD_LIBRARY_PATH="$HERE/usr/lib:$HERE/usr/lib64:$LD_LIBRARY_PATH"
|
|
|
|
# --- PORTABLE DATA CONFIGURATION ---
|
|
# Store user data in a local folder for portable operation
|
|
PORTABLE_DATA_DIR="$HERE/usr/user-data"
|
|
export NEBULA_PORTABLE=1
|
|
export NEBULA_PORTABLE_PATH="$PORTABLE_DATA_DIR"
|
|
|
|
# Create portable data directory with secure permissions if it doesn't exist
|
|
if [ ! -d "$PORTABLE_DATA_DIR" ]; then
|
|
mkdir -p "$PORTABLE_DATA_DIR"
|
|
chmod 700 "$PORTABLE_DATA_DIR"
|
|
fi
|
|
|
|
exec "$HERE/nebula-appdir/AppRun"
|