-
Notifications
You must be signed in to change notification settings - Fork 828
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
Replace internal remote module usage #1148
Conversation
Very nice work! It works great for me in dev mode. |
I did run into an issue when in the built version though ( |
Ah, perhaps I'm not up-to-date with main. Let me see what I can do here 🙏🏼 |
…tch-package and patch electron-is-dev, use @electron/remote for cropper container and action-bar container, update dark-mode switching without using electron-util (uses old remote), update to @electron/remote in various other places
6ef4d35
to
d168c40
Compare
Looks like this still happens after rebasing with main. For me the following occurs after rebasing:
I think perhaps these parts still use Electron remote upstream somewhere and I need to check that. |
Most likely, yes. |
Just to note on the first issue; the dialog for moving Kap to the apps directory isn't a remote issue. I completely ripped remote out and it still didn't work. In my minimal test app, I upgraded Electron and electron-builder to the latest versions and it worked as expected. I'll try updating Electron until that first part works and then move on to the permissions issue. |
Sorry for intruding here. I love Kap a lot but is has been unusable for the past few months because of a ~30s delay before being able to record. This drove me to try different things including building locally and trying out this branch. To the point though: After upgrading to MacOS Ventura (Intel), I also had a permission issue with Kap where I was unable to grant the permission no matter how many times I would agree - the dialog just kept appearing. This includes this branch. What I found out to always work though was selecting kap on the list and clicking the minus (1) button and then clicking the plus button (2) and selecting the binary I just installed. This fixes the permission issue every time for me. Hope this makes it easier for you to debug. P.S. Regarding issue #1125, even though this branch doesn't fix it for me as I hoped it would, it changes things - on 3.6.0 I need to wait about 20-30s after clicking the Kap icon for anything to show up and to record. On this branch, the UI (grey box with controls and the red record button) is shown immediately after clicking Kap icon but it is frozen for 20-30s before I can do anything. I love Kap and I can't find any alternatives since it stopped working for me so I really cheer to your efforts. |
Hi @wojtiku, thank you for commenting. I too found that fix worked for me, but this sadly also stopped me from debugging it! I wish I could reproduce it. I'm very busy with work right now, but I'm hoping I can find some time to finish this PR in the next few weeks. I spoke with Sindre privately about the best method forward and hoping that this can be closed soon and we can move onto other issues. Just to note that this branch does not yet include the Electron updates to latest, or switching to IPC instead of remote, which should bring a lot of performance improvements. Really appreciate your kind words and patience 🙏🏼 |
Regarding reproduction, I was able to consistently get to a permission-related problem with the following steps on this branch:
Hope this helps. I don't think I could contribute with such a complex issue not knowing the project but if you need a tester feel free to mention me and I will test on my side. Thanks! |
Replaced by #1234 |
The intended purpose of this pull request is to replace all built-in remote module usage in our own code.
There are multiple instances of remote being used in external modules, but we should address those in a further PR.
This is a work in progress.
Fixes #1089