frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Thailand Is Using Long Range Acoustic Devices (LRAD)

1•laikerkh•38s ago•0 comments

XAI Sues Apple/OpenAI over AI Competition, App Store Rankings

https://www.reuters.com/legal/litigation/elon-musks-xai-sues-apple-openai-over-ai-competition-app...
1•rickdeckard•1m ago•1 comments

Meta Has Won the Smart Glasses Race

https://www.wired.com/story/meta-has-already-won-the-smart-glasses-race/
1•PotatoNinja•1m ago•0 comments

ShipUI new Angular component library

https://docs.shipui.com/
1•simonbitwise•6m ago•0 comments

Disclaimer: I am not a webdev, this PR was vibe coded

https://github.com/olegshulyakov/llama.ui/pull/69
1•WhereIsTheTruth•11m ago•0 comments

Ask HN: Someone has committed 20K+ LoC to a PR, exhausting my CI & AI workflows

1•zacian•12m ago•0 comments

Can OpenAI free us from our screen and smartphone obsession?

https://linuxcommunity.io/t/can-openai-free-us-from-our-screen-and-smartphone-obsession/5393
2•ashitlerferad•13m ago•0 comments

Do I not like Ruby anymore? (2024)

https://sgt.hootr.club/molten-matter/maybe-i-like-python-now/
1•Vedor•16m ago•0 comments

Laravel-Prose

https://github.com/sulimanbenhalim/laravel-prose
1•sulimanbenhalim•17m ago•0 comments

Roast My Code: Golang Url Shortener

https://github.com/iamnotagentleman/url-shortener-golang-api
1•velieroglu•18m ago•0 comments

August 26 Is Canned Beer Day in Japan – A Journey Through Summer and Design

https://kiri53.com/%f0%9f%8d%ba-august-26-is-canned-beer-day-in-japan-a-journey-through-summer-an...
1•palmfacehn•19m ago•0 comments

SpaceX to start sending Dragon capsules to Mars in 2 years

https://twitter.com/SpaceX/status/780859270011113472
1•TheAlchemist•30m ago•1 comments

Interactive Map of Paul's First Century Travels in Roman World

https://www.intofarlands.com/map-of-pauls-journeys
4•intofarlands•33m ago•1 comments

Show HN: I built AI Agents that automate comprehensive due diligence on stocks

https://agents.decodeinvesting.com
1•clark-kent•34m ago•0 comments

The Smoital System – A method of timekeeping on Mars based on UTC

https://www.benjoffe.com/smoitus
1•benjoffe•35m ago•1 comments

AI-generated scientific hypotheses lag human ones when put to the test

https://www.science.org/content/article/ai-generated-scientific-hypotheses-lag-human-ones-when-pu...
2•josephbenedict•35m ago•0 comments

Can AI suffer? Big tech and users grapple with unsettling questions of our times

https://www.theguardian.com/technology/2025/aug/26/can-ais-suffer-big-tech-and-users-grapple-with...
4•beardyw•45m ago•2 comments

Bill introduced to exempt Pope Leo from high US taxes

https://www.romereports.com/en/2025/08/24/bill-introduced-to-exempt-pope-leo-from-high-us-taxes/
1•nxobject•49m ago•0 comments

Cameras installed in bin lorries – Stop householders dumping rubbish incorrectly

https://www.independent.ie/irish-news/panda-to-install-cameras-in-bin-lorries-to-stop-householder...
2•austinallegro•49m ago•1 comments

Show HN: I integrated my from-scratch TCP/IP stack into the xv6-riscv OS

https://github.com/pandax381/xv6-riscv-net
4•pandax381•51m ago•1 comments

The Emotional Resonance of Design

https://opuslabs.substack.com/p/the-emotional-resonance-of-design
1•opuslabs•55m ago•0 comments

Transport for London launches campaign targeting 'headphone dodgers'

https://www.theguardian.com/uk-news/2025/aug/26/transport-for-london-launch-campaign-targeting-he...
2•zeristor•56m ago•0 comments

Dangerous Advice for Software Engineers

https://www.seangoedecke.com/dangerous-advice/
2•gxhao•1h ago•0 comments

Game Genie declassified: That summer I played 230 Game Boy games

https://www.eurogamer.net/game-genie-declassified-that-summer-i-played-230-game-boy-games
3•grubbs•1h ago•0 comments

How to make money on crypto with AI

https://ascn.ai/ai-agent-crypto
1•Timjan•1h ago•1 comments

Use .config to store your project configs

https://dot-config.github.io/
3•joshka•1h ago•0 comments

Reading for pleasure falls by 40% in US

https://www.ft.com/content/5dcf01d6-7a70-4990-9ae6-217d07c9d674
6•XzetaU8•1h ago•1 comments

Enigma Crypto Transmission on Saturday August 30, 2025 @ 2000 GMT

https://www.radiomarine.org/mrhs-events
2•austinallegro•1h ago•0 comments

Technology's Impact on Creativity: Shaping and Enhancing the Creative Landscape

https://andrewggibson.com/2023/12/27/technology-impact-creativity/
2•thoshOO•1h ago•0 comments

Meta Talks World-Lock Rendering for AR/Mr at Hot Chips 2025

https://www.servethehome.com/meta-talks-world-lock-rendering-for-ar-mr-at-hot-chips-2025/
2•dannyobrien•1h ago•0 comments
Open in hackernews

macOS dotfiles should not go in –/Library/Application Support

https://becca.ooo/blog/macos-dotfiles/
102•zdw•2h ago

Comments

JoshTriplett•2h ago
It seems like the best of both worlds, here, would be to put the files in ~/.config/yourprogram, and symlink that to `~/Library/Application Support/org.example.yourprogram`. That would satisfy folks expecting to find it in either place. The only folks it wouldn't satisfy would be those complaining about the files being present in one of those places at all, and that seems like the least of the concerns compared to making sure people find it.
re•1h ago
I doubt anyone running Unix-style command-line/TUI tools where the config files are expected to be edited by hand by the user is expecting to find it in the Application Support directory; that directory is not a directory that Apple intends for users to ever interact with directly:

> Put app-created support files in the Library/Application support/ directory. In general, this directory includes files that the app uses to run but that should remain hidden from the user. [emphasis added]

JoshTriplett•1h ago
> where the config files are expected to be edited by hand by the user

Many good command-line tools manage their config files automatically, in addition to allowing the user to hand-edit them. I don't think that materially changes this, though: people may still expect to find them in `~/.config`.

joshka•1h ago
(I maintain a fairly popular TUI library), and as a CLI/TUI user on macOS, I dislike the App Support folder a lot. But even though I dislike it, I'd expect that apps for mac should put their files there because the XDG spec doesn't apply to macOS. It's the wrong place, but the technically correct one. The right thing to do is fix the spec, and then fix the apps / libs to follow that.

I wrote a top level thread that this should be fixed by adding an explicit "I want XDG even though I'm on macOS" setting somewhere. Probably another environment variable.

re•1h ago
How does the XDG spec not apply to macOS, and what "fix" are you proposing? https://specifications.freedesktop.org/basedir-spec/latest/ https://www.theregister.com/2024/10/11/macos_15_is_unix/

> Probably another environment variable

Having any of the existing XDG_* environment variables set is an incredibly-clear indication that the user wants the XDG spec followed.

pjmlp•36m ago
Because it was designed for Linux distros, by Linux distros, not UNIX vendors.

Where is XDG on Open Group standards?

mbreese•1h ago
And I’d also argue that the App Support folder doesn’t apply to CLI/TUI config files either. Apple doesn’t force CLI programs it distributes from storing files in App Support. If this were the case, wouldn’t you also expect the .ssh folder to be relocated from $HOME to App Support on a Mac?

Much like the original author, my opinion is that you should do the least surprising to the user and if that’s not what the spec says, so be it.

JdeBP•1h ago
Missing from the "hidden from the user" argument is the fact that .config, and dotfiles in general, are also hidden from the user. It's not the defining distinction that one may think it to be.
re•46m ago
Command-line binaries are also typically installed at locations hidden from the user (/bin, /opt/homebrew, ~/.bin, ~/.cargo/bin). Further indication that the "app"-oriented Apple documentation is intended only to apply to "apps", which are installed at /Applications or ~/Applications.
tux3•1h ago
It seems like the roadblock is that most cli tools don't want to think too hard about XDG in the slightest, and they delegate to standard directory libraries.

Those libraries aren't normally in the business of creating symlinks, and if previous discussions are any indications, convincing them to add XDG support at all - let alone by default - seems on the same level as pleading Vim/Emacs users to just try Emacs/Vim

eviks•35m ago
The best of both worlds is respecting user configuration, not pollution
orlp•1h ago
I and others have brought this up with the dirs Rust crate maintainer but they refuse to see it this way: https://codeberg.org/dirs/dirs-rs/issues/64. It's very frustrating.

I now use a combination of xdg + known-folders manually:

    [target.'cfg(windows)'.dependencies]
    known-folders = "1.2.0"

    [target.'cfg(not(windows))'.dependencies]
    xdg = "2.5.2"
to get the config directory:

    use anyhow::{Context, Result};

    #[cfg(windows)]
    fn get_config_base_dir() -> Result<PathBuf> {
        use known_folders::{KnownFolder, get_known_folder_path};
        get_known_folder_path(KnownFolder::RoamingAppData).context("unable to get config dir")
    }

    #[cfg(not(windows))]
    fn get_config_base_dir() -> Result<PathBuf> {
        let base_dirs = xdg::BaseDirectories::new().context("unable to get config dir")?;
        Ok(base_dirs.get_config_home())
    }
CGamesPlay•1h ago
I think there should be two crates in rust-land. The answer by @soc makes sense for apps, as the article discusses. Many (most?) people building Rust programs aren't making apps and so shouldn't be using this crate, which clearly and definitively only supports MacOS "Apps".
JoshTriplett•1h ago
It sounds like https://docs.rs/etcetera/0.3.2/etcetera/index.html provides sufficient flexibility for apps that want this.
quotemstr•1h ago
> they refuse to see it this way

That's why the long-term future of app development is containers. It is not possible, on a human level, to convince people to lift even the lightest of fingers for the common good.

Consider https://specifications.freedesktop.org/basedir-spec/latest/

The XDG specification has been around for 22 years. It has real benefits for users. It's trivial to implement. Yet even in the year of our lord two thousand and twenty five I still see TypeScript developers complain that it's "too hard" to comply with "this BS" and just stick files in $HOME.

I've long given up on solving technical coordination problems by appealing to the universal goodness of humanity. The only thing that works is to sandbox applications at tightly as possible and direct all their access to the external world through narrow interfaces that do their best to limit shenanigans.

Gigachad•1h ago
How is it even common good though? The articles main argument is that the author didn't expect the files there, not that it was causing any kind of issue. The problem is that people disagree where a config file should go, and there's no compelling reason why either of them are right or why it even matters.
eklavya•1h ago
I have absolutely no opinion on "common good" or "standard" here.

I wholeheartedly agree about the containers part though, just have everything within a folder in a container somewhere so I don't have to keep googling where X stores Y and still failing half the time.

happymellon•39m ago
It's a shame that MacOS doesn't have an equivalent for Boxxy.
joshka•1h ago
From my previous recollection, there's an issue for this in just about every rust crate that handles these dirs. The right way to fix this is fix the spec, then make the libs adhere to the spec.
Null-Set•1h ago
How would you fix the spec? Add a line explicitly stating the /Library/Application Support dir is only for applications with a bundle ID, instead of just implying it?
re•49m ago
For clarity, is this what you're referring to as "the spec"? https://developer.apple.com/library/archive/documentation/Fi...
bowsamic•1h ago
Why is that soc guy so angry and rude about it?
dclowd9901•50m ago
Not sure, but I correlate their behavior with someone who day to day has very little power or control over their life externalizing their angst this way.
orlp•39m ago
I assume they've made up their mind and are now just tired of discussing it. I don't know why they refuse to even consider an option for it.
x3n0ph3n3•19m ago
Certainly doesn't make me want to become a Rust contributors.
dagmx•13m ago
dirs is a library project not part of Rust the language’s stdlib. You’ll find just as surly responses in many libraries across many languages. It feels a bit absurd to judge the language ecosystem by the maintainer of a single library.
42lux•3m ago
Did you read the blog or the comments in here? Especially the entitlement and tone of it/them. I guess he's over it and still gets nagged and bullied for his decision. It's understandable.
forrestthewoods•13m ago
> I'm not writing an app, just a CLI tool

but CLI tools are applications

jitl•1h ago
I don’t think I’ve ever encountered a command line tool that makes this mistake, hooray for me. On the other hand lots more today support XDG_CONFIG_* and don’t litter ~ with random .dir stuff. I really like the new era of CLI tools that’s trying to be excellent in every dimension. Hopefully whoever needs to see this does and gets with the program! Although if it puts this much bee in your bonnet you can always open a pr
wpm•1h ago
Both options are wrong on macOS.

My configurations are preferences, stored in ~/Library/Preferences.

Even better if you store those as property lists and hook into CFPreferences so I can manage them with configuration profiles and use the defaults command to query and modify my preferences without having to open the app or read some 4000 line long JSONC file with 20 lines of settings and ~4000 lines of bad documentation.

JoshTriplett•1h ago
To the best of my knowledge, it's incorrect to store anything other than plists in that directory.

And if you're writing a cross-platform application, it's not necessarily correct to have a completely different file format on different OSes. Not all Windows applications should store all their preferences in the registry, either.

rezonant•1m ago
> Not all Windows applications should store all their preferences in the registry, either.

I'd honestly be fine if none of them did.

eviks•21m ago
The semantic distinction you're trying to make is artificial, but also explicitly against Apple spec, so no, your approach is the wrongest as no-one would expect you edit configs there

> This directory contains app-specific preference files. You should not create files in this directory yourself.

Also

> defaults command to query and modify my preferences without having to open the app or read some 4000 line long JSONC file with 20 lines of settings and ~4000 lines of bad documentation.

I'd prefer the convenience of an editor to read the real 5 lines and 5 lines of comments of the settings I've changed (instead of the made up 4000000) and having a diffable config rather than some binary plist nonsense and relying on a clunky defaults cli. I'd even be prepared to shed the complexity of profiles for this basic conveniences

troupo•1h ago
> given that macOS is a Unix by way of BSD.

Moreover, most versions of MacOS are certified Unix: https://www.opengroup.org/openbrand/register/

hamandcheese•1h ago
Strongly agree with the authors take. Is anyone aware of an alternative to dirs in the rust universe which follows XDG?
sunshowers•49m ago
When I last encountered this (agreeing with the article author about the correct location for CLI tools being XDG_CONFIG_HOME), I found https://crates.io/crates/etcetera.
evanelias•1h ago
The Go standard library uses ~/Library/Application Support as well [1]. Given the Unix credentials of Golang's top folks, I would assume there's a good argument in favor of this decision?

[1] https://pkg.go.dev/os#UserConfigDir

pjmlp•44m ago
UNIX, Plan 9 and Inferno, aren't exactly the same as macOS, even if macOS is a certified UNIX.

POSIX exists, because out of UNIX System V, every clone went down their own merry way.

joshka•1h ago
I wrote elsewhere that I think the solution to this is to add another variable to the XDG Base Directory Specification to explicitly opt into using XDG variables, and then to support that flag on libraries that target Windows / MacOS and which would otherwise choose mac Application Support / Windows AppData folders.
pasc1878•27m ago
No just accept that XDG_CONFIG_DIR is not always ~/.config
pjmlp•56m ago
Ah, after all there aren't only the devs on Windows ecosystem that don't follow the guidelines where to place the configuration files.
pdpi•54m ago
If your binary is supposed to live in `/Applications`, by all means put its config in `~/Application Support`. If it lives in `/bin` or somewhere similar, or if its default or system-wide configuration go in `/etc`, config goes in `~/.config`.
zarzavat•46m ago
The hint is in the name. "Application Support" has a space in it, so it's not designed to be used for CLI config.
eviks•46m ago
Yes, they shouldn't, but try to convince people who misunderstood some poorly written Apple spec that they're wrong...
sakjur•41m ago
> But suppose we accept that the XDG specification only applies to some Unix operating systems, despite making no mention of this.

the very first paragraphs on specifications.freedesktop.org says this:

> Freedesktop.org is a project to work on interoperability and shared base technology for free-software desktop environments for the X Window System (X11) and Wayland on Linux and other Unix-like operating systems. > We are not a formal standards body. The standards published on these pages are active or tentative (if marked as such) specifications which desktop environments may implement to improve mutual compatibility, share code and pool resources.

Deferring to XDG_CONFIG_HOME on MacOS if it exists makes a lot of sense as it conveys a clear intent from the user and the convention has grown popular. I’m not sure that the default ~/.config from the XDG specification is automatically better than ~/Library/Application Support by appeal to freedesktop.org’s authority.

And please don’t move configuration files around between releases without really being intentional about it.

pasc1878•30m ago
the XDG_CONFIG_HOME should point to ~/Library/Preferences.

The issue is that often everyone assumes that XDG_CONFIG_HOME is ~/.config

The idea of having a variable is that it could be anywhere,

blueflow•36m ago
Follow the link to the XDG spec, look who is the 3rd author. There is no reason for MacOS or the BSDs to implement a systemd spec. A specific example: XDG_RUNTIME_DIR is a feature of pam_systemd and nothing else.

This is a recurring pattern that systemd documentation is sold as "neutral" standard. The UAPI group is another example of this.

SulphurCrested•13m ago
Towards the end TFA claims that Apple’s bundled command line utilities, including zsh and vim, put their dotfiles in ~/.config. They don’t. They put them in the traditional BSD place, the user’s home directory ~/. Looking at mine now, I see .bash_login, .emacs (wow! that’s old), .lldb, .lldbinit, .vimrc, .swiftpm, .z{profile,env,rc} and a few others. I see no ~/.config directory.

My personal practice when writing command line utiities for macOS is to use the macOS API to write settings (previously known as “preferences”) into ~/Library/Preferences, so they can interoperate with any GUI versions of them I might like to write, and for the utilities themselves to have command line options to control those settings. As a sibling comment suggests, you do need to avoid name space collisions. You can use a reverse DNS name, or some companies are big enough just to use their company name. They do appear as .plist files but are actually maintained by a daemon – which nicely avoids race problems with multiple processes updating settings.

If I were writing a portable utility which had a dotfile with a documented format the user was expected to edit, I would make it a dotfile under the home directory.

~/Library/Application Support is really more for per-user static data, like presets and templates, things that are known in a GUI by a string in some dialogue but not necessarily thought of by the user as a file.

marcyb5st•2m ago
I put them in a dotfiles directory and use `stow`[1] to symlink the contents to where applications expect them to be. To this day I still have to find anything that has problems taking a symlink instead of a file.

I am pretty happy with this setup as it means that all my dotfiles are in a single root folder that I manage through a git repo.

[1] https://www.gnu.org/software/stow/

cedws•1m ago
XDG is a Linux-centric spec. If we the people want it to be OS-agnostic, it needs to be vetted and designed for that. Until then I don’t see why macOS applications must adopt XDG, despite it being my preference.