OpenArena / engine

OpenArena modifications to the ioquake3 engine
http://openarena.ws
GNU General Public License v2.0
212 stars 50 forks source link

Xdg home #31

Closed sago007 closed 7 years ago

sago007 commented 7 years ago

Uses XDG folder structure as described on Issue #30

Symlinks are used to make sure that references to ~/.openarena will still work for some time. Creation of these symlinks will be removed from "next major version"+1.

If no further objections I'll merge this in 24 hours.

ldrone commented 7 years ago

If XDG_DATA_HOME is on another partition it creates a symlink pointing to that partition. This is expected I suppose since you said that the move operation could fail.

I've tested other cases and it looks good.

sago007 commented 7 years ago

Yes, I thought it was safer to do the symlink in that case than trying to do a copy+delete. Whenever I see the word "delete" I always get a bit cautious.

leilei- commented 7 years ago

I can't really object because I don't use Linux regularly anymore. I just hope nothing *nix related regresses my Windows 95to10 plans is all

sago007 commented 7 years ago

I just hope nothing *nix related regresses my Windows 95to10 plans is all

As all non-trivial changes resides in code/sys/sys_unix.c there should be no problems.