Comment 6 for bug 51633

Revision history for this message
Jens (sirion) wrote :

I have scripts that use something like

sudoCmd="sudo"
[...]
"$sudoCmd" "$0" "$@"

In the [...]-part there is code that decides whether a terminal is connected or not and then changes $sudoCmd if not.

Is there another way for me to query whether the programm called with gksu(do) succeeded?