summarylogtreecommitdiffstats
path: root/start-hidden-in-tray.patch
diff options
context:
space:
mode:
authorSibren Vasse2022-05-20 15:40:50 +0200
committerSibren Vasse2022-05-20 15:41:06 +0200
commit1d2b24e88597093e823f2174c065f05d272009cf (patch)
treecf6864b326244d3b0044a88711474c298ece5c97 /start-hidden-in-tray.patch
parente911f45a4217d275fbb496b9385515955676d7df (diff)
downloadaur-1d2b24e88597093e823f2174c065f05d272009cf.tar.gz
v5.30.230-2: merge patches from https://github.com/aunetx/deezer-linux
Diffstat (limited to 'start-hidden-in-tray.patch')
-rw-r--r--start-hidden-in-tray.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/start-hidden-in-tray.patch b/start-hidden-in-tray.patch
new file mode 100644
index 000000000000..52defae164ee
--- /dev/null
+++ b/start-hidden-in-tray.patch
@@ -0,0 +1,19 @@
+diff --git a/build/main.js b/build/main.js
+index 5066eef..592a6bc 100644
+--- a/build/main.js
++++ b/build/main.js
+@@ -3122,8 +3122,12 @@
+ finalMinSize[1]
+ );
+ }
+- isDev() ? this.window.showInactive() : this.window.show(),
+- this.thumbar.init();
++ if (!process.argv.some(arg => arg === '--start-in-tray')) {
++ isDev() ? this.window.showInactive() : this.window.show(),
++ this.thumbar.init();
++ } else {
++ this.window.hide();
++ }
+ }),
+ this.appService.enableDevMode();
+ } \ No newline at end of file