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

Fixed ConvertToAbsolutePath to return a absolute path #5403

Merged
merged 1 commit into from
Nov 4, 2016

Conversation

ghostoy
Copy link
Member

@ghostoy ghostoy commented Oct 26, 2016

When starting apps from a folder of parent, such as nw ../app_root/,
icon file cannot be loaded correctly. The root cause is that
base::ReadFileToString refused for path referencing to parent
folder. However path of icon obtained by nw::Package::ConvertToAbsolutePath
is still a relative path.
The patch fixes ConvertToAbsolutePath to return a absolute path.

fixed #5402

When starting apps from a folder of parent, such as `nw ../app_root/`,
icon file cannot be loaded correctly. The root cause is that
`base::ReadFileToString` refused for path referencing to parent
folder. However path of icon obtained by `nw::Package::ConvertToAbsolutePath`
is still a relative path.
The patch fixes `ConvertToAbsolutePath` to return a absolute path.

fixed nwjs#5402
@rogerwang rogerwang merged commit bca9c7d into nwjs:nw18 Nov 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants