How to restart the software developed by fyne #3721
-
Any friends to provide a reference method? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I am not entirely sure what you are asking for but if it is to make the currently open application restart, then I believe that you likely will find your answer in this reply to another discussion: #3538 (comment). In short this is the answer:
In general, it is best to avoid restarting if you can. There might be a better solution depending on what you are trying to do. |
Beta Was this translation helpful? Give feedback.
-
I can confirm that this is a very complex topic and @Jacalz is right it is not a good thing to do. |
Beta Was this translation helpful? Give feedback.
I can confirm that this is a very complex topic and @Jacalz is right it is not a good thing to do.
The only use-case I know of is if you have to upgrade the software - which is what the Fyne Labs selfupdate does, so you could look there for clues or even call the
Restart
function directly. https://github.com/fynelabs/selfupdate