Live data from Hacker News

Show HN: boxxy – Control where Linux programs put files, without symlinks

github.com

141–150 of 250 posts

Re: Show HN: boxxy – Control where Linux programs put files, without symlinks

#143

I wonder if this could be used to move the obnoxious ~/snap directory.

While reading more about this I found out about the ~/.hidden file which I'm pretty excited about. The following hides the folder from Thunar & Dolphin (and presumably other file managers):

echo snap >> ~/.hidden

Re: Show HN: boxxy – Control where Linux programs put files, without symlinks

#144
post #11
post #7

Earlier quoted context omitted.

You might be surprised how many of us were obsessed with Boxxy lol.

YUP, she was the OG camgirl, sadly got all the worst parts of the gross attention / fame without any of the perks/money that Belle Delphine gets now

Original!? JenniCam would like a word.

https://en.wikipedia.org/wiki/Jennifer_Ringley

Re: Show HN: boxxy – Control where Linux programs put files, without symlinks

#145
post #117
post #105

> suggested usage > alias aws="boxxy aws" (repeat for other tools) If you could find a way to somehow intercept without requiring aliasing, this would be amazing. Also, as it is, isn't it problematic that programs might call others (outside of your shell, not respecting its aliasing). A neat semi-solution (still worse than transparent interception if somehow possible) would be to have a boxxy-run script sym-linkable…

I mean, you can just run "boxxy aws" if you don't want to make an alias. That's your solution for "intercept without requiring aliasing" As the program intercepts file APIs for all processes launched under it, it should handle subprocesses just fine.

No I mean as in if I run foobar, which itself happens to call aws under the hood.

Now I need both boxxy foobar and boxxy aws configured for the same ~/.aws redirection.

Re: Show HN: boxxy – Control where Linux programs put files, without symlinks

#146
post #94

Earlier quoted context omitted.

The really fun part is when you have a program that has ~/.programX, but also ~/.programXy, ~/.programX_cache, ~/.programxrc, ~/.programx_init, ~/.programx/a_whole_directory, ~/.otherthing, ~/.maybe_a_database_for_good_measure.sqlite, ~/.and_the_kitchen_sink_too. And that's not even getting into questions like "can I nuke ~/.programX_db to clear the program's cache without losing my configurations?". I agree that the…

That's why that kind of software uses a .programX directory, where everything like that can be put in. Look at ~/.wine for example... config files, whole C drive, everything in one simple folder. Want to upgrade to an alpha version to test something, but don't want to break anything that's now working? Just backup that one single folder. Restore or migrate configuration to another computer? One single folder. Remove…

If you have a mass of cached data that shouldn't be backed up would you rather just exclude .cache or investigate what files/directories every individual app uses.

Re: Show HN: boxxy – Control where Linux programs put files, without symlinks

#147

I hate when applications ignore the XDG spec, but you know what I hate more? the XDG spec! I don't want all my pictures to go in Pictures, all my documents in Documents, etc. I want everything from each project to go in the directory for that project. I don't need it to read my mind, but when I save a document to a new directory and then I want to save a spreadsheet too... I want that new directory to be a top-line c…

hypothetical, but, could easily make a script that, upon cd, checks all above directories for `.xdg-root`, and while inside, has envvars set to use said folder as a root for Documents/Pictures/Etc folders

not a terrible idea, has some good points, but gui apps don't cd in a way that can be hooked, and usually i get around to popping a terminal window after i'm working on a project rather than before. (also, cd isn't so easy to script, I'd have to use a bash function, but i'd probs have to make a up new name to get used to, cdproj or something, otherwise any "headless" scripts would be do it too

And I frequently jump from desktop to desktop for multiple projects, and my terminal on that desktop is likely to already be where I want to be. Do gui apps reliably reload xdg all the time, or only at startup?

anyway, keeping it in mind, it might just be worth the trouble to click a scripted icon on each desktop :)

Re: Show HN: boxxy – Control where Linux programs put files, without symlinks

#148

Earlier quoted context omitted.

God, that title sent me down memory lane https://www.youtube.com/watch?v=6bMLrA_0O5I

and then that day when the stars aligned and Boxxy met the Overly Attached Girlfriend https://www.rouming.cz/archived/boxxy_overly_attached_girlfr... my favorite Boxxy autotune remix is this one https://www.youtube.com/watch?v=7Q7cqT3BiOI

Boxxy and Laina? Might need to get that framed.

Re: Show HN: boxxy – Control where Linux programs put files, without symlinks

#149

I hate when applications ignore the XDG spec, but you know what I hate more? the XDG spec! I don't want all my pictures to go in Pictures, all my documents in Documents, etc. I want everything from each project to go in the directory for that project. I don't need it to read my mind, but when I save a document to a new directory and then I want to save a spreadsheet too... I want that new directory to be a top-line c…

You can set the XDG environment variables in Direnv maybe?

Re: Show HN: boxxy – Control where Linux programs put files, without symlinks

#150

If anyone would like to actually force the non-compliant applications to do the thing correctly, then xdg-ninja is your friend [0]. The script looks at all the dotfiles in the home folder and tells you what environment variables you have to set to make them follow XDG base directory specifications, in the cases where that's not possible it will show you the related GitHub issue or similar bug tracking option with the…

This is fantastic! Thanks for the share. Reminds me of lostfiles for Arch. https://man.archlinux.org/man/community/lostfiles/lostfiles....

Was thinking this would be a useful tool, same as a tool that would show you where environment variables are being set, and which ones override what.

Post reply on HN