Firefox NewUser
Script to run a Firefox instance with a dynamically created temporary user exclusively in Wayland environments. This project is specifically designed to work on Gentoo Linux; its functionality on other distributions is not guaranteed. The user and all their data are automatically deleted when the browser is closed, ensuring a clean and isolated session.
Features
- Total isolation: Creates a dedicated system user (
firefox_newuser) for the session. - Automatic cleanup: Deletes the user, their group, and their
/homedirectory after execution. - File synchronization: Allows moving files downloaded or created during the session to a persistent directory before deletion.
- Optimized for Wayland: Uses native session management for modern environments.
- Sound support: Automatically bridges PipeWire/PulseAudio sockets and authentication cookies to ensure audio works out of the box.
Requirements
- Python >= 3.10
- root privileges (the script will request them via
suif run as a normal user). - Firefox installed.
Installation
If you use Gentoo Linux you can find my ebuild en https://github.com/turulomio/myportage/tree/master/www-client/firefox_newuser.
You can install this package using pip or poetry
Metadata
Release files for firefox-newuser 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| firefox_newuser-1.0.0.tar.gz | 19.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| firefox_newuser-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.9 kB
Release files / firefox_newuser-1.0.0.tar.gz
| Download URL | firefox_newuser-1.0.0.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f1a3bcb1f999b6d15a08ca20c5ec4a866f0fbbc005a2f69b343195f80a2008e
|
|
BLAKE2b-256 checksum How to use checksums |
df8ceff04da9c428d77e9b63479150f2f7915a1a339b71306b5d6c4704a660f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.11 Linux/6.18.7-gentoo
|
Release files / firefox_newuser-1.0.0-py3-none-any.whl
| Download URL | firefox_newuser-1.0.0-py3-none-any.whl |
|---|---|
| Size | 24.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59ac39feef794e9c70dd1eed6be83f61f91552a16d3c1a71ee8a898de29d9b88
|
|
BLAKE2b-256 checksum How to use checksums |
1070ffb0262bb6d47033babd3bf3a41be6efe438c3229b0947986a61795ed65c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.11 Linux/6.18.7-gentoo
|