From 8f064a9d04d46135eaf80e1edc4d1032f35ef815 Mon Sep 17 00:00:00 2001 From: Ady <40644941+adynemo@users.noreply.github.com> Date: Mon, 2 May 2022 14:37:17 -0400 Subject: [PATCH 1/2] Avoid to set the text/html mime type --- ...oid-change-default-texthtml-mime-type.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 patches/avoid-change-default-texthtml-mime-type.patch diff --git a/patches/avoid-change-default-texthtml-mime-type.patch b/patches/avoid-change-default-texthtml-mime-type.patch new file mode 100644 index 0000000..aa563c8 --- /dev/null +++ b/patches/avoid-change-default-texthtml-mime-type.patch @@ -0,0 +1,18 @@ +diff --git a/build/main.js b/build/main.js +index de51acb..e2c0b9e 100644 +--- a/build/main.js ++++ b/build/main.js +@@ -2897,12 +2897,7 @@ + this.tray.init(), + this.updater.init(), + this.network.watch(), +- this.powerSave.check(), +- this.deepLink.getSchemes().forEach((scheme) => { +- external_electron_namespaceObject.app.setAsDefaultProtocolClient( +- scheme +- ); +- }); ++ this.powerSave.check(); + const dzrFilter = { urls: ["*://*/*"] }, + DOMAINS_WHITELIST = [ + "deezer.com", From e08f39c75a597d58f8420663b51aa78b3fdcfcb6 Mon Sep 17 00:00:00 2001 From: Ady <40644941+adynemo@users.noreply.github.com> Date: Mon, 2 May 2022 14:40:06 -0400 Subject: [PATCH 2/2] Add comment about the issue --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index dfac431..4dbc572 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,7 @@ prepare: clean install_build_deps @echo "Hide to tray when closing (https://github.com/SibrenVasse/deezer/issues/4)" @echo "Start in tray cli option (https://github.com/SibrenVasse/deezer/pull/12)" @echo "Remove kernel version from User-Agent (https://github.com/aunetx/deezer-linux/pull/9)" + @echo "Avoid to set the text/html mime type (https://github.com/aunetx/deezer-linux/issues/13)" $(foreach p, $(wildcard ./patches/*), patch -p1 -dapp < $(p);) @echo "Append `package-append.json` to the `package.json` of the app"