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
Running tapeimgr in GUI mode on BitCurator / Ubuntu 18.04LTS (Bionic) #19
Comments
Additional info: updated everything to pkexec, but now for some reason the launcher script tapeimgr-pkexec is not extracted during pip install (even though it is in the tarball!). |
Missing pkexec fixed by: Next problem:
This happens because Running pkexec with Apparently pkexec deliberately blocks most environment variables: https://stackoverflow.com/questions/42960140/environment-variables-missing-when-executing-via-pkexec Guymagr (which also uses pkexec) also uses /root as the starting dir. A possible way to at least start tapeimgr with the user home dir as the default, would be to inject in a config file which is then read back. |
All works now. |
The current launcher uses
gksudo
to run tapeimgr as root. Butgksudo
is not installed by default on BitCurator / Ubuntu 18.04LTS (Bionic). BitCurator does have thepkexec
tool (which it uses to launch Guymager as root), but running the command:Results in this error:
It seems that this not a bug, but a result of the pkexec/PolicyKit policy settings. See also:
https://groups.google.com/forum/#!topic/comp.lang.python/s4WMWIdkXMY
More on differences between
pkexec
andgksudo
:https://askubuntu.com/questions/78352/when-to-use-pkexec-vs-gksu-gksudo
And specifically on Python:
https://askubuntu.com/questions/288087/can-i-use-pkexec-in-a-python-script-or-a-desktop-file
The text was updated successfully, but these errors were encountered: