GNOME bug 549389, which has a couple of duplicates, says that if a window is owned by an app which is running as a user other than the user who’s running Metacity, then it should have “(as fred)” on the titlebars, just as it would have “(on chiark)” or whatever if you were running the app remotely. The obvious very useful case here is to have “(as root)” when you’re running a program as root, to remind you to be careful.
The code to do this exists in Bugzilla now, so we can check it into trunk at any point.
Other suggestions, some better than others, have included:
- Use an alternative theme for root windows
- Draw a red border around the window
- Use a label (a space as big as the titlebar immediately below it) saying “Root process”
- Say “(as superuser)” instead of “(as root)” in case users don’t know what “root” means
- Have a hint not to write the username in the titlebar so that apps which generally run as root, like the package manager, don’t have baffling information all over their titlebar.