News for hackers. Stuff that matters.
Re:I'm “still afraid to use spaces in file names” years old by selfhoster11 on Thursday November 11, 2021 @09:44AM (#29188314)
GoboLinux does exactly that: https://en.m.wikipedia.org/wiki/GoboLinux
Re:I'm “still afraid to use spaces in file names” years old by 0des on Thursday November 11, 2021 @09:55AM (#29188443)
Wow, thanks for the reply, nice find! I did some poking around on my Linux system and even re-arranging the home folder was a task of its own because the system kept trying to replace folders in their original places. I will do some digging in to Gobo and see how they're handling this. Thanks again for pointing this out.
Re:I'm “still afraid to use spaces in file names” years old by dotancohen on Thursday November 11, 2021 @11:03AM (#29189415)

  > the system kept trying to replace folders in their original places.
This is the file that you want:

  $ cat ~/.config/user-dirs.dirs 
  XDG_DESKTOP_DIR="$HOME/"
  XDG_DOWNLOAD_DIR="$HOME/Downloads"
  XDG_TEMPLATES_DIR="$HOME/"
  XDG_PUBLICSHARE_DIR="$HOME/"
  XDG_DOCUMENTS_DIR="$HOME/"
  XDG_MUSIC_DIR="$HOME/"
  XDG_PICTURES_DIR="$HOME/"
  XDG_VIDEOS_DIR="$HOME/"
Re:I'm “still afraid to use spaces in file names” years old by yjftsjthsd-h on Thursday November 11, 2021 @11:47AM (#29190042)
That helps, but be warned that there are still programs running around that just hardcode their paths
Re:I'm “still afraid to use spaces in file names” years old by kaba0 on Thursday November 11, 2021 @01:42PM (#29191412)
Cries in nixpkgs

(Anyone who tried to package a program that hardcodes the “usual” binary paths know the pain)

Re:I'm “still afraid to use spaces in file names” years old by account42 on Friday November 12, 2021 @04:10AM (#29197498)
Doesn't nix itself hardcode the nix store path though?
Re:I'm “still afraid to use spaces in file names” years old by kaba0 on Friday November 12, 2021 @05:57AM (#29198052)
Afaik there is an option to change it, but it is not advisable as that will break the binary cache and you are left with compiling everything yourself. This is due to a technical limitation in that different packages can contain paths everywhere and thus they are inherently part of the resulting hash, on which other packages can depend.
Re:I'm “still afraid to use spaces in file names” years old by lostlogin on Thursday November 11, 2021 @12:04PM (#29190270)
You’re clearly a more capable user than me, but even so, take care. The time I accidentally moved /etc has scarred me for life.
Re:I'm “still afraid to use spaces in file names” years old by tech2 on Thursday November 11, 2021 @01:38PM (#29191359)
Early on in my Linux-using-life I made the mistake of deleting /etc. That was a learning experience like no other :)
Re:I'm “still afraid to use spaces in file names” years old by mixmastamyk on Thursday November 11, 2021 @02:16PM (#29191906)
Since Live CDs/Flash drives were invented, I wouldn't worry about this stuff any longer. Certainly have your personal files in a centralized location and backed up first.

Probably the easiest way to experiment these days is to create a VM and make snapshot, then start knocking down walls, just to see when and where the house collapses. Then revert and try something new.

Re:I'm “still afraid to use spaces in file names” years old by genewitch on Thursday November 11, 2021 @03:36PM (#29192811)
There's a computer game that deletes random files when you make a mistake or lose.

There could be a competition!

Re:I'm “still afraid to use spaces in file names” years old by simonblack on Thursday November 11, 2021 @06:41PM (#29194701)
A couple of weeks after moving to UNIX from MSDOS, I thought I'd remove lots of unnecessary 'dot-directories' from the /tmp directory. I was root as I had no concept of being a 'normal user'.

So I ran two simple commands:

     cd /tmp
     rm -fr .*
and wondered why it was taking so long. <grin>
Re:I'm “still afraid to use spaces in file names” years old by account42 on Friday November 12, 2021 @04:15AM (#29197521)
At least that doesn't happen today anymore. From bash:

> When a pattern is used for pathname expansion, the character ``.'' at the start of a name or immediately following a slash must be matched explicitly, unless the shell option dotglob is set. The filenames ``.'' and ``..'' must always be matched explicitly, even if dotglob is set.

Re:I'm “still afraid to use spaces in file names” years old by acquacow on Friday November 12, 2021 @07:56AM (#29198829)
I did that on my NAS a few years ago. I had copied in a bunch of directories from a mac and they all had tons of dot files in each dir that were showing up on my windows machines. I popped open a terminal and did the exact same thing and wiped most of the NAS out =P Good thing I had it mirrored with my other synology.
Re:I'm “still afraid to use spaces in file names” years old by gavinray on Thursday November 11, 2021 @10:56AM (#29189316)
How do you deal with lack of being able to just point to "/usr/lib/include" or other things when saying "here's my directory of shared libs"?

This is definitely interesting though, and an improvement I would say

Re:I'm “still afraid to use spaces in file names” years old by JonathonW on Thursday November 11, 2021 @11:25AM (#29189740)
GoboLinux symlinks everything into an FHS-ish structure under /System/Index/ so you still have a single place where binaries/libraries/includes/etc. live. (There are also symlinks from /usr/lib, /usr/bin, and others into /System/Index/ for compatibility with programs where those might be hardcoded.)
Re:I'm “still afraid to use spaces in file names” years old by short12 on Thursday November 11, 2021 @12:25PM (#29190533)
That actually seems like some low hanging fruit to go on a commit spree correcting code that hard codes paths
Re:I'm “still afraid to use spaces in file names” years old by oblio on Thursday November 11, 2021 @02:29PM (#29192062)
GoboLinux is old enough to vote in most countries.

So either those low hanging fruits are higher than they seem, or we're all just a bunch of dwarves.

My bet is on the second option.

Re:I'm “still afraid to use spaces in file names” years old by matheusmoreira on Thursday November 11, 2021 @05:38PM (#29194176)
It is low hanging fruit as far as the software is concerned. Simply parameterize all paths.

Will upstream accept such patches though? Sounds unlikely to me.

Re:I'm “still afraid to use spaces in file names” years old by DarkWiiPlayer on Thursday November 11, 2021 @10:28AM (#29188876)
Dammit, I wanted to be the one to mention gobo linux [HN deleted my laughing emoji ffs]
Re:I'm “still afraid to use spaces in file names” years old by andai on Thursday November 11, 2021 @05:47PM (#29194253)
Beat the system ʕ•ᴥ•ʔ