I'm also having issues w/this behavior. My scripts count on gksudo exit code to
error when the executed command fails.
Does anyone know about any workarounds/gksudo replacements?
I don't even mind launching a new terminal running sudo or something in that
direction...
--
Doesn't return
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?
--
Doesn't
In my opinion gksu should return exit code of wrapped application. It is dumb
to have graphical su/sudo behaving differently than console su/sudo:
[EMAIL PROTECTED]:~$ sudo false; echo $?
Password:
1
[EMAIL PROTECTED]:~$ gksu false; echo $?
Password:
0
--
Doesn't return correct system exit code
I agree... this is done like this to let applications calling gksu know
if an error to the process of scaling privileges has happened. We could
change that to a message printed to stderr instead, and make gksu return
the error code returned by the application. What do you think, Michael?
--
I just spent 20 minutes banging my head over my code before it occured
to me that gksu was to blame. And indeed:
$ gksu false; echo $?
0
This is wrong.
--
Doesn't return correct system exit code
https://launchpad.net/bugs/51633
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
gksu and sudo are doing exactly same thing now. Closing. Feel free to
reopen if this is still a problem.
** Changed in: gksu (Ubuntu)
Status: Unconfirmed = Fix Released
--
Doesn't return correct system exit code
https://launchpad.net/bugs/51633
--
ubuntu-bugs mailing list
** Bug 54048 has been marked a duplicate of this bug
--
Doesn't return correct system exit code
https://launchpad.net/bugs/51633
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
** Bug 51940 has been marked a duplicate of this bug
--
Doesn't return correct system exit code
https://launchpad.net/bugs/51633
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs