Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

App path changed #240

Closed
black-snow opened this issue Dec 1, 2016 · 1 comment
Closed

App path changed #240

black-snow opened this issue Dec 1, 2016 · 1 comment

Comments

@black-snow
Copy link
Contributor

Just leaving this here for documentation. We had a major version change and this ain't no big deal.

I guess due to switching to the 1-package.json-structure the appPath has changed. Previously I could correctly get the path to some image in app/images with:

import {app} from 'electron'
import jetpack from 'fs-jetpack'

//...

let appPath = app.getAppPath()
let appFS = jetpack.cwd(appPath)
let imgPath = appFS.path('images', 'icon.png')

This pointed to /path/to/my/project/app/images/icon.png - now it's pointing to /path/to/my/project/images/icon.png.

@szwacz Dunno if we should mind.

@szwacz
Copy link
Owner

szwacz commented Dec 3, 2016

Thanks @black-snow added reference to this ticket to release notes https://github.com/szwacz/electron-boilerplate/releases/tag/5.0.0

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

No branches or pull requests

2 participants