244 points

Attention electron developers: under no circumstances do I want your entire app in .config.

permalink
report
reply
130 points

You feel the curling of the monkeyโ€™s paw; the entire app is now in ~/.local/AppName

permalink
report
parent
reply
28 points
*

Even better, ~/.local/share/

permalink
report
parent
reply
3 points

I meanโ€ฆ At least thatโ€™s more correctโ€ฆ If the monkeyโ€™s paw is giving us things that are better but not ideal iโ€™m gonna use the fuck out of it.

permalink
report
parent
reply
4 points
*

As an alternative, how about my entire cache in .config?

Looking at you VSCode, with 3 unique cache folders.

permalink
report
parent
reply
132 points
*

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)

permalink
report
reply
10 points

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)

permalink
report
parent
reply
7 points

Never new about this! Thatโ€™s very handy

permalink
report
parent
reply
1 point

In Python the equivalent library is platformdirs

permalink
report
parent
reply
83 points

Itโ€™s still a lot better that creating random .folders per application in your home.

permalink
report
reply
38 points
*

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

permalink
report
parent
reply
18 points

permalink
report
parent
reply
67 points

The font in the screenshot makes me angry.

permalink
report
parent
reply
11 points

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.

permalink
report
parent
reply
4 points

I like it. Makes me think of teletext

permalink
report
parent
reply
6 points

KeePass user ๐Ÿซก

permalink
report
parent
reply
2 points

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.

permalink
report
parent
reply
4 points

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.

permalink
report
parent
reply
7 points

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.

permalink
report
parent
reply
2 points
*
Deleted by creator
permalink
report
parent
reply
2 points

Oof

permalink
report
parent
reply
79 points

XDG? OpenDesktop? Dunno what that is, time to dump everything into ~/.myawesomeapp

permalink
report
reply
62 points

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.

permalink
report
parent
reply
25 points

Android Studio

permalink
report
parent
reply
9 points

And Arduino.

permalink
report
parent
reply
4 points

At least it gives you the option to change it

permalink
report
parent
reply
22 points

Just dump it in ~

permalink
report
parent
reply
38 points

It really depends for what. I donโ€™t think nginx config should be in $HOME/.conf/

permalink
report
reply

Right? It goes into ~/Documents/

SMH my head

permalink
report
parent
reply
51 points

Everything into ~/Downloads/ until the partition is full.

permalink
report
parent
reply
-1 points

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.

permalink
report
parent
reply
26 points
*

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.

permalink
report
parent
reply
6 points

They want ~/etc/ in their home, which just seems like a renamed ~/.config/.

permalink
report
parent
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

Hint: :q!


Sister communities:

Community rules (click to expand)

1. Follow the site-wide rules
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like โ€œevery user of thingโ€.
  • Donโ€™t get baited into back-and-forth insults. We are not animals.
  • Leave remarks of โ€œpeasantryโ€ to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
4. No recent reposts
  • Everybody uses Arch btw, canโ€™t quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. ๐Ÿ‡ฌ๐Ÿ‡ง Language/ัะทั‹ะบ/Sprache
  • This is primarily an English-speaking community. ๐Ÿ‡ฌ๐Ÿ‡ง๐Ÿ‡ฆ๐Ÿ‡บ๐Ÿ‡บ๐Ÿ‡ธ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.

ย 

Please report posts and comments that break these rules!


Important: never execute code or follow advice that you donโ€™t understand or canโ€™t verify, especially here. The word of the day is credibility. This is a meme community โ€“ even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, donโ€™t remove France.

Community stats

  • 7.4K

    Monthly active users

  • 1.4K

    Posts

  • 76K

    Comments