Skip to main content

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

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)

Source distribution for firefox-newuser 1.0.0
File Size Uploaded
firefox_newuser-1.0.0.tar.gz 19.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for firefox-newuser 1.0.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.9.0

2 release files

0.8.0

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page