summarylogtreecommitdiffstats
path: root/icons.patch
blob: 2898c87650573d5a45e9edbfe8729ded08acd4db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/main.js b/main.js
index 69b9bd8c2..545bbe7e1 100644
--- a/main.js
+++ b/main.js
@@ -378,8 +378,12 @@ function createWindow() {
   });
 
   // put logic here to set tray icon based on OS
-  const osTrayIcon = 'openbazaar-mac-system-tray.png';
-
+  if (process.platform === 'linux') {
+    var osTrayIcon = 'icon.png';
+  } else {
+    var osTrayIcon = 'openbazaar-mac-system-tray.png';
+  }
+  
   trayMenu = new Tray(`${__dirname}/imgs/${osTrayIcon}`);
 
   let trayTemplate = [];
@@ -455,7 +459,7 @@ function createWindow() {
     center: true,
     title: 'OpenBazaar',
     frame: false,
-    icon: 'imgs/openbazaar-icon.png',
+    icon: process.platform === 'linux' && `${__dirname}/imgs/icon.png`,
   });
 
   // and load the index.html of the app.