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 for Linux #2049

Merged
merged 6 commits into from
Nov 5, 2024
Merged

Implement -U for Linux #2049

merged 6 commits into from
Nov 5, 2024

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

Commits on Oct 29, 2024

  1. Go back to /proc.

    Use `/proc/[pid]/stat` to check if conky is already running.
    This will only work on systems where there is a `/proc`.
    g0mb4 committed Oct 29, 2024
    Configuration menu
    Copy the full SHA
    6ab89e5 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2024

  1. Hide U flag altogether if not on Linux

    Signed-off-by: Tin Švagelj <[email protected]>
    Caellian committed Nov 1, 2024
    Configuration menu
    Copy the full SHA
    3f32b89 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2024

  1. Configuration menu
    Copy the full SHA
    6cef51f View commit details
    Browse the repository at this point in the history