Le Thu, 11 Sep 2014 00:24:20 +0530, Ritesh Raj Sarraf <r...@researchut.com> a écrit :
> On Wednesday 10 September 2014 06:41 PM, Laurent Bigonville wrote: > > Le Wed, 10 Sep 2014 16:49:42 +0530, > > Ritesh Raj Sarraf <r...@researchut.com> a écrit : > > > > > >> There's one catch though. Applications that crash during OS boot up > >> until apport-notifyd is started, they will not get tracked. My plan > >> is to later add some code in the daemon to, upon startup, look at > >> any crash reports that were generated. > > If you are calling apport-gtk (or apport-kde) directly, you don't > > need to pass the path for the .crash file directly. It should also > > take care of reports generated when the notify daemon is not > > running that were still not processed by apport (If I understood > > the code properly). > > Ummm... I'm not sure about that. If time permits, I'll look back. But > right now, we call apport-bug on the events we receive over inotify. > And that is all .crash files. > > Ubuntu does similar things. > > http://bazaar.launchpad.net/~ubuntu-core-dev/ubuntu/utopic/apport/ubuntu/view/head:/debian/apport-noui.upstart Yes they are doing that for the untended crash report submission. To interact with the user, the code is here: https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/utopic/update-notifier/utopic/view/head:/src/crash.c And then when apport-gtk is run without arguments: https://bazaar.launchpad.net/~apport-hackers/apport/trunk/view/head:/apport/ui.py#L200 > > apport-bug will internally call approriate helper UI. > >> Some time back you mentioned that root reports were not being > >> tracked by apport. That should not be the case. When apport sees a > >> report from a different uid, it triggers gksu. That'd mean we need > >> to add gksu/kdesudo to Recommends for apport. Can you test it ? > >> > > I would definitly use pkexec here instead of gksu/kdesudo. You > > should have better integration in the different desktops. > > > > Like I said in one of the previous mail, update-notifier from > > ubuntu is doing the following: > > > > if /usr/share/apport/apport-checkreports --system returns 0: > > ask if user wants to report a system crash: > > pkexec /usr/share/apport/apport-gtk > > else if /usr/share/apport/apport-checkreports returns 0: > > /usr/share/apport/apport-gtk > > else > > do nothing > > > > They are asking about the system reports (opening a GTK window) > > because pkexec on gnome-shell the thing is a bit intrusive. > > > > This process has also the advantage of allowing the user to disable > > reporting as apport-checkreports returns 2 is there are new rapports > > but that reporting is disabled. > I'll look into it later. Thanks. > -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org