[Bug 51633] Re: Doesn't return correct system exit code

2008-12-14 Thread Udude
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

[Bug 51633] Re: Doesn't return correct system exit code

2008-12-09 Thread Jens
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

[Bug 51633] Re: Doesn't return correct system exit code

2007-07-24 Thread wodz
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

[Bug 51633] Re: Doesn't return correct system exit code

2007-03-17 Thread Gustavo Noronha Silva
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? --

[Bug 51633] Re: Doesn't return correct system exit code

2007-03-14 Thread Martin Pitt
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

[Bug 51633] Re: Doesn't return correct system exit code

2006-08-23 Thread Jouni Mettala
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 51633] Re: Doesn't return correct system exit code

2006-07-25 Thread Sebastian Heinlein
** 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 51633] Re: Doesn't return correct system exit code

2006-07-05 Thread Sebastian Heinlein
** 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