View Issue Details

IDProjectCategoryView StatusLast Update
0037753LazarusInstallerpublic2020-09-18 02:26
ReporterTrevor Roydhouse Assigned ToMattias Gaertner  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version2.0.10 
Summary0037753: Lazarus installed in non-writable directory -> problems when recompiling
DescriptionA Mac user installs Lazarus and life is good. Sometime later, the user adds a library/component and Lazarus recompiles itself and life is good. The next time Lazarus is started, life is a disaster... the library/component has disappeared.

The issue is that because Lazarus was installed in a directory which is not writable by a normal user (even when that user has admin privileges), Lazarus deposits the new executable in the pcp directory (normally .lazarus in the user's home directory). The next time the user starts Lazarus by clicking on the Lazarus icon in the Applications folder, the original executable is used and not the one that is now located in the pop directory. Unfortunately the Forum is littered with users who have run into this issue (and not just in the English sections of there Forum).

Suggested solution: Install Lazarus in the Applications directory in the user's home directory (/Users/[name]/Applications). If it does not exist it is created when a user uses an Installer and chooses to install an application for a specific user rather than all users of the machine.
TagsNo tags attached.
Fixed in Revision
LazTarget-
Widgetset
Attached Files

Activities

Mattias Gaertner

2020-09-16 10:06

manager   ~0125568

This bug has already been fixed in fixes svn. I plan to upload a new pkg, then heard that fpc plans to do so as well. I will try to upload a new lazarus pkg this weekend.

Mattias Gaertner

2020-09-18 02:26

manager   ~0125605

On second thought it is only half fixed. Compiling and restart works. But when the user double clicks in Finder on the "Lazarus" app, it starts the default lazarus executable instead of the custom built one with user packages. Probably on Mac the pkg should use startlazarus as "Lazarus".

Issue History

Date Modified Username Field Change
2020-09-16 08:14 Trevor Roydhouse New Issue
2020-09-16 10:06 Mattias Gaertner Assigned To => Mattias Gaertner
2020-09-16 10:06 Mattias Gaertner Status new => assigned
2020-09-16 10:06 Mattias Gaertner LazTarget => -
2020-09-16 10:06 Mattias Gaertner Note Added: 0125568
2020-09-18 02:26 Mattias Gaertner Note Added: 0125605