Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Update electron to 24.1.2 for fixing tray single click bug #217

Closed
wants to merge 11 commits into from

Conversation

thanasistrisp
Copy link
Contributor

@thanasistrisp thanasistrisp commented Apr 19, 2023

By updating electron and making some small fixes, single tray icon click is finally working. It was an upstream bug that fixed only in versions 22.x (see here). It should now be fixed for most desktop environments.
Now, when pressing tray icon, the window shows or hides appropriately. Previously, I could not have single left click, as it showed the menu (like pressing right click). I use arch Linux with KDE.
Also, I updated some dependencies without breaking changes. Resolved merge conflict by reverting to main dependencies except of electron version only.

@thanasistrisp thanasistrisp changed the title Update electron to 24.1.2, dependencies Update electron to 24.1.2, dependencies for fixing tray single click bug Apr 19, 2023
@thanasistrisp thanasistrisp changed the title Update electron to 24.1.2, dependencies for fixing tray single click bug [BUG] Update electron to 24.1.2 for fixing tray single click bug Apr 19, 2023
@Mastermindzh
Copy link
Owner

Hey @thanasistrisp,

Versions that are built using v20+ electron versions only display a white screen after launch.
You can try it out using npm run build-base and then running ./dist/tidal-hifi

That is the exact same reason why the original code (that you restore) had been removed.

If you can get it working without a white screen after building then please let me know 😄

@thanasistrisp
Copy link
Contributor Author

thanasistrisp commented Apr 22, 2023

Hey @thanasistrisp,

Versions that are built using v20+ electron versions only display a white screen after launch. You can try it out using npm run build-base and then running ./dist/tidal-hifi

That is the exact same reason why the original code (that you restore) had been removed.

If you can get it working without a white screen after building then please let me know smile

@Mastermindzh, I did not notice any problem with white screen else if I had the problem I would not open pull request. It just needs to explicitly say sanbox:false as in newer version of electrons the default is true. Otherwise, if sandbox is true, yes it is correct that white screen appears at launch. No other issues I saw with latest electron.
See this and this.
I have also tried to build completely using the aur instructions on arch repository. And it built succesfully.

@Mastermindzh
Copy link
Owner

I'll try again.

I take it the change to the adblock URL is absolutely needed before a new release since it's blocking the settings?

(I don't have a tidal account with ads)

@thanasistrisp
Copy link
Contributor Author

thanasistrisp commented Apr 22, 2023

I'll try again.

I take it the change to the adblock URL is absolutely needed before a new release since it's blocking the settings?

(I don't have a tidal account with ads)

Just try npm install before run. And clone my repository exactly as I have it. Latest commit is not so urgent, but is shows some more account settings that the previous filter blocked.

(I hope I did not miss anything as I tried to resolved merge conflict from previous commits of bots dependencies)

@Mastermindzh
Copy link
Owner

Alright, that seems to have done the trick. Didn't know the default changed.
Could you remove the unnecessary package-lock changes please 😄 ?

You just need the following changes to make it all work:
image

Other than that we can merge these changes too and release a version 5 this weekend 😄

@Mastermindzh
Copy link
Owner

Mastermindzh commented Apr 22, 2023

@thanasistrisp , I can do it myself as well if you want, I don't mind 😄 (you gave me contributor on the fork anyway)

@thanasistrisp
Copy link
Contributor Author

@thanasistrisp , I can do it myself as well if you want, I don't mind 😄 (you gave me contributor on the fork anyway)

Do it yes.

Mastermindzh and others added 11 commits April 22, 2023 20:42
…1ac3f20e6c8576da25c1dd4616f859

[Snyk] Upgrade sass from 1.58.3 to 1.60.0
this is a common behavior of most electron apps
- if tray minimize is enabled quit hides the app to tray
- mpris important property (maybe needed sometime)
Bumps [minimatch](https://github.com/isaacs/minimatch) to 3.1.2 and updates ancestor dependency [electron-builder](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-builder). These dependencies need to be updated together.

Updates `minimatch` from 3.0.4 to 3.1.2
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](isaacs/minimatch@v3.0.4...v3.1.2)

Updates `electron-builder` from 23.5.1 to 24.2.1
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/commits/v24.2.1/packages/electron-builder)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
- dependency-name: electron-builder
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants