# AnkiRestart🔂\[Support Thread\]

**URL:** <https://forums.ankiweb.net/t/ankirestart-support-thread/34465>\
**Category:** Add-ons\
**Created:** [September 17, 2023, 6:01pm UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465 "2023-09-17T18:01:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shigeyuki](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/shigeyuki/32/23878_2.png) [@Shigeyuki](https://forums.ankiweb.net/u/Shigeyuki)\
**Post date:** [September 17, 2023, 6:01pm UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/1 "2023-09-17T18:01:52Z")

</div>

[**[AnkiWeb page]**](https://ankiweb.net/shared/info/237169833?cb=1694971724747)  
[  
 ](https://www.reddit.com/user/Shige-yuki)[![banner_AnkiRestart](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/1/10d8a573a00b271eea38f05979f06c61a20db8ab.jpeg)](https://ankiweb.net/shared/info/237169833?cb=1694971724747)  
[  
  ![](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/a/ae3f8b12b54c7c9d1fe13bad8c8fb88ebf8e5fa8.jpeg)](https://www.reddit.com/user/Shige-yuki)  
This add-on just adds a reboot button to the menu bar. (Prototype)

[![](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/a/adad1d69392d00e4771c5fbf114bd0d2bdc091a5.jpeg "AnkiRestart (Quickly restart Anki add-on, Prototype, Free)") ](https://www.youtube.com/watch?v=q8c_POBOcMg)

## [Description]

- Skip sync and restart quickly.
- When closed normally, it will be synced.
- Restart Anki in Safe Mode (Without Add-ons)
- Auto Restart After SafeMode.
- Console Mode(Windows)
- For Mac, the button is shown on the right.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/2/2b692931a8cc87da9bca33a0a44f3f99bd59df0f.png)

## [Warning]

- This add-on is separated from Anki in purpose of restarting Anki, so there is a high possibility of mis-detection by antivirus software. This problem is solvable, but requires $200+ per year (Code Signing), so I’m not considering it at now.

- **[Windwos]** If your antivirus software  
mis-detects add-on, the “.exe” will be quarantined. It’s labeled Trojan but it’s a mis-detection, so no danger. In this case, this add-on cannot be used without Allow on device.

- **[Mac]** If you do not grant permissions, it is likely that you will not be able to launch the “.app”. I’m not certain if it will work on the latest Macs.

 ![](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/5/5ddf2900ee48aa33c960ef003a20e87b4d08a98d.jpeg)

## [Others]

If you have any bugs or questions, please feel free to comment.

[![](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/4/45657146e9d734382adf3473ba29c054ba95b461.png)](https://github.com/shigeyukey/AnkiRestart/issues)[![](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/1/1898f0e98e6d6856554c99b1ed600abf8bd005d0.png)](https://www.reddit.com/user/Shige-yuki)[![](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/b/b33f2d9771def42851bf926d6f52a5593ac630af.png)](https://ankiweb.net/shared/review/237169833)[![](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/c/ce0eea209033c385a07bbb19f3d592f22e4943a7.png)](http://patreon.com/Shigeyuki)

[](http://patreon.com/Shigeyuki)

[![](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/f/fc0181598525892bb2cfb1a076462a1ab1a5768e.jpeg)  
 ](http://patreon.com/Shigeyuki)[**[AnkiWeb page]**](https://ankiweb.net/shared/info/237169833?cb=1694971724747)

---

<div class="post-metadata">

**Author:** ![ramos.daniel](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@ramos.daniel](https://forums.ankiweb.net/u/ramos.daniel)\
**Post date:** [September 19, 2023, 2:23pm UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/2 "2023-09-19T14:23:16Z")

</div>

Nice job!

---

<div class="post-metadata">

**Author:** ![BEST8OY](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@BEST8OY](https://forums.ankiweb.net/u/BEST8OY)\
**Post date:** [September 23, 2023, 6:33am UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/3 "2023-09-23T06:33:46Z")

</div>

Can you add this too?  
[Option for auto restart after updating addons - Suggestions - Anki Forums (ankiweb.net)](https://forums.ankiweb.net/t/option-for-auto-restart-after-updating-addons/29207)

---

<div class="post-metadata">

**Author:** ![Shigeyuki](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/shigeyuki/32/23878_2.png) [@Shigeyuki](https://forums.ankiweb.net/u/Shigeyuki)\
**Post date:** [September 26, 2023, 10:01pm UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/4 "2023-09-26T22:01:28Z")

</div>

I added the feature to auto-restart Anki after updating the add-ons. Cross-platform debugging and other add-on features are not yet complete, so it will be a while before I release it on AnkiWeb, but you can download the add-on under development for free from my Patreon page (no registration required). It has been tested only on windows, Anki 2.1.66 (Qt6).

> **[\[Free\] AnkiRestart (Quickly restart Anki add-on, Prototype) | Shigeyuki](https://www.patreon.com/posts/89885608)**
>
> Get more from Shigeyuki on Patreon

---

<div class="post-metadata">

**Author:** ![Foxy\_null](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/foxy_null/32/16587_2.png) [@Foxy\_null](https://forums.ankiweb.net/u/Foxy_null)\
**Post date:** [January 5, 2024, 10:41am UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/5 "2024-01-05T10:41:40Z")

</div>

再起動用のショートカットを追加して頂くことって可能ですか？  
（Ctrl + RやF5など）

---

<div class="post-metadata">

**Author:** ![Shigeyuki](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/shigeyuki/32/23878_2.png) [@Shigeyuki](https://forums.ankiweb.net/u/Shigeyuki)\
**Post date:** [January 5, 2024, 11:16am UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/6 "2024-01-05T11:16:33Z")

</div>

たぶん可能ですね､後でちょっと調べてみます｡

---

<div class="post-metadata">

**Author:** ![Foxy\_null](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/foxy_null/32/16587_2.png) [@Foxy\_null](https://forums.ankiweb.net/u/Foxy_null)\
**Post date:** [January 5, 2024, 12:54pm UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/7 "2024-01-05T12:54:22Z")

</div>

ありがとうございます！

---

<div class="post-metadata">

**Author:** ![kieron](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@kieron](https://forums.ankiweb.net/u/kieron)\
**Post date:** [January 9, 2024, 3:21am UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/8 "2024-01-09T03:21:48Z")

</div>

can you add support for running anki in portable mode ? (`-b` run argument)

it currently ignores run arguments and just restarts in normal mode with a completely different profile

---

<div class="post-metadata">

**Author:** ![Shigeyuki](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/shigeyuki/32/23878_2.png) [@Shigeyuki](https://forums.ankiweb.net/u/Shigeyuki)\
**Post date:** [January 9, 2024, 3:38pm UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/9 "2024-01-09T15:38:26Z")

</div>

It may be possible, I will look into this as well.

---

<div class="post-metadata">

**Author:** ![Shigeyuki](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/shigeyuki/32/23878_2.png) [@Shigeyuki](https://forums.ankiweb.net/u/Shigeyuki)\
**Post date:** [February 6, 2024, 3:11pm UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/10 "2024-02-06T15:11:30Z")

</div>

再起動用のショートカットキーの機能を追加しました｡  
初期設定は"Ctrl+Shift+R"です｡  
設定ウィンドウのオプションタブから好きなキーに変更できます｡

[[ AnkiWeb] AnkiRestart🔂 Quick Aniki Rebooter, for Anki Customize and Develop by Shige](https://ankiweb.net/shared/info/237169833)

---

<div class="post-metadata">

**Author:** ![Foxy\_null](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/foxy_null/32/16587_2.png) [@Foxy\_null](https://forums.ankiweb.net/u/Foxy_null)\
**Post date:** [February 6, 2024, 3:24pm UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/11 "2024-02-06T15:24:56Z")

</div>

遅くまでありがとうございます。  
早速使わせていただきます！

---

<div class="post-metadata">

**Author:** ![Shigeyuki](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/shigeyuki/32/23878_2.png) [@Shigeyuki](https://forums.ankiweb.net/u/Shigeyuki)\
**Post date:** [February 6, 2024, 3:27pm UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/12 "2024-02-06T15:27:30Z")

</div>

I added the option to specify the database for Anki.  
Select the `Use custom base foloder(-b)` checkbox and specify the path to the database, it should work.

- Please note that `" "` is not allowed in the path.  
For example,  
❌`"G:\Ankiˉanki.exe" `  
⭕`G:\Anki\anki.exe`

- And the `-b` argument is already setup, so there is no need to fill it in.

- Perhaps `Use Anki path manually` does not need to be used.

- For now, there is no function to add other arguments.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/6/e/6e04777304436788d56d9f2c56f34a5819dfcbba.png)

---

<div class="post-metadata">

**Author:** ![Shigeyuki](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/shigeyuki/32/23878_2.png) [@Shigeyuki](https://forums.ankiweb.net/u/Shigeyuki)\
**Post date:** [February 6, 2024, 3:40pm UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/13 "2024-02-06T15:40:12Z")

</div>

The function to restart after updating add-ons has been added to the default for the add-on,  
but it does not work when updating add-ons on Anki startup.(Perhaps it works only when manually updating from the add-ons dialog.)  
If restarting in the middle of the process, the process will be interrupted, so this feature is still under development.

---

<div class="post-metadata">

**Author:** ![kieron](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@kieron](https://forums.ankiweb.net/u/kieron)\
**Post date:** [February 7, 2024, 3:28pm UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/14 "2024-02-07T15:28:28Z")

</div>

Thanks!

---

<div class="post-metadata">

**Author:** ![basiskarten](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/basiskarten/32/826_2.png) [@basiskarten](https://forums.ankiweb.net/u/basiskarten)\
**Post date:** [February 7, 2024, 4:18pm UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/15 "2024-02-07T16:18:56Z")

</div>

Cool add-on and really awesome presentation, @Shigeyuki ! 🏆

I use the following AutoHotkey (v2) script to quickly restart Anki by pressing Win+N when Anki’s main window is active. When I press Control+Win+N the script also toggles night mode on or off before restarting. (For languages other than German the script would have to be modified slightly for this to work.)

```auto
#SingleInstance Force
#Requires AutoHotkey v2.0-

#HotIf WinActive("ahk_exe anki.exe")

#HotIf WinActive("- Anki")

#N:: ; Restart Anki with the same profile by pressing Win+N when the Anki-window is active.
{
profile := RegExReplace(WinGetTitle("A"), " - Anki$")
path := WinGetProcessPath("A")
Send "!{F4}"
ProcessWaitClose("anki.exe")
Run path ' -p "' profile '"'
}

^#N:: ; Restart Anki with the same profile by pressing Win+N when the Anki-window is active - but also toggle nightmode
{
profile := RegExReplace(WinGetTitle("A"), " - Anki$")
path := WinGetProcessPath("A")
Send "^p"
WinWaitActive("Einstellungen")
MouseClick("Left", 47, 74)
Send "{Tab 7}{Space}{Esc}"
WinWaitActive("Anki")
Send "{Enter}"
WinWaitActive(profile)
Send "!{F4}"
ProcessWaitClose("anki.exe")
Run path ' -p "' profile '"'
}

#HotIf

#HotIf

```

---

<div class="post-metadata">

**Author:** ![shmuelsash](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@shmuelsash](https://forums.ankiweb.net/u/shmuelsash)\
**Post date:** [April 18, 2024, 1:12am UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/16 "2024-04-18T01:12:43Z")

</div>

The addon seems to be turning off the option to automatically sync on profile open/close

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/2/2/223b1c814e5b00dd84bc119c316950d8fcb51e74.png)

---

<div class="post-metadata">

**Author:** ![Shigeyuki](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/shigeyuki/32/23878_2.png) [@Shigeyuki](https://forums.ankiweb.net/u/Shigeyuki)\
**Post date:** [April 18, 2024, 7:44am UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/17 "2024-04-18T07:44:11Z")

</div>

- The purpose of this add-on is to quickly restart anki, so it is intentionally turned off.

- After the restart, the option is restored, but occasionally there is a problem with the sync option still being OFF.

---

<div class="post-metadata">

**Author:** ![shmuelsash](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@shmuelsash](https://forums.ankiweb.net/u/shmuelsash)\
**Post date:** [April 18, 2024, 5:00pm UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/18 "2024-04-18T17:00:02Z")

</div>

Is there a way to fix that or turn off the option for it to turn off this option?

I don’t mind if it syncs before it closes

---

<div class="post-metadata">

**Author:** ![Shigeyuki](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/shigeyuki/32/23878_2.png) [@Shigeyuki](https://forums.ankiweb.net/u/Shigeyuki)\
**Post date:** [April 18, 2024, 5:21pm UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/19 "2024-04-18T17:21:43Z")

</div>

There is no such option at the moment, so I will add it later.

---

<div class="post-metadata">

**Author:** ![Shigeyuki](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/shigeyuki/32/23878_2.png) [@Shigeyuki](https://forums.ankiweb.net/u/Shigeyuki)\
**Post date:** [September 17, 2024, 3:23am UTC](https://forums.ankiweb.net/t/ankirestart-support-thread/34465/20 "2024-09-17T03:23:17Z")

</div>

I added an option to turn on/off disable auto sync.

- AnkiRestart Settings → option tab → Disable suto sync when restarting

[Next page](https://forums.ankiweb.net/t/ankirestart-support-thread/34465.md?page=2)
