Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement -U. #2049

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Implement -U. #2049

wants to merge 3 commits into from

Commits on Oct 2, 2024

  1. Implement -U.

    If this argument is provided Conky won't start if another Conky process
    is already running.
    g0mb4 committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    0b06e50 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. Use ps to check the running processes.

    The previous method used `/proc` to check the running processes,
    but it is a Linux-specific solution.
    
    This method uses `ps`, hopefully in a POSIX-compliant way.
    
    Linux: https://man7.org/linux/man-pages/man1/ps.1.html
    FreeBSD: https://man.freebsd.org/cgi/man.cgi?ps(1)
    OpenBSD: https://man.openbsd.org/ps.1
    g0mb4 committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    50fd9dc View commit details
    Browse the repository at this point in the history
  2. Fix name check.

    A random process named `conky11` won't stop Conky to start when
    `-U` is provided.
    g0mb4 committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    03df49f View commit details
    Browse the repository at this point in the history