Overview
Obsidian Portable uses the PortableApps.com Launcher to manage the portable execution environment. The launcher configuration is defined inObsidianPortable.ini, which controls how Obsidian runs and manages data paths.
Configuration File Location
The launcher configuration file is located at:ObsidianPortable.ini Structure
The configuration file contains several sections that control the launcher behavior:[Launch] Section
The[Launch] section defines the core execution parameters for Obsidian Portable.
Configuration Parameters
The main executable file name for 32-bit systems. Set to
Obsidian.exe.The executable file name for 64-bit systems. Set to
Obsidian.exe.The executable file name for ARM64 systems. Set to
Obsidian.exe.Arguments passed to Obsidian on startup. Configures the user data directory to ensure portable operation.Default:
--user-data-dir="%PAL:DataDir%\ObsidianAppData"Allows the portable app to function correctly even if moved to a different directory.Default:
yesEnables the app to run from UNC network paths (e.g.,
\\server\share).Default: yesPath Correction Sections
Obsidian Portable uses four[FileWrite] sections to automatically update file paths in the configuration when the portable app is moved between drives or directories.
[FileWrite1] - Initial Data Directory
INITIALDATADIR with the actual data directory path on first run.
[FileWrite2] - Package Directory Update
[FileWrite3] - PortableApps Base Directory Update
[FileWrite4] - Drive Letter Update
E: to F:).
These FileWrite sections ensure that vault paths and other references in
obsidian.json remain correct when you move your portable installation between USB drives, network locations, or different computers.Environment Variables
The PortableApps.com Launcher provides several environment variables that are used in the configuration:| Variable | Description |
|---|---|
%PAL:DataDir% | The Data directory path within the portable app |
%PAL:Drive% | The current drive letter where the app is located |
%PAL:LastDrive% | The previous drive letter from the last run |
%PAL:PackagePartialDir:DoubleBackslash% | The partial path to the package with double backslashes |
%PAL:LastPackagePartialDir:DoubleBackslash% | The previous partial path with double backslashes |
%PAL:PortableAppsBaseDir:DoubleBackslash% | The PortableApps.com base directory with double backslashes |
%PAL:LastPortableAppsBaseDir:DoubleBackslash% | The previous base directory with double backslashes |
Custom Configuration
When to Customize
You might want to customize the launcher configuration to:- Change the location of the user data directory
- Add additional command-line arguments for Obsidian
- Modify path correction behavior for specific network environments
- Disable UNC support if running only from local drives
Making Changes
- Backup the configuration file before making any changes
- Edit
App/AppInfo/Launcher/ObsidianPortable.iniwith a text editor - Test your changes thoroughly after modification
- Keep a backup of the working configuration
Example: Custom Data Directory
To change the data directory location, modify theCommandLineArguments line:
[FileWrite] sections to reference the new directory.
