ClassiCube icon indicating copy to clipboard operation
ClassiCube copied to clipboard

Reported as requested :-(

Open rdebath opened this issue 3 years ago • 2 comments
trafficstars

----------------------------------------
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 --

rdebath avatar Jul 24 '22 05:07 rdebath

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)

UnknownShadow200 avatar Jul 24 '22 13:07 UnknownShadow200

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

rdebath avatar Jul 25 '22 07:07 rdebath