What is Portable Mode?
In portable mode, Prism Launcher stores all its data in a self-contained directory instead of the default system locations. This means:- All instances, settings, and caches are stored together
- No data is written to system directories
- The launcher can run from removable media
- Multiple launcher installations won’t interfere with each other
- Easy to backup, move, or sync your entire Minecraft setup
Default Data Locations
When not in portable mode, Prism Launcher uses these default locations:Enabling Portable Mode
There are three methods to enable portable mode, listed in order of precedence:Method 1: Command-Line Argument (Highest Priority)
Use the--dir or -d argument:
This method is ideal for scripts and automation, as it provides explicit control over the data location.
Method 2: Environment Variable
Set thePRISMLAUNCHER_DATA_DIR environment variable:
Method 3: Portable Markers (Linux/Windows only)
Create specific files or folders to automatically enable portable mode:UserData Folder (Recommended)
Create aUserData folder next to the launcher executable:
portable.txt File (Alternative)
Create an emptyportable.txt file next to the launcher executable:
The
UserData folder method is preferred as it keeps the launcher directory cleaner and separates program files from user data.Precedence Order
When multiple methods are present, Prism Launcher determines the data directory in this order:--dircommand-line argument (highest priority)PRISMLAUNCHER_DATA_DIRenvironment variableUserDatafolder (if exists)portable.txtfile (if exists)- Default system location (lowest priority)
Portable Installation Examples
USB Drive Setup
Create a fully portable installation on a USB drive:Network Share Installation
Run from a network location:Multiple Configurations
Maintain separate launcher configurations for different purposes:Linux/macOS
Windows
Portable Linux AppImage
For Linux AppImage installations:Distribution and Deployment
Creating a Portable Package
- Set up Prism Launcher in portable mode
- Configure instances, settings, and accounts
- Package the entire directory
- Distribute to other systems
Pre-configured Modpack Distribution
Distribute a launcher with pre-installed modpacks:- Install Prism Launcher in portable mode
- Create and configure instances
- Package the launcher with instances
- Users extract and run immediately
Remember to comply with mod licenses and terms of service when distributing modpacks.
Data Directory Structure
A typical portable data directory contains:Syncing and Backup
Cloud Sync
Portable mode makes cloud synchronization easy:Backup Strategy
Simple backup script
Performance Considerations
USB Drive Performance
- Use USB 3.0 or faster for acceptable performance
- SSD-based USB drives provide much better experience than HDD
- Expect longer load times compared to local installation
- Enable caching if supported by your filesystem
Network Share Performance
Troubleshooting
Permissions Issues
Cannot Create Data Directory
If the launcher fails to create the data directory:- Check disk space availability
- Verify write permissions
- Ensure parent directories exist
- Check for filesystem errors
Launcher Ignoring Portable Mode
If portable markers are ignored:- Verify file/folder names are exactly correct (
UserData,portable.txt) - Check placement relative to launcher executable
- Ensure you’re running the correct executable
- Use
--diras an explicit override
AppImage Portable Issues
For AppImage-specific problems:Verify APPIMAGE variable
Security Considerations
Platform-Specific Notes
Windows
- Works on all Windows versions (7+)
- Portable installation can bypass UAC restrictions
- Excellent for LAN parties and shared computers
- Can install on network drives (with performance caveats)
Linux
- AppImage is inherently portable
- Works on most distributions without dependencies
- Can run from read-only media with data on separate writable storage
- Consider using
--dir /tmp/minecraftfor temporary sessions
macOS
Portable markers (
UserData folder, portable.txt) are not supported on macOS due to the application bundle structure. Always use:--dircommand-line argument, orPRISMLAUNCHER_DATA_DIRenvironment variable
Migration
From Standard to Portable
Linux/macOS
Windows
From Portable to Standard
Linux/macOS
Windows
Related Documentation
- Command-Line Arguments - Use
--dirfor portable mode - Environment Variables - Set
PRISMLAUNCHER_DATA_DIR - Custom Commands - Automation in portable setups
