Recent

Author Topic: Lazarus project files in a symbolic link folder  (Read 1069 times)

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 349
Lazarus project files in a symbolic link folder
« on: April 19, 2021, 08:19:19 pm »
For some reason I use a symbolic link for a folder where I store a Lazarus project ("ln -s ...").

However when I open a Lazarus project in a symbolic link folder, Lazarus shows real paths for all project files, including .lpi file.

Is it possible force Lazarus "think" that a symbolic link folder is a "real" folder?

On Windows it works correctly with "mklink /j ...".

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1682
  • Former Delphi 1-7, 10.2 user
Re: Lazarus project files in a symbolic link folder
« Reply #1 on: April 21, 2021, 08:34:51 am »
In Windows mklink /j creates a HARD link, not a symbolic link. In macOS you cannot create hard links to directories, only symbolic links.
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 x86_64 Xcode 13.1
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 aarch64 Xcode 13.1
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 VM

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 349
Re: Lazarus project files in a symbolic link folder
« Reply #2 on: April 21, 2021, 08:58:25 am »
Thanks, I've understood.

 

TinyPortal © 2005-2018