Recent

Author Topic: After Upgrade to Ubuntu 20.04 Lazarus binarys starting very slow  (Read 2451 times)

tola2000

  • Newbie
  • Posts: 2
Hello,

this week I installed the new Ubuntu 20.04 on my Lenovo T460s. Under Ubuntu 18.04 and Lazarus IDE 1.8 I wrote some tools (with GUI), witch are located as binaries  in my Home directory.
After the upgrade I observed the same Problem with every binary: After the execution of the program (with double click of from cli) it takes always about 30 sec. until the Program showed itself up on the screen. BUT when I started the same program with sudo the GUI showed up immediately.
In Both cases the program works normally after the starting phase.
Does anyone observe the same behavior? Is therr a cure?

Regards
tola

tola2000

  • Newbie
  • Posts: 2
Re: After Upgrade to Ubuntu 20.04 Lazarus binarys starting very slow
« Reply #1 on: May 02, 2020, 10:31:26 pm »
I've found the solution. The Problem occurs in Ubuntu 19.10 as well!
Here the Link to the Solution: https://askubuntu.com/questions/1184774/some-applications-on-ubuntu-19-10-very-slow-to-start

And here in clear text:
You have to edit your .profile  in your  home-directory. Insert the following Line:
Code: [Select]
export QT_STYLE_OVERRIDE=cleanlooks
But I have not understand why!
 * Why have this line such an Impact?
 * Why did it wok despite I did not choose qt as LCLWidgetType?

Therefore i don't close the thread.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12786
  • FPC developer.
Re: After Upgrade to Ubuntu 20.04 Lazarus binarys starting very slow
« Reply #2 on: May 02, 2020, 11:18:25 pm »
Sounds like your desktop/windowmanager might use QT, and some of its theming clashes with Lazarus somehow. Maybe it is relatively slow, and lazarus does something too often.

But that is more a question for the team that makes that windowmanager.


 

TinyPortal © 2005-2018