Skip to main content

startuniq

startuniq starts a program only when an equivalent process is not already running. If it detects a running instance, it shows a small dialog that lets you:

  • Kill existing instance(s), or
  • Start anyway

It works for both:

  • remote hosts (via SSH), and
  • localhost (runs directly, no SSH)

Useful for single-instance tools such as Firefox, VS Code, Zim, Phoebus, and similar apps.

Requirements

  • Python 3.7+
  • Linux/Unix-like system
  • pgrep and pkill available on target host
  • Tkinter (for the confirmation dialog)

Installation

pip install startuniq

Or from this folder:

pip install .

Usage

python -m startuniq -s HOST [-p PROCESS_PATTERN] PROGRAM [PROGRAM_ARGS ...]

Arguments

  • -s, --server: target host (default: localhost)
  • -p, --process: process match pattern for pgrep -f
    • if omitted, the full command line (PROGRAM + args) is used
  • PROGRAM [PROGRAM_ARGS ...]: command to launch

Examples

Start Firefox on remote host:

python -m startuniq -s myhost firefox

Start VS Code locally (no SSH):

python -m startuniq code /path/to/project

Behavior summary

  1. Checks process count using pgrep -c -f.
  2. If already running, shows Kill / Start anyway dialog.
  3. If not running (or user chooses Start anyway), launches the program.

Notes

  • For remote hosts, command checks and launches happen through SSH.
  • For localhost, checks and launches run directly on the local machine.

Metadata

Release files for startuniq 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for startuniq 0.0.5
File Size Uploaded Provenance Actions
startuniq-0.0.5.tar.gz 4.6 kB Without provenance Details for startuniq-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for startuniq 0.0.5
File Interpreter ABI Platform Actions
startuniq-0.0.5-py3-none-any.whl Python 3 none any Details for startuniq-0.0.5-py3-none-any.whl

Total release size: 9.5 kB

Release files / startuniq-0.0.5.tar.gz

Download URL startuniq-0.0.5.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
62e61eb337c6424c03673e45590c9bc2e05816595cd7e7abd4de0d52d408f790
BLAKE2b-256 checksum
How to use checksums
472c2f62248aa75b74a5e4266e5407a85f66162012a56e7c66a78145b196b657
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.1

Release files / startuniq-0.0.5-py3-none-any.whl

Download URL startuniq-0.0.5-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
806633deafb0b87b88e8446fdd9ef249e256ea87676368fb44e94489cdeffaf9
BLAKE2b-256 checksum
How to use checksums
ff8fcbe55022d210639da877e0148e3515e28c250659aabcb4ae3bed33138f9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.1

Security for startuniq 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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