This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Denote applications running as root

Tags: None
(comma "," separated)
pashazz
Registered Member
Posts
10
Karma
0
OS

Denote applications running as root

Sun Dec 20, 2015 5:24 pm
Is there any way to append info to window title in case if app is running as root? Like System Settings (as root) or smth like that.
luebking
Karma
0
Clients can set such title, but for the WM there's no proper (let alone portable) way to do this.

*Iff* the client exposes it's pid on the window, the WM could
a) for a local client
b) on linux
inspect /proc/pid on the uid (what does not indicate internal leverage/drop, though)

There's some security focused distro (kubos?) which indicates the uid by the deco color (and external mechanisms/patches)

For a client with a static caption, simply try runnig "foo --title 'bar (as root)'"
User avatar
google01103
Manager
Posts
6668
Karma
25
if you interest is to visually differentiate a window running as root set root's colors and font different from your's


OpenSuse Leap 42.1 x64, Plasma 5.x



Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft