Attention electron developers: under no circumstances do I want your entire app in .config.
You feel the curling of the monkeyโs paw; the entire app is now in ~/.local/AppName
but please donโt hard-code ~/.config
or $HOME/.config
. Use the XDG_CONFIG_HOME
environment variable, with $HOME/.config
as a fallback if itโs not set.
Many programming languages have a cross-platform implementation of this built in to their standard library. C# has Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
which uses XDG_CONFIG_HOME on Linux, local AppData on Windows, and whatever is the correct thing on MacOS (not very familiar with how things work on MacOS)
On macOS, the correct thing to use is usually NSUserDefaults API, or - [NSFileManager URLsForDirectory:inDomains:]
with NSApplicationSupportDirectory (gives a list of paths to find your config file in, like XDG_CONFIG_DIRS)
Thanks for the info. It looks like thatโs what .NET / C# uses: https://github.com/dotnet/runtime/blob/2b60d82ef3e87876128b7f71922a1b72908b6fcf/src/libraries/System.Private.CoreLib/src/System/Environment.GetFolderPathCore.Unix.cs#L103
Itโs still a lot better that creating random .folders per application in your home.
Nah just put it in ~/.thing-config.d/01-0x45- 110100100-main.options-extra2cache.swp
along with three godzillion other files like itโs normal and very sane for users who edit such files to have the big picture of the default configuration dreamed up by some utterly deranged lunatic be spread across enough files to represent all known stars in the galaxy, standards are for losers amirite /s
Idk what happened there either. After updating from Android 12 to 13, this is how it was ever since. And now Iโm used to it.
Of course. Everything else is hosted on otherโs servers, and here I have the choice between dozens of storages, mainly selfhosted ones. The only exception being KeePassXC - but thatโs what rclone/rsync are for. So the DB resides on a WebDAV share on my Nextcloud now.
Hey! Would you mind guiding me as to what is going on in this picture? Is this an APP that allowed to SSH into your server? You got my attention with this picture, and Iโm curious to hear more.
Itโs Termux, basically a fully fletched terminal for Android. So you can install various tools via apt, and use them, for example yt-dlp, ffmpeg, gcc, python etc. And yes, you can also use SSH, both as server and client. I use it very often to connect to my servers on the go.
You can even use chroot to basically run a distro of your choice.
XDG? OpenDesktop? Dunno what that is, time to dump everything into ~/.myawesomeapp
Oh, no. Donโt even make it a hidden folder, it needs to be right there, front and center. And make sure you use a bunch of capital letters in the name, because youโre so fucking important.
It really depends for what. I donโt think nginx config should be in $HOME/.conf/
First thing I do on a new install is purge the home folder of every default folder, and symlink Downloads to another partition.
Whoever standardized that shit in there like Templates needs to be shot with a ball of their own feces.
Unless itโs running as your own user as part of your session. /etc
for system-wide and ~/.config
for your own user makes a lot of sense.