Skip to content

python script to read the list of firefox profiles from -d specified path and give the option to launch one via Zenity

Notifications You must be signed in to change notification settings

bitstrike/runfox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

runfox.py

Overview

runfox.py is a Python script designed to facilitate launching Mozilla Firefox with specific profiles from the command line. Firefox -P does this as well however runfox presents profiles as a sorted list which isn't the default behavior for firefox Profile Manager.

Features

  • Launch Firefox with a specified profile directly from the command line.
  • Display a list of available profiles using Zenity, allowing users to choose a profile interactively.

Prerequisites

  • Python 3
  • Mozilla Firefox installed

Usage

Basic Usage

python3 runfox.py -d /path/to/firefox/profiles -p my_profile

    -d or --directory: Path to the directory containing Firefox profiles.
    -p or --profile: Name of the profile to launch.
    -x or --xwidth: width of the Zenity window
    -y or --yheight: height of the Zenity window

Interactive Mode

If a path is not specified, the default home directory of the user is used to build a patch to ./mozilla/firefox

python3 runfox.py

The size of the Zenity window can be specified using -x and -y for easier viewing:

python3 runfox.py -x 300 -y 600

If the profile is not specified, the script will show an interactive list of available profiles. An alternate path to the profiles can be specified too:

python3 runfox.py -d /path/to/firefox/profiles

Users can select a profile from the list, and the script will launch Firefox with the chosen profile.

Example

python3 runfox.py -d /home/user/.mozilla/firefox -p default

This example launches Firefox with the "default" profile from the specified directory.

Notes

Ensure that the provided directory path (-d option) is valid and contains Firefox profiles.

License

This project is licensed under the MIT License.

Feel free to use, modify, and distribute this script according to the terms of the license.

About

python script to read the list of firefox profiles from -d specified path and give the option to launch one via Zenity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages