Skip to content

Conversation

@jessp01
Copy link

@jessp01 jessp01 commented Feb 8, 2025

Returns the username who owns the process owning the current window.
This is done by getting the owner (UID) of `/proc/<pid>/comm` with `stat()`
and mapping it to a username with `getpwuid()`.

This is important if you operate in a multi-user ENV and wish to record the user who performed the action.

    Returns the username who owns the process owning the current window.
    This is done by getting the owner (UID) of `/proc/<pid>/comm` with `stat()`
    and mapping it to a username with `getpwuid()`.
- Copyright adjustments
- In C, you can't declare variables directly under case labels - declaration needs to be inside a block.
GCC forgives it but Clang 17 and above does not. I've also corrected the
indentation

- Need to include <sys/types.h> to use uint type
…ess-owner

- In C, you can't declare variables directly under case labels - declaration needs to be inside a block.
GCC forgives it but Clang 17 and above does not. I've also corrected the indentation in some places.

- Need to include <sys/types.h> to use uint type

These changes allow devilspie2 to build with Clang 17 and 18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant