-
Notifications
You must be signed in to change notification settings - Fork 245
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
/usr/bin/sugar does not exit if window is closed #952
Comments
I would like to work on this issue. |
@sarthak0527 feel free to open a PR when you have one. |
I'm new to open source , could you guide me how can I solve this issue ? |
Not really, if we knew how to solve the issue we would just go ahead and do so. |
@sarthak0527 a great place to start would be reproducing the issue, you'll have to run it from GNOME though. |
@chimosky I have installed the sugar . Now what should I do next? |
The issue is;
Have you run GNOME Terminal? When GNOME Terminal is running, have you run When the Sugar window is closed, what do you observe about the Sugar process? |
I did run GNOME Terminal. After running /usr/bin/sugar , it is running but in system monitor it is not showing . Also when the sugar window is closed ,I oberserve nothing about the process. |
System monitor does not show all processes. The shell command When you say you observe nothing about the process, what do you mean? Does the process exit, or is it still running as described in this issue? You have to be familiar with Linux process creation and termination to be able to detect this issue. |
@quozl i would like to work on this |
My commiserations to you. Good luck! |
Hi there! May I know what was the expected output ? |
|
Hmm! as I ran this command in my terminal, I noticed that it changed my cursor style and replaced it with the one in sugar environment, also in the output of |
Yes, that's right. Sugar was never intended to be run from any terminal, but rather as an X windows session manager, or the All logs are kept in Changing cursor is one of the steps of Sugar startup ( So given your description I'd say Sugar failed to start, and the explanation will be in the logs. That isn't what happened in this issue though. |
Please guide me based on my analysis on this issue. This is why no processes appear to be running even after closing the GNOME terminal but cursor is changed. Upon reviewing the logs, I also noticed that when we trigger Sugar from GNOME terminal, it fails because screen 0 is already in use. However, the root cause of this issue is the cursor change in the code. To resolve this issue, we could change the cursor only after verifying whether our screen is already in use or not. To further improve these kinds of issue we could use proper error handling (Try and Except Block). I would be happy to contribute more to Sugarlabs. Best regards, Bhavya Bansal |
G'day, and thanks for your input. The problem described is that the process does not exit. The process does continue running. If you think that changing the cursor theme has anything to do with it, then please do test and let us know your result, either here or as a pull request. As for me, I don't see how the cursor theme can cause a process not to exit. I was puzzled as to why you brought it up, then I remembered someone mentioned it. Don't be distracted by comments unrelated to the issue. Please, in future copy and paste messages or code into the issue rather than use screenshots; your screenshots are (a) not read by a screenreader, (b) not searchable, (c) not visible when reading mail using mutt or high security mail readers. See Creating and highlighting code blocks. I've checked the mailing list pending administrative actions and there are none. I've checked and your mail address [email protected] is not subscribed. Please do subscribe. |
Thanks for guiding @quozl . I have attached the error logs that we are getting after running Sugar from the GNOME terminal.
So, what I am thinking is, if we could add a validation check at the beginning of our main code to determine whether the screen is a window manager or not, it might help. Right? This way, before executing any process or job, our code will stop its execution." |
That's a problem, but it's not this issue. I don't want to talk about it here in this issue. Please take it to another issue or better yet make a pull request to fix it. |
@quozl Raised PR, Please Review. |
As a data point, the Logout option does terminate the Sugar process on 0.118 on Debian 11 Bullseye. |
Running
/usr/bin/sugar
from a GNOME Terminal under X11 is not something we had planned, but if it is done and the window is closed, Sugar does not exit.The text was updated successfully, but these errors were encountered: