-
Notifications
You must be signed in to change notification settings - Fork 254
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
Delay needed when loading a script #480
Comments
There are other reports where |
I wasn't able to reproduce the issue but, IMHO, this can be true. I've seen examples of it in Qt itself, although they weren't related to the current problem. |
Try launching the script from a desktop file. On my system, I can toggle the bug by setting terminal=true (good) or false (bad).
Also I noticed the bug happen when launching the script from xterm.desktop, but not urxvt.desktop. Sounds like it could stem from the environment, but I could not find a relevant variable yet. Might be somewhat related to #447 |
I found the bug is caused by the
|
A rendering problem affects 'graphics' terminal programs such as
top
andhtop
when they are launched using a script. A workaround consists in adding a short delay at the head of the script.Expected Behavior
Correct rendering
Current Behavior
Incorrect rendering
Possible Solution
Not sure how it is handled in C++, but in PyQt sometimes this type of problem is caused by a premature function call somewhere, which can be delayed until next loop with QtCore.QTimer.singleShot(0, function)
Steps to Reproduce
Exemple code below. As shown, by adding
sleep 0.1 &&
the problem is fixed.System Information
The text was updated successfully, but these errors were encountered: