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

safety check when writing includes file #38

Closed
marcelveldt opened this issue Aug 8, 2015 · 3 comments
Closed

safety check when writing includes file #38

marcelveldt opened this issue Aug 8, 2015 · 3 comments
Labels

Comments

@marcelveldt
Copy link
Contributor

As reported by Ronie on the Kodi forums, a race condition occurs when writing the script-skinshortcuts-includes.xml file.

http://forum.kodi.tv/showthread.php?tid=178294&pid=2074446#pid2074446

When writing the file, a safety check should be done if the skin directory hasn't changed since the menu build started.

The issue happens when you launch a skin that utilizes the skinshortcuts script, the menu building starts working and in the meanwhile you switch to another skin.

Offcourse this issue would be gone as soon as the recent changes hit the repo (as the menu build time has been improved to almost zero) but still this safety check would be good.

@marcelveldt marcelveldt added the bug label Aug 8, 2015
@marcelveldt
Copy link
Contributor Author

I can take a look at this tomorrow if nobody beats me to it.

@marcelveldt
Copy link
Contributor Author

haha, you're fast :-)

@ghost
Copy link

ghost commented Aug 8, 2015

Saw the issue on a trawl-through the forum :) Change referenced above saves the skin dir when the script is started, and then saves to that directory - so changing skin won't affect where the file is saved to. Would be good to get Ronie to confirm she's happy with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant