New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added option to kill the activity #626
Conversation
|
Here is a direct link to the bug report, https://bugs.sugarlabs.org/ticket/1646 |
|
Nice! I think it would be better to add an alert though, informing the user the risks of closing the activity in this way, with an option to cancel. Please add it :) |
|
I don't know if it is something to be worry about but I tried this with Simcity, and it killed my sugar instance, although It works with normal activities |
|
It seems that when it isn't an activity, the kill option tries to kill with PID 0 ("All processes in the current process group are signaled"). |
|
Fixed, at least part of it, it doesn't show the option to kill in non-activities. |
|
Thanks for the patch. I've reviewed it and have comments;
Please force push once you're ready. |
|
|
Thanks.
|
|
|
Sorry I didn't notice it before, but
|
|
No, that is not something I want. I'll fix it. |
It is now possible to kill an activity from its handler on the frame. It is not possible to kill non-activity instances yet. This is a GCI 2015 task: https://codein.withgoogle.com/tasks/4832285018816512/ Bug ticket #1646: https://bugs.sugarlabs.org/ticket/1646
|
Fixed ;). |
|
Thanks. Good work. I'm finished with my review. I'll let others review now. |
|
Please no more submenues. Submenues use the Gtk.Menu based code, so you On Mon, Dec 14, 2015, 2:49 PM Ignacio Rodríguez notifications@github.com
|
|
Well, It was just a proposal. I think showing stop, and force stop at same time is weird to user.. Or Maybe show it if stop fails.. Just ideas
|
|
Hmm, regarding the design part, there doesn't seem to be a consensus... What about something like this? (similar to what @i5o mentioned)
This way we don't add more sub-menues and we still provide a way force stop? @quozl @nemesiscodex @i5o @samdroid-apps opinions? |
|
@tchx84, yes, that would also be acceptable to me. @samdroid-apps, @i5go? (@163gal, since you're main contributor of this design change, can you please tell me if you are willing to do what our maintainer @tchx84 has suggested once consensus is reached? I'd like a force stop feature in my OLPC fork, and have already merged and tested 440883f, and am happy to revert.) |
|
@quozl, of course. |
|
The design idea sounds great for me. +1 Ignacio Rodríguez 2015-12-22 20:04 GMT-03:00 Ezequiel Pereira notifications@github.com:
|
|
Show a alert is complicated. Where should be displayed? Maybe add a notification? |
|
Since adding an alert is hard, maybe we use @tchx84's design inside a palette:
|
|
@samdroid-apps, when the user click stop, the pallete will be closed (that is how palettes work). I am not sure in this case, but in general, in sugar, the palettes are created every time that are displayed. After N seconds, if the activity don't close, you can set a flag, and the palette can add the option "force stop" the next time that is opened. Probably will not be very intuitive to the user, but is a solution to a corner case. Other than that, I think 3 seconds is too short for hardware like the XO-1 |
|
+1 @godiard sounds good |
|
I am closing old pull requests today to take the out of the review queue. Please feel free to re-open it and update the patch as per the discussion. |
Send a TERM then a KILL signal to an activity. Originally from #626 Signed-off-by: James Cameron <quozl@laptop.org>


It is now possible to kill an activity from its handler on the frame.
This is a GCI 2015 task: https://codein.withgoogle.com/tasks/4832285018816512/