Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.46k stars 949 forks source link

[Bugfix] Fix failed attempt to open proc files while lacking permission. #1347

Open goddessfreya opened 4 years ago

goddessfreya commented 4 years ago

When started in the tty, powerline9k tries to open the stat file of the login process. Because the login process belongs to root, it's existence is hidden from non-privileged users. This will result in an error like __p9k_detect_terminal:27: no such file or directory: /proc/3434/stat.

Like #1336, this error appears to be ultimately harmless, but never the less annoying.

Signed-off-by: Hal Gentz zegentzy@protonmail.com

goddessfreya commented 4 years ago

ping @dritter