Skip to main content

Webapp for user switching with RetroPie and EmulationStation

Project description


Web app user switcher for RetroPie/EmulationStation.


What it is

stallyns lets you have separate ROM directories for different users of your system.

For now, it is expected that you have all of your ROMs stored in 'user' directories at ~/roms. See below:

├── kids
│   ├── atari2600
│   ├── mame-libretro
│   ├── ports
│   └── saves
└── me
    ├── atari2600
    ├── mame-libretro
    ├── ports
    └── saves


$ pip install --upgrade stallyns

or clone this repo and install:

$ git clone && cd stallyns && pip install .


Copy the stallyns.service file to ~/.config/systemd/stallyns.service. Reload systemd for the user and then activate and start the service:

systemctl --user daemon-reload
systemctl --user enable --now stallyns.service


After installing, navigate to http://pi:5000. A list of users will be displayed at the top along with a list of system options at the bottom (useful for if your kids won't turn off the games and you just want to shut the whole thing down).

On your first run, all user buttons will be white. When a user directory is symlinked to ~/RetroPie/roms, their button will be blue.

On the initial user selection in stallyns, ~/RetroPie/roms is moved to ~/RetroPie/roms.orig and a symlink is created from ~/roms/USER to ~/RetroPie/roms.


I recommend that you quit games before switching users. Killing the active running retroarch or other running application seems to lead to funky states of the display and a restart of EmulationStation does not fix it.

Save States (optional)

I prefer to keep my save state and save files separate from the ROMs, so I do the following:

Modify /opt/retropie/configs/all/retroarch/retroarch.cfg to set the following:

savefile_directory = "/home/pi/RetroPie/roms/saves/"
savestate_directory = "/home/pi/RetroPie/roms/saves/"

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stallyns-0.1.2.tar.gz (4.0 kB view hashes)

Uploaded source

Built Distribution

stallyns-0.1.2-py3-none-any.whl (8.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page