Recent

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

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 324
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: 1441
  • 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.1 r65061 FPC 3.3.1 r49223 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.1 r65070 FPC 3.3.1 r49223 macOS 11.2.3 aarch64 Xcode 12.4
Lazarus 2.1 r61574 FPC 3.3.1 r42318 FreeBSD 12.1 amd64 VMware VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 FPC 3.2.0 Win10 Parallels VM

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 324
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