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

Process::user method #194

Open
3 tasks
svartalf opened this issue Feb 3, 2020 · 2 comments · May be fixed by #198
Open
3 tasks

Process::user method #194

svartalf opened this issue Feb 3, 2020 · 2 comments · May be fixed by #198
Labels
A-host Area: heim-host crate A-process Area: heim-process crate C-enhancement Category: new feature or request

Comments

@svartalf
Copy link
Member

svartalf commented Feb 3, 2020

Same to psutil and analogs it is expected to have some method to retrieve information about process owner. It seems reasonable to return heim::host::User instead of plain username, as it will allow to get rich information about owner.

Due to current project structure, heim-host sub-crate probably should be extended with method like User::get(uid), which will be utilized by heim-process later.

Points:

  • Check what info about owner can be obtained from the process on all platforms supported (uid preferably)
  • Check if we are able to make User::get happen
  • Add async fn Process::owner method (or should it be Process::user? Discussable)
@svartalf svartalf added A-host Area: heim-host crate A-process Area: heim-process crate C-enhancement Category: new feature or request labels Feb 3, 2020
@sandorex sandorex linked a pull request Mar 1, 2020 that will close this issue
@k-brk k-brk mentioned this issue Aug 11, 2020
@pwnorbitals
Copy link

Any recent updates ?

@svartalf
Copy link
Member Author

svartalf commented Apr 7, 2021

No, no yet. There is a WIP implementation in #198 , but it is far from complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-host Area: heim-host crate A-process Area: heim-process crate C-enhancement Category: new feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants