tabcmd icon indicating copy to clipboard operation
tabcmd copied to clipboard

Docs: mention possible behavior changes when run under sudo

Open jacalata opened this issue 4 years ago • 2 comments

when we create an executable from this code, if users run the executable as sudo , home_path will be /root/ and not home. Maybe we should just add a note when we create/test executable to not run as sudo

jacalata avatar Feb 11 '22 03:02 jacalata

@jacalata this is a good point. Should we consider having the app detect whether the user is running as sudo and either prevent it, or show a warning message? I've seen other CLI which can cause unexpected results when run as sudo/root do this.

bcantoni avatar Feb 11 '22 21:02 bcantoni

I think the only unexpected behavior here would be if you switch between running it under sudo and not, and even then it would just be unable to re-use a session so you'd have to log in again. It doesn't seem like enough of a problem to block usage, for sure.

jacalata avatar Feb 11 '22 21:02 jacalata