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

browserWindow has no icon #1282

Closed
Kilian opened this issue Apr 8, 2016 · 13 comments
Closed

browserWindow has no icon #1282

Kilian opened this issue Apr 8, 2016 · 13 comments
Labels
bug design A design change, especially one which needs input from the design team. fixed-with-brave-core This issue will automatically resolved with the replacement of Muon with Brave Core. needs-info Another team member needs information from the PR/issue opener. OS/unix-like/linux wontfix

Comments

@Kilian
Copy link

Kilian commented Apr 8, 2016

browserWindow needs an icon for brave to show an icon on Ubuntu or you get a grey icon:
selection_001

This should be added here:

let mainWindow = new BrowserWindow(Object.assign({
and it should be a png.

@luixxiul
Copy link
Contributor

luixxiul commented May 14, 2016

Confirmed, @bbondy Is branding for Linux ongoing?

@bbondy
Copy link
Member

bbondy commented May 14, 2016

would love a PR to fix this @luixxiul

@luixxiul luixxiul added design A design change, especially one which needs input from the design team. bug/good-first-bug labels May 15, 2016
@luixxiul
Copy link
Contributor

luixxiul commented May 23, 2016

On Ubuntu it has been already implemented with a deb package.

closing?

@bbondy
Copy link
Member

bbondy commented May 23, 2016

I'm using Ubuntu 14.04 and it still comes up as unidentified for me.

@luixxiul
Copy link
Contributor

Are you running brave with the deb package right? From console it comes up like that

@bbondy
Copy link
Member

bbondy commented May 24, 2016

yep comes up without the icon for that. Maybe something is messed on my machine or maybe there's a bug.

@Kilian
Copy link
Author

Kilian commented May 24, 2016

if you are not running from a .desktop file that supplies the icon, electron defaults back to the icon specified for the BrowserWindow. This is why in my original report I gave the line number of your BrowserWindow code. Simply add an icon property to it and link a png file, and that will fix this problem directly in your code instead of in a platform specific desktop file.

See also https://kilianvalkhof.com/talks/cross-platform-electron/#/11 :)

@luixxiul
Copy link
Contributor

luixxiul commented May 24, 2016

@Kilian, so is it OK with this?

https://github.com/brave/browser-laptop/blob/master/js/stores/appStore.js#L115

  let mainWindow = new BrowserWindow(Object.assign({
    icon: '/res/app.png',
    // smaller min size for "modal" windows

https://github.com/brave/browser-laptop/blob/master/res/app.png

@Kilian
Copy link
Author

Kilian commented May 24, 2016

I'm not sure if an absolute path also works (as opposed to including __dirname) but other than that, yeah that's how to get an icon on ubuntu :)

luixxiul pushed a commit that referenced this issue May 24, 2016
@luixxiul
Copy link
Contributor

luixxiul commented May 24, 2016

OK I'm pushing a PR for that. Please ignore the commit above which I mistakenly sent

@luixxiul
Copy link
Contributor

luixxiul commented Jun 3, 2016

Stopped working. Restarting doesn't help.

@luixxiul luixxiul reopened this Jun 3, 2016
@luixxiul
Copy link
Contributor

luixxiul commented Jun 3, 2016

On non packaged build it usually works, but sometimes not. I'm not sure why.

@luixxiul luixxiul added the needs-info Another team member needs information from the PR/issue opener. label Jun 3, 2016
@bbondy bbondy modified the milestones: 0.10.2dev, 0.10.1dev Jun 3, 2016
@bbondy
Copy link
Member

bbondy commented Jun 15, 2016

I think there's a cache @luixxiul so I think a reboot or a restart of the window manager needs to happen between testing.

I'm going to remove this from 0.10.4 but if there's a fix we can add it back in.

@bbondy bbondy removed this from the 0.10.4dev milestone Jun 15, 2016
@luixxiul luixxiul added this to the contributor backlog milestone Jan 10, 2017
@luixxiul luixxiul removed this from the contributor backlog milestone Apr 30, 2017
@luixxiul luixxiul added the bug label Jun 4, 2017
@bsclifton bsclifton added this to the Triage Backlog milestone Nov 27, 2017
@bsclifton bsclifton added wontfix fixed-with-brave-core This issue will automatically resolved with the replacement of Muon with Brave Core. labels Aug 20, 2018
@bsclifton bsclifton removed this from the Triage Backlog milestone Aug 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug design A design change, especially one which needs input from the design team. fixed-with-brave-core This issue will automatically resolved with the replacement of Muon with Brave Core. needs-info Another team member needs information from the PR/issue opener. OS/unix-like/linux wontfix
Projects
None yet
Development

No branches or pull requests

4 participants