Skip to main content

An icon resided in the task bar for managing .bat scripts.

Project description

tray-launcher

Python: 3.7+ License: MIT PyPI: tray-launcher Code style: black

A launcher that resides in the Windows task bar for managing .bat scripts.

Installation

tray-launcher can be installed with pip install -i https://test.pypi.org/simple/ tray-launcher.

Usage

To start the tray launcher, first make sure you are in the Python environment variable where tray-launcher is installed. Then, running launcher run will show a small icon in the taskbar.

The tray launcher comes with a command line interface. Use launcher -h to learn more.

Before running any scripts from the tray launcher, they need to be loaded. This can be done by clicking the option Load New Script(s) in the contextmenu. Alternatively, paste scripts under %USERPROFILE%\.tray_launcher\scripts. Only .bat files are accepted.

To run a script, select it in the Start a Script submenu from the contextmenu, or click "View All" to see all loaded scripts in a file dialogue.

Loggings of the tray launcher and the scripts you run will be saved under %USERPROFILE%\.tray_launcher\logs.

The tray launcher will list all scripts you started and are currently running. Move the cursor over to view more actions.

Notes

  1. The tray launcher only works on Windows.

  2. The tray launcher listens to 127.0.0.1:7686. If this port is not available, the command line interface will not work. You need to go to control panel, create a new environment variable named TRAY_LAUNCHER_PORT and set its value to a port number that is available on your device.

  3. If the tray launcher crashes, scripts started via the tray launcher will NOT be terminated.

  4. There will be an expected delay when you run "launcher run".

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

tray-launcher-1.0.0.tar.gz (51.1 kB view hashes)

Uploaded Source

Built Distribution

tray_launcher-1.0.0-py3-none-any.whl (50.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page