-
Notifications
You must be signed in to change notification settings - Fork 972
browserWindow has no icon #1282
Comments
Confirmed, @bbondy Is branding for Linux ongoing?
|
would love a PR to fix this @luixxiul |
I'm using Ubuntu 14.04 and it still comes up as unidentified for me. |
Are you running brave with the deb package right? From console it comes up like that |
yep comes up without the icon for that. Maybe something is messed on my machine or maybe there's a bug. |
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 :) |
@Kilian, so is it OK with this? https://github.com/brave/browser-laptop/blob/master/js/stores/appStore.js#L115
https://github.com/brave/browser-laptop/blob/master/res/app.png |
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 :) |
OK I'm pushing a PR for that. Please ignore the commit above which I mistakenly sent |
Stopped working. Restarting doesn't help. |
On non packaged build it usually works, but sometimes not. I'm not sure why. |
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. |
browserWindow needs an icon for brave to show an icon on Ubuntu or you get a grey icon:
This should be added here:
browser-laptop/js/stores/appStore.js
Line 111 in 75c788a
The text was updated successfully, but these errors were encountered: