You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When starting app in NW_ROOT folder by following CLI: nw ../APP_ROOT/. In the app, open a window with icon set to icon.png. The icon for the window is now broken.
The text was updated successfully, but these errors were encountered:
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.
fixednwjs#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#5402
Assume following directory:
When starting app in
NW_ROOT
folder by following CLI:nw ../APP_ROOT/
. In the app, open a window with icon set toicon.png
. The icon for the window is now broken.The text was updated successfully, but these errors were encountered: