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

Use user home directory as initial dirOut (instead of /root) #20

Closed
bitsgalore opened this issue Nov 27, 2018 · 2 comments
Closed

Use user home directory as initial dirOut (instead of /root) #20

bitsgalore opened this issue Nov 27, 2018 · 2 comments

Comments

@bitsgalore
Copy link
Member

But see: #19, pkexec makes this quite difficult.

@bitsgalore
Copy link
Member Author

bitsgalore commented Nov 27, 2018

What might work:

  • store values of SUDO_UID, SUDO_GID and SUDO_USER in global (not user-specific, since user homedir cannot be established from env variables!!) config file which is created by config script.
  • Then read values in config.py and make them available to all modules

See also:
https://stackoverflow.com/questions/1024114/location-of-ini-config-files-in-linux-unix

But this will create problems if machine has multiple users/accounts.

@bitsgalore
Copy link
Member Author

Now uses SUDO_USER value from config file.

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

No branches or pull requests

1 participant