ClassiCube
ClassiCube copied to clipboard
Reported as requested :-(
----------------------------------------
Crash time: 24/07/2022 06:30:44
ClassiCube crashed.
Reason: -d argument no longer supported - cd to desired working directory instead
-- backtrace --
0x000055C6F454AEB7 - ClassiCube
0x000055C6F4547090 - ClassiCube(Platform_GetCommandLineArgs+112)
0x000055C6F44EBD2B - ClassiCube(main+107)
0x00007FAB6BC5209B - libc.so.6(__libc_start_main+235)
0x000055C6F44EBE6A - ClassiCube(_start+42)
-- memory map --
The game now no longer attempts to change the working directory on Linux, therefore I removed support for -d as it is now redundant (and was flawed to begin with since it only ever worked when specified as the last command line argument)
I realised what's wrong here, specifically:
Programs never spew hundreds of files into the current directory.
It's even disliked in programs that are supposed to do this, like zip and tar where you should include directory so it extracts to a directory named the same as the archive.
For CC the correct locations seem to be one of $HOME/.classicube if you're a traditionalist or $HOME/.config/classicube if you do "freedesktop" stuff, perhaps $HOME/.cc.net/classicube if you're into the corporate ways or $HOME/.classicube/defaultprofile if you want to directly support multiple related identities. Where the bulk of the data is actually stored can always be changed; usually by a command line argument but also by a small config in the default location.
PS: Examples include Chrome, Firefox, Thunderbird, Adobe tools (Reader and flash), Java, Vim, PuTTY, Gnome, etc etc etc