Absolute Junction Points/Symlinks

Gabriel Ivăncescu gabrielopcode at gmail.com
Sun May 17 07:48:20 CDT 2020


On 17/05/2020 01:48, Erich E. Hoover wrote:
> I've been trying to come up with a way to solve the problem of
> creating absolute symlinks inside a WINEPREFIX, since I believe this
> is now the last barrier for the Junction Point/Symlink patches*.  The
> current staging patch includes the prefix path in the absolute
> symlink, which creates obvious problems if the prefix is ever moved to
> a new location.
> 

Hi Erich,

Can't you just make all the absolute symlinks within a prefix actually 
relative, by converting them? Then use a special pattern to recognize 
them as "absolute" so Wine knows to report them as such (any combination 
of / and . ).

The only downside is that they will break if the symlinks themselves are 
moved within the prefix by programs outside of Wine. But then again, so 
will they with your current approach, if they don't run the 'wineprefix' 
tool.

And in worst case you can still make such a tool to handle those 
symlinks if you need to move them outside of Wine, for some reason...

Normal Unix symlinks created outside of Wine shouldn't be affected.



More information about the wine-devel mailing list