Project

General

Profile

Bug #9728

KSP dumps KSP.log and PartDatabase.cfg on my home folder

Added by overlord1123 almost 8 years ago. Updated almost 8 years ago.

Status:
Confirmed
Severity:
Very Low
Assignee:
-
Category:
Application
Target version:
-
Start date:
05/15/2016
% Done:

10%

Version:
Platform:
Linux
Expansion:
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

Description

KSP dumps KSP.log and PartDatabase.cfg on my home folder.
I like to keep my home folder clean and every time I play KSP it will dump those files on my home folder.

I suggest putting the files in the $HOME/.local/share folder instead.

Kind regards,
Jimmy

History

#1 Updated by jd284 almost 8 years ago

These files go in the CWD when you run KSP. Just cd to the game directory before running it, or if you're launching it from an icon edit it to set the working directory.

#2 Updated by overlord1123 almost 8 years ago

Thanks, that indeed solved the problem.

#3 Updated by Ruedii almost 8 years ago

Shouldn't KSP use the binary's local directory instead of CWD?

I'm not sure how that's done but there is some sort of link that can be referenced. It may also be able to be referenced from a scripting shortcut in Unity.

#4 Updated by TriggerAu almost 8 years ago

  • Status changed from New to Needs Clarification

#5 Updated by overlord1123 almost 8 years ago

To summary:

KSP currently saves the KSP.log file and PartDatabase.cfg file to the current working directory.
This caused when opening KSP via a script or in my case a .desktop file the current working directory would point to the home folder(default login directory of Linux) thus placing the files there.
The temporary solution for me was to enter the command "cd <The directory where i think these files needs to be dumped>" before executing KSP. This is done in my own .desktop file

Advise:
Ruedii advised to put the files in the binary folder of KSP by default.
My advise is to put the files somewhere in the user directory (home folder) because these files are more user specific.
This can be done by using the $HOME variable.

#6 Updated by TriggerAu almost 8 years ago

  • Status changed from Needs Clarification to Updated
  • % Done changed from 0 to 10

Thanks Overlord1123, we are doing a mass cleanup on reported bugs, you can read more about it here: http://forum.kerbalspaceprogram.com/index.php?/topic/143980-time-to-clean-up-the-bug-tracker/

The TL;DR is that the Needs Clarification is not an indication of anything wrong with your report, there are soo many old bugs in the tracker that we cant give the devs a good picture of whats still an issue - so we have set up a process for all bugs from pre 1.1.3 to collect the info and get them confirmed for the devs.

I'll set this one to updated so somoene can confirm it for us as well

#7 Updated by sal_vager almost 8 years ago

KSP has traditionally avoided using hidden folders for user data to aid in portability, so writing to .local wouldn't help in that regard.

#8 Updated by sal_vager almost 8 years ago

  • Status changed from Updated to Confirmed

Can confirm this behaviour though, the files are written to the working directory.

Also available in: Atom PDF