runelite / launcher

Launcher for RuneLite
https://runelite.net
BSD 2-Clause "Simplified" License
65 stars 95 forks source link

Added support for XDG directory standards #108

Open mazunki opened 2 years ago

mazunki commented 2 years ago

For a long time I've had to create symlinks in my system so that Runelite doesn't pollute my home directory. Sufficient to say, this is not fun.

I added support for XDG standards, and is now the default on both Linux and MacOS versions.

Furthermore, we should now use OS.getXDG("config", "runelite"), OS.getXDG("data", "runelite"), OS.getXDG("cache", "runelite"), and OS.getXDG("state", "runelite"), OS.getXDG("pictures", "runelite") to appropriately place stuff. Replace "runelite" with "runescape" if that makes more sense for certain things.

With this, we should move towards separating runescape-specific stuff from runelite specific stuff, and make sure plugins also follow up. We should probably also move configuration into the configuration directory, and add a configuration file for each plugin under a subdirectory.

Important note for Linux and MacOS users: Manually move the directories from ~/.runelite into the ones specified above! Nothing will be lost if you don't do it, but it's not automatic.