|
Lines 345-352
Link Here
|
| 345 |
HomeDirectory = getenv("HOME"); // get users home directory |
345 |
HomeDirectory = getenv("HOME"); // get users home directory |
| 346 |
CurrentDirectory = getenv("PWD"); // get TuxDash's working directory |
346 |
CurrentDirectory = getenv("PWD"); // get TuxDash's working directory |
| 347 |
TuxHomeDirectory = new char[strlen(HomeDirectory)+strlen("/.tuxdash")+1]; // align space for the string containing the path to tuxdash's config directory |
347 |
TuxHomeDirectory = new char[strlen(HomeDirectory)+strlen("/.tuxdash")+1]; // align space for the string containing the path to tuxdash's config directory |
| 348 |
TuxWorkingDirectory = new char[strlen("./")+1]; |
348 |
TuxWorkingDirectory = new char[strlen("/usr/share/games/tuxdash/")+1]; |
| 349 |
strcpy(TuxWorkingDirectory, "./"); |
349 |
strcpy(TuxWorkingDirectory, "/usr/share/games/tuxdash/"); |
| 350 |
strcpy(TuxHomeDirectory, HomeDirectory); |
350 |
strcpy(TuxHomeDirectory, HomeDirectory); |
| 351 |
strcat(TuxHomeDirectory, "/.tuxdash"); |
351 |
strcat(TuxHomeDirectory, "/.tuxdash"); |
| 352 |
|
352 |
|