Live data from Hacker News

Dotfile madness

0x46.net

431–440 of 534 posts

Re: Dotfile madness

#431
post #207

Earlier quoted context omitted.

cmake, conky, dlv, electron, electrum, gnome, gnutls, gradle, idea, ipfs, kde, maven, npm, ohmyzsh, sonar, steam, thunderbird, veracrypt, vim, visualvm, vscode, yarn. and now the most fun: bash, zsh, git, gtk, man, wget, xorg

I'd tend to give a pass to things like shells (bash, zsh) and ssh and gpg. Not the other ones though.

They shouldn't get a pass. fish [0] is also a shell and it places all its configs sanely in `~/.config/fish/`.

[0] https://fishshell.com/

Re: Dotfile madness

#432

Earlier quoted context omitted.

Windows actually has the same dotfile infestation problem these days. I mean, you still get stuff in Documents that shouldn't be there, but on top of that you get apps - often Unix ports - that believe that %USERPROFILE% (i.e. one folder above Documents) is the appropriate place for their configs and such (it's not - that should also go into AppData\Local or \Roaming as needed). And they usually use a dot-prefixed na…

On Windows, you could move the configs elsewhere, make a symlink to them in the old place, and mark the symlink as hidden so you don't see it in explorer. Too bad this can't work on Linux because the hidden-state is encoded in the filename.

Well, the hidden-bit on Windows is really semantically equivalent to dot-prefix on Unix, and people set up their file managers to show such files for similar reasons (I don't even use Explorer, mostly). In Win10, it's even exposed as a setting in Settings | For Developers

Re: Dotfile madness

#433
post #87

Earlier quoted context omitted.

> You can change gnupg's home dir, but it would break a lot of currently functional setups if it just moved. You can just change the default: if .gnupg exists, write everything to it. If not, write to $XDG_CONFIG_HOME/gnupg/ and $XDG_DATA_HOME/gnupg/ as appropriate (deciding how to carry out the split is not obvious, but can be done). I agree, though, that calling it "shaming" is neither justified, nor useful.

> (deciding how to carry out the split is not obvious, but can be done). For this reason I like better the windows distinction, that (if I understand in correctly) distinguishes between machine-dependent files and machine independent files. for something like gnupg I would not really say what is data and what is configuration

Is that what appdata and appdataroaming are?

Re: Dotfile madness

#434
post #252

The real problem is that any app I run accesss all files I own with equal permissions. App1 and App2 shouldn’t write their data to my home, or read each other’s data, or, please, be able to write each other’s data. A video game can read my tax forms. WTF. Mobile & tablet OSs solve this. Everything has to follow. Until then, basically every app should run in a docker container. Then it can do what it wants.

Has this ever been a problem in practice for you or is it all theoretical? The tradeoff doesn't seem worth it to me.

Not the OP, but think of all the times your computer caught viruses or got hacked.

Re: Dotfile madness

#435

Earlier quoted context omitted.

I just «snap install pycharm» and it shows up ready for work. Never had an issue with a snap. Can’t recall where it’s stored, but that’s easy to determine with «which». This is on ubuntu 1{6,8}.04 fwiw.

Oh, I was talking about AppImage, not Snap. Sorry. I actually tried the Snap thing too, I don't remember how it went but I would say it was bad. I think I couldn't find a way to search for packages from the CLI.

Snap search?

Re: Dotfile madness

#436

Earlier quoted context omitted.

Mobile & tablet OSs solve this. Everything has to follow. No no no NO!!!! Think of all the things you can't do on a mobile device that you can do on a PC, or which require ridiculous workarounds like uploading from one app to some server on the Internet and then downloading again into another. Effortless data interchange is what makes computing great, and stops proprietary walled-garden data-silos from becoming the n…

Agreed, and we’re now in serious danger of “Okay button fatigue” or whatever you’d like to call it. If every normal app has to ask for permission to use your disk, you’re just going to click “Okay” when malware asks. Then the whole system was for naught.

Maybe just having some groups, like Firefox's containers. It's less secure, but a simple setup would drastically reduce the number of programs with access to important information.

Re: Dotfile madness

#438
post #252

The real problem is that any app I run accesss all files I own with equal permissions. App1 and App2 shouldn’t write their data to my home, or read each other’s data, or, please, be able to write each other’s data. A video game can read my tax forms. WTF. Mobile & tablet OSs solve this. Everything has to follow. Until then, basically every app should run in a docker container. Then it can do what it wants.

Mobile & tablet OSs solve this. Everything has to follow. No no no NO!!!! Think of all the things you can't do on a mobile device that you can do on a PC, or which require ridiculous workarounds like uploading from one app to some server on the Internet and then downloading again into another. Effortless data interchange is what makes computing great, and stops proprietary walled-garden data-silos from becoming the n…

What can you do wrt file-management on your laptop that you can't on your phone? I have a file manager on my phone that can send files to whatever app needs it; why should a random game have access to arbitrary files?

Re: Dotfile madness

#439
post #355

Earlier quoted context omitted.

If it's the entire game, it might be to allow kids to install the game without administrator privilege (read: parental knowledge/consent), though I agree that letting people choose would be best.

If your kid can write and execute in any directory on your system then they can run whatever software they like.

What? I'm not sure how that connects to my comment. I'm saying that some games install to "My Documents" to avoid requiring administrator privilege for users who might not have that privilege.

Re: Dotfile madness

#440

I'll take dotfile madness over registry madness. I have been trying to figure out where in the registry Visual Studio 2015 puts its install location so I can remove that registry value when I reinstall it to put it in it's default location. So far I've wasted a ton of time trying to accomplish this. A single file .VS2015 would be preferable.

There is a program for windows that does this if I recall correctly. It records every file and registry entry created during installation and allows you to compare snapshots of "before" and "after" installation.

I recorded the installation of VS2015 and it was a shocking number of files and registry values. 10's of thousands of each!
Post reply on HN