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

ubuntu no icon #394

Closed
strongant opened this issue Jun 13, 2016 · 4 comments
Closed

ubuntu no icon #394

strongant opened this issue Jun 13, 2016 · 4 comments
Labels
invalid ❌ Not related to Electron Packager directly question ❓ Question about using Electron Packager. Not supported in this issue tracker.

Comments

@strongant
Copy link

var iconPath = __dirname + '/app/assets/img/appledisk.png';

function createWindow() {
mainWindow = new BrowserWindow({
width: 1000,
height: 1000,
icon: iconPath
});

when electron start, i see nothing.
tes png

@malept malept added the question ❓ Question about using Electron Packager. Not supported in this issue tracker. label Jun 13, 2016
@malept
Copy link
Member

malept commented Jun 13, 2016

See #90 (comment) and reply here.

@malept malept added needs info Issue reporter needs to provide more information for maintainers to take action invalid ❌ Not related to Electron Packager directly and removed needs info Issue reporter needs to provide more information for maintainers to take action labels Jun 17, 2016
@malept
Copy link
Member

malept commented Jun 17, 2016

According to the BrowserWindow documentation, the icon argument needs to be a NativeImage, not a path string.

Since this question isn't related to electron-packager, I'm marking it as invalid and closing it.

@malept malept closed this as completed Jun 17, 2016
@develar
Copy link
Contributor

develar commented Jun 17, 2016

Use electron-builder to build deb/rpm/etc for Linux — icons will be installed according to https://developer.gnome.org/integration-guide/stable/desktop-files.html.en

@malept
Copy link
Member

malept commented Jun 17, 2016

Creating a .desktop file shouldn't be necessary for setting an icon - it certainly doesn't for GNOME3. If it's required for Unity, I would be surprised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid ❌ Not related to Electron Packager directly question ❓ Question about using Electron Packager. Not supported in this issue tracker.
Projects
None yet
Development

No branches or pull requests

3 participants