There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

drwho ,
@drwho@beehaw.org avatar

BRB, putting in a PR to make /etc mode 1777 by default.

walthervonstolzing ,
@walthervonstolzing@lemmy.ml avatar

vim now has an option to put the .vim folder in ~/.config; though I’m not sure if the default plugin/package & syntax folders can be set under ~/.local/share.

PlexSheep ,

You can also just use neovim instead, among other improvements, it’s configs are in the xdg dirs

daniyeg ,

حق

umbrella ,
@umbrella@lemmy.ml avatar

yes please!

sfera ,

Are there abstractions available around the XDG specifications to resolve the proper paths?

dan ,
@dan@upvote.au avatar

Use the environment variables.

sfera ,

I do. But you might have misunderstood my question. I was not asking for assistance. I was just curious if there are libraries available which allow easy adoption of the XDG specification. I imagine that such abstractions would be useful for multi-platform software and generally to lower the bar for adoption.

dan ,
@dan@upvote.au avatar

Depends on the programming language. In C# for example, there’s an API to get special folder paths that works in all supported environments (Windows, Linux, MacOS, Android, and I think iOS too). On Linux, it includes fallbacks in case the environment variables aren’t set.

MonkderDritte ,

What language? Python has PyXDG.

In shell it’s simply


<span style="color:#323232;">XDG_DATA_HOME="${XDG_DATA_HOME:-"$HOME"/.local/share}"
</span><span style="color:#323232;">XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-"$HOME"/.config}"
</span><span style="color:#323232;">etc.
</span>
sfera ,

Thanks, I did not know about PyXDG. That was the type of thing I was asking about.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines