Recent

Author Topic: Lazarus IDE application Icon (macOS Big Sur)  (Read 1795 times)

LeoBruno

  • Jr. Member
  • **
  • Posts: 61
Lazarus IDE application Icon (macOS Big Sur)
« on: April 25, 2021, 07:07:36 pm »
Hi:

I´m a long time delphi developer, but a Lazarus/FPC newbie.

After successfully setting up my development environment, I noticed that the Lazarus IDE shortcut icon (macOS dock bar) is empty, and it changes after the IDE starts.

How to correct this and why dos this happens?
Lazarus 2.2.2 FPC 3.2.2 Windows (qt5) Anchor Docking

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: Lazarus IDE application Icon (macOS Big Sur)
« Reply #1 on: April 25, 2021, 11:23:51 pm »
Hi:

I´m a long time delphi developer, but a Lazarus/FPC newbie.

After successfully setting up my development environment, I noticed that the Lazarus IDE shortcut icon (macOS dock bar) is empty, and it changes after the IDE starts.

How to correct this and why dos this happens?

Hi LeoBruno,

Which version of FPC/Lazarus did you install?
-ASB: https://www.BrainWaveCC.com/

Lazarus v2.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

LeoBruno

  • Jr. Member
  • **
  • Posts: 61
Re: Lazarus IDE application Icon (macOS Big Sur)
« Reply #2 on: April 26, 2021, 12:00:51 am »
Hi:

I´m a long time delphi developer, but a Lazarus/FPC newbie.

After successfully setting up my development environment, I noticed that the Lazarus IDE shortcut icon (macOS dock bar) is empty, and it changes after the IDE starts.

How to correct this and why dos this happens?

Hi LeoBruno,

Which version of FPC/Lazarus did you install?

Hi!

Thank you for replying.

Lazarus 2.0.12 and FPC 3.2.0.

I don't know if it helps, but I have recompilled the IDE in order to use docked forms.

Bellow is a print screen with the empty icon which gets docked if the IDE isn' running.

Lazarus 2.2.2 FPC 3.2.2 Windows (qt5) Anchor Docking

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Lazarus IDE application Icon (macOS Big Sur)
« Reply #3 on: April 26, 2021, 02:01:22 am »
That is the icon for the startlazarus.app. The Wiki explains the reason for startlazarus.

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: Lazarus IDE application Icon (macOS Big Sur)
« Reply #4 on: April 26, 2021, 07:43:27 am »
That is the icon for the startlazarus.app. The Wiki explains the reason for startlazarus.

Linking the Lazarus app from the dock instead of the startlazarus.app provides a stable icon, here tested on macOS Mojave.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Lazarus IDE application Icon (macOS Big Sur)
« Reply #5 on: April 26, 2021, 09:58:29 am »
Linking the Lazarus app from the dock instead of the startlazarus.app provides a stable icon, here tested on macOS Mojave.

I tried this on Big Sur, then used OPM to add some components and when the IDE rebuilds and restarts you end up with the startlazarus icon which, when clicked, turns into the Lazarus icon until you exit and it's back to the startlazarus icon. The original Lazarus icon is still in the dock but when clicked creates another dock icon for Lazarus so you end up with two. If you keep the second Lazarus icon in the dock, it reverts to the startlazarus icon when you exit Lazarus.

 

TinyPortal © 2005-2018