-
-
Notifications
You must be signed in to change notification settings - Fork 960
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
fix(cli): desktop app now can be re-opened on Linux #3323
Conversation
Another solution is just remove target file and then copy. It also seems simpler to implement |
Interesting. pros:
cons:
It doesn't require additional space for the 3rd binary. Well actually, since some process is still using the file, this would mean that after rm & cp there will be 2 visual copies and 1 more copy which is used by a process. So this one is debatable. It will still require 2 operations for the Linux platform. And the code wouldn't become tremendously smaller, so I think we should keep the atomic approach. |
74252f2
to
2a683cc
Compare
I implemented a similar but different system in #3608 to solve this issue not just for linux but for all platforms that have this restriction. Will add your name to the contribution list so you get the badge :) thank you for the PR! |
Thanks. I've tested that and it does work. Though I saw that in your PR there is a place where you replace |
I moved the 'o' key to the |
Ohh, yeah, that makes sense. |
I ain't seeing no badge. ;-; |
Fixes #3322.
I added some tracing logs just in case someone else also needs them, like I did when debugging this issue.
IDK why this is added and so soon in the build cycle, but perhaps this can be replaced by the approach from this PR, but someone needs to check if replacing works.
dioxus/packages/cli/src/serve/mod.rs
Lines 110 to 113 in 74252f2