Hmm, why not start up another process for indicator-appmenu? Depending on if it's a root application, or a user application, decides which one is displayed up there at the moment. This allows security, hopefully.
The idea is, the user's indicator-appmenu is the only one running while under normal opperations. But as soon as gksu is called, it will not only start up the called application, but also a root process for indicator-appmenu. It should also check to see if indicator-appmenu is already running as root, so it doesn't duplicate it multiple times, instead using the same one if multiple programs are being run as root (like gedit and synaptic).
When elevated privileges are dropped (when no root applications are running), it should probably quit. Or maybe not, to improve startup times on further instances of root programs. Up to you.
And of course, if a non-root-user window is highlighted, the bar shows the indicator-appmenu running as the current user.
This also potentially fixes the problem if people run programs as other users, not just as root, as it can start an indicator-appmenu for each user programs are being run as.
Hmm, why not start up another process for indicator-appmenu? Depending on if it's a root application, or a user application, decides which one is displayed up there at the moment. This allows security, hopefully.
The idea is, the user's indicator-appmenu is the only one running while under normal opperations. But as soon as gksu is called, it will not only start up the called application, but also a root process for indicator-appmenu. It should also check to see if indicator-appmenu is already running as root, so it doesn't duplicate it multiple times, instead using the same one if multiple programs are being run as root (like gedit and synaptic).
When elevated privileges are dropped (when no root applications are running), it should probably quit. Or maybe not, to improve startup times on further instances of root programs. Up to you.
And of course, if a non-root-user window is highlighted, the bar shows the indicator-appmenu running as the current user.
This also potentially fixes the problem if people run programs as other users, not just as root, as it can start an indicator-appmenu for each user programs are being run as.