Script to execute a firefox instance with a recently created user. It deletes user after firefox execution
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file firefox_newuser-1.0.0.tar.gz.
File metadata
- Download URL: firefox_newuser-1.0.0.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.13.11 Linux/6.18.7-gentoo
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f1a3bcb1f999b6d15a08ca20c5ec4a866f0fbbc005a2f69b343195f80a2008e
|
|
| MD5 |
7cc00dd2036a1351680a22834ab45cad
|
|
| BLAKE2b-256 |
df8ceff04da9c428d77e9b63479150f2f7915a1a339b71306b5d6c4704a660f3
|
File details
Details for the file firefox_newuser-1.0.0-py3-none-any.whl.
File metadata
- Download URL: firefox_newuser-1.0.0-py3-none-any.whl
- Upload date:
- Size: 24.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.13.11 Linux/6.18.7-gentoo
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59ac39feef794e9c70dd1eed6be83f61f91552a16d3c1a71ee8a898de29d9b88
|
|
| MD5 |
f42ab61a8c9efdf2b5491fe3c9da2b50
|
|
| BLAKE2b-256 |
1070ffb0262bb6d47033babd3bf3a41be6efe438c3229b0947986a61795ed65c
|