Re: Goal proposal: Replace gksu because incompatible to at-spi
Hi Martin, First of all, thanks for your reply. On 03/04/2010 10:48 PM, Martin Pitt wrote: Francesco Fumanti [2010-03-04 21:49 +0100]: Consequently, I wonder whether it can be possible to create an Ubuntu 10.10 goal (for Ubuntu 10.04 it might be to late) that aims to completely remove gksu from Ubuntu and replacing it by something else. Another option than gksu-polkit would be pkexec which comes with polkit directly. It has the big advantage of sharing the UI with all the other polkit dialogs, so that we finally stop having multiple different authentication dialogs. Would that work? I don't know; I am trying to figure out how to use pkexec to start synaptic; but did not have success with it so far. Could anybody please confirm that pkexec is intended to start GUI-applications like synaptic and if possible point to some documentation about how to do it (or could anybody explain it to me)? (According to the following documentation, pkexec might not be intended for it.) Moreover, is there any smart way to find all the applications or components that use gksu on a default Ubuntu desktop? Cheers, Francesco. -- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
Re: Goal proposal: Replace gksu because incompatible to at-spi
2010/3/6 Francesco Fumanti francesco.fuma...@gmx.net: Could anybody please confirm that pkexec is intended to start GUI-applications like synaptic and if possible point to some documentation about how to do it (or could anybody explain it to me)? From http://hal.freedesktop.org/docs/polkit/pkexec.1.html: The environment that PROGRAM will run in, will be set to a minimal known and safe environment in order to avoid injecting code through LD_LIBRARY_PATH or similar mechanisms. In addition the PKEXEC_UID environment variable is set to the user id of the process invoking pkexec. As a result, pkexec will not allow you to run e.g. X11 applications as another user since the $DISPLAY environment variable is not set. So, it doesn't look like it is. -- Siegfried-Angel Gevatter Pujals (RainCT) Free Software Developer 363DEAE3 -- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
Goal proposal: Replace gksu because incompatible to at-spi
Hi, As you might probably know, gksu is not compatible to at-spi. [1] Consequently, I wonder whether it can be possible to create an Ubuntu 10.10 goal (for Ubuntu 10.04 it might be to late) that aims to completely remove gksu from Ubuntu and replacing it by something else. GNOME has decided to remove bonobo from their desktop and once that is done, at-spi will be replaced with at-spi2. http://live.gnome.org/Accessibility/BonoboDeprecation Thus gksu will not be incompatible anymore to the accessibility framework, but can the fact that GNOME is getting rid of bonobo not also be a reason to remove gksu from Ubuntu? (When I say this, I am assuming that gksu depends on bonobo, but in reality, I don't know whether that is really the case. Please, anybody correct me if I am wrong.) I hoped that gksu-polkit could be a candidate for the replacement of gksu; so I edited the menu item that launches synaptic and replaced gksu with gksu-polkit. Unfortunately, version 0.0.1-1 of gksu-polkit that is shipping in the lucid universe repository does not even show the authentification dialog. However, the situation gets better with version 0.0.2-1 that I downloaded from debian: http://packages.debian.org/sid/libgksu-polkit0 http://packages.debian.org/unstable/main/gksu-polkit It shows the authentification dialog, allows me to start synaptic with root privileges without the desktop becoming unresponsive; synaptic also seems fully fontional, but the gksu-polkit process takes cpu; a kill -9 is necessary to terminate the process. Here is the bug that I filed about the issue; maybe somebody with more knowledge can improve the bug thread. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572333 Maybe the gksu-polkit is not the best approach to remove gksu from Ubuntu; there might be a better way to do it.(I don't know; I am not a real developer.) The real aim of this email is to raise the question about whether it makes sense for Ubuntu to completely remove gksu from the system; if so, to start the discussion about how it could be done and to have this point considered at least as a goal for Ubuntu 10.10. Cheers, Francesco. [1] How to verify the incompatibility: - Enable at-spi by putting a checkmark in the Enable assistive technologies setting of the System-Preferences-Assistive Technologies control panel. - Enable an assistive tool that uses at-spi; for example, enable the simulated secondary click in the Accessibility tab of the mouse control panel. (System-Preferences-Mouse) - Try to start the Synaptic Package Manager by using the corresponding menu item in System-Administration.The desktop becomes partially unresponsive because this menu item is configured to use gksu that is not compatible to at-spi. (You can switch to a virtual terminal (f.ex.:ctrl+lt+f1) and kill the gksu process to make the desktop responsive again.) -- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
Re: Goal proposal: Replace gksu because incompatible to at-spi
Hello Francesco, Francesco Fumanti [2010-03-04 21:49 +0100]: Consequently, I wonder whether it can be possible to create an Ubuntu 10.10 goal (for Ubuntu 10.04 it might be to late) that aims to completely remove gksu from Ubuntu and replacing it by something else. Another option than gksu-polkit would be pkexec which comes with polkit directly. It has the big advantage of sharing the UI with all the other polkit dialogs, so that we finally stop having multiple different authentication dialogs. Would that work? Martin -- Martin Pitt| http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org) -- Ubuntu-devel-discuss mailing list Ubuntu-devel-discuss@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss