https://github.com/turulomio/firefox_newuser
Script to execute a firefox instance with a recently created user. It deletes user after firefox execution
https://github.com/turulomio/firefox_newuser
clean firefox new
Last synced: 4 months ago
JSON representation
Script to execute a firefox instance with a recently created user. It deletes user after firefox execution
- Host: GitHub
- URL: https://github.com/turulomio/firefox_newuser
- Owner: turulomio
- License: gpl-3.0
- Created: 2020-01-09T07:50:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-10T16:37:34.000Z (almost 2 years ago)
- Last Synced: 2025-04-01T20:41:52.650Z (about 1 year ago)
- Topics: clean, firefox, new
- Language: Python
- Size: 272 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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 `/home` directory 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 `su` if 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