Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS X system file .DS_Store messes with boot file select #618

Closed
pgodd opened this issue Feb 24, 2015 · 2 comments
Closed

OS X system file .DS_Store messes with boot file select #618

pgodd opened this issue Feb 24, 2015 · 2 comments
Labels
bug Weird outcome is probably not what the mod programmer expected.

Comments

@pgodd
Copy link
Contributor

pgodd commented Feb 24, 2015

If OS X hidden system files .DS_Store or other hidden system files are present in the scripts directory they throw off the index variable for filenames with boot prefix and create crazy results when user attempts to select boot file.
I traced the problem through and it looks like the cure (aside from Apple removing this nutty file) is to either delete it or filter it in the file manager overrides.
File management sees the file for the purposes of a count, but seemingly cannot delete the file by name.

@erendrake erendrake added the bug Weird outcome is probably not what the mod programmer expected. label Feb 24, 2015
@Dunbaratu
Copy link
Member

We could just make the general rule that any filename starting with a dot doesn't count and should be treated as if it wasn't there. That would "theme" better for all UNIXes than just making the exception for the one hidden file Apple is a jerk about constantly re-adding after you delete it. To keep the theme uniform across OSes, we could say that all files marked as 'hidden' don't count either, for windows.

@pgodd
Copy link
Contributor Author

pgodd commented Feb 26, 2015

It looks like the place to filter these files out is archive.cs ksp API has a function to distinguish hidden files. I'll take a crack at this.

Sent from my iPhone

On Feb 24, 2015, at 7:31 PM, Steven Mading notifications@github.com wrote:

We could just make the general rule that any filename starting with a dot doesn't count and should be treated as if it wasn't there. That would "theme" better for all UNIXes than just making the exception for the one hidden file Apple is a jerk about constantly re-adding after you delete it. To keep the theme uniform across OSes, we could say that all files marked as 'hidden' don't count either, for windows.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Weird outcome is probably not what the mod programmer expected.
Projects
None yet
Development

No branches or pull requests

3 participants