Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

🔂AnkiRestart V2

🔂AnkiRestart V2 - Quick Anki Rebooter (Created by Shigeඞ)

AnkiWeb Page | Code : 1766024579

reddit

Quick Restart Anki. This is an improved beta version of the old AnkiRestart, it use only the add-on to restart, not external files.

This V2 is a new prototype developed for some users who are not able to restart, so if old V1 is already working fine on your device you can use either add-on.

How to use

These features are available:

  1. Added Restart button and Menu (Shortcut: Ctrl+Shift+R)
  2. Pop up restart dialog when updating add-ons

Installing the add-on will add an icon to the Anki menu bar. Clicking on this icon will quickly restart Anki. MacOS cannot display the icon here, so it will be displayed in the system tray instead. Blue is a normal restart, and red is an optional safe mode restart (default disabled).

  • Anki Home -> Restart icon (Blue)
  • Anki Home -> tools -> AnkiRestartV2 -> Restart Anki now

alt text

Settings

Settings can be accessed from the Add-on menu or the add-ons dialog.

  • Anki Home -> tools -> AnkiRestartV2 -> Swttings
  • Anki Home -> tools -> Add-ons -> AnkiRestartV2 -> Confing

alt text

Custom Anki Path

If the restart has already succeeded there is no need to change this option. To restart Anki the path to the Anki executable file is required (win:anki.exe, Mac:anki.app, Linux:anki). If the auto detected Anki path is incorrect you will need to set it manually.

Options

Trigger restart when add-ons are updated

When add-ons are updated Anki needs to be restarted. This option displays a pop-up window to restart Anki when add-ons are updated (it is enabled by default). e.g.

  1. When Anki is launched and add-ons are updated.
  2. When add-ons are updated from the Add-ons dialog.

Show restart button in menu bar

Show or hide the buttons displayed on Anki's Home menu bar.

Sound Effect

Enable or disable a sound when restarting.

Disable auto sync when restarting

Anki's auto sync takes a little time. When restarting frequently sync is not needed, so this add-on disabled and restore Anki's auto sync option only when restarting. This option disabled this feature.

  • ON: Save auto sync option -> Disabled auto sync -> Restart Anki -> Restore auto sync otion
  • OFF: Nothing

Short cut key

You can change the shortcut key for restarting Anki. The shortcut key will not work if it conflicts with other add-ons or Anki shortcut keys, so if the key does not work try changing it. default short cut key: Ctrl+Shift+R.

Advanced tab

These are options for advanced users, there is no need to change them unless you need to.

alt text

Custom Base

Anki allows you to specify the path to the file containing the user profile when it starts up. If you restart Anki as is, this path will not be used. If you set a path for this option, you can use that path to start up when you restart. For more info please read the Anki Manual:

Safe mode

This new safe mode disables all add-ons except AnkiRestart and then restart. Disabled add-ons will be enabled after restarting, so restarting again will restore the original state. This option is disabled by default.

  • Action: Trigger Safe Mode Restart -> Save All addons data -> disables all add-ons except AnkiRestart -> Run Restart (Close Anki) -> Open new Anki -> Enable all save add-ons

Show safe mode restart button

Enabling this will display a menu and button to restart in safe mode. (Red icon)

Use real safe mode

This mode manually disables add-ons, so it is not Anki's default safe mode. Enabling this option will restart Anki in its native safe mode. In this case, AnkiRestart will also be disabled.

  • Action: Trigger Real Safe Mode Restart -> Run Restart (Close Anki) -> Open new Anki + safe mode (as holding down the Shift key while starting Anki)

Delay Restart Second

  • This add-on waits a few seconds when restarting Anki. It probably works even with 0 seconds, but I set it to 3 seconds just to be safe.

  • 🚨NOTE: This timer uses subprocess.Popen's shell=True (Win: timeout /T, MacOS/Linux: sleep). If you are concerned about security setting it to 0 seconds will disable it.

    • time 1+ sec : subprocess.Popen(cmd, shell=True)
    • time 0 sec : subprocess.Popen(popen_args)
    • If there are unknown characters in the path used in cmd, or if the path does not exist, the timer and shell will be automatically disabled.

FAQ

Q. Why use such an add-on just to restart?

  • Anki will forcefully terminate the new Anki for data safety when it tries to start up duplicately, so if you have a lot of add-ons or large decks it may take time for Anki to terminate and may loop. This add-on restarts after Anki terminates so you can restart in once.

  • alt text

  • e.g.: Close Anki01 and Open Anki02 -> Anki02:"Ank01 is still open please try again" -> Close Anki02 and open Anki03 -> Anki03: "Anki02 is still open please try again" -> Close Anki03 and open Anki04 -> Anki04: "Anki03 is still open please try again" -> ...

Q. What is the difference between V1 and V2?

  • This version restarts Anki using only the add-on without using external files, so there is no problem with misdetection by antivirus software. I also fixed some bugs, enhanced features, and optimized the code.

Q. What is Safe Mode used for?

  • When a bug occurs checking whether the cause is an add-on or native Anki.
  • Sometimes you want to use native Anki.

Q. Why is an add-on needed to restart?

  • Some add-ons require a restart after changing the config.
  • In my add-on development Anki is restarted frequently.

Q. Why does the timer use “shell=True”?

  • The timer to delay restarting needs to be executed after Anki closes. But if we use a timer within Anki’s program, Anki won’t close until the timer ends. Shell timers can be executed after Anki closes.
  • The latest Anki launcher may have another workaround, but it’s still under development.

🚨Report

If you have any problems or requests feel free to send them to me.

  1. 👍️Rate Comment : You can contact me anonymously, and AnkiWeb will send you an email when I reply, a high rating increases priority of development.
  2. 👩‍🚀Reddit : You can request me to repair broken Add-ons.
  3. 🌟AnkiForums : You can request me to repair broken Add-ons, and it is ideal for open discussions.
  4. 🐙Github : Makes it easier to track problems.
  5. 💖Patreon DM : Response will be prioritized.

💖Please Support Shige's Anki add-ons development!

Hi thank you for using this add-on, I'm Shigeඞ! I'm looking for supporters for my add-ons development, because I like Anki! So far I fixed and customized 60+ discontinued add-ons and created 30+ new add-ons. If you support my volunteer development you will get 14 add-ons for patrons only and 15 game themes included in AnkiArcade ($5/month). If you have any ideas or requests feel free to send them to me, thanks! :D

patrons_banner
Get Patrons only addons | Patrons Q and A | Contact

[ Special Thanks ]
So far I received donations from 444 patrons and without their support I never could develop this, thank you very much!🙏

Patrons: Arthur Bookstein Haruka Luis Alberto, Letona Quispe 07951350313540 Lily Daniel Kohl-Fink Tim Kyle Mondlak NamelessGO ElAnki Ernest Chan Abhi S GP O'Byrne KM Jonathan Contreras Isabel Guan Jesse Asiedu ellie Matthew Hartford Tobias Klös K Juan Salgado Peasant of Anki iuventius findus161 Patrick ellis tarek Jake Stucki Muneeb Khan Yaeerrrrrr Christopher Lam qiting zeng Keeler Kime Kurt Grabow Elisabeth Barber Lis Y. Matheus Chagas Fahim Shaik Augusto Stein Bryn Price Ashok Rajpurohit mootcourt Svel1989 NoirHassassin Kolorophyll Morgan Torres Kaitlyn Bowler Tae Lee Steven Banner Heidi Leonora Lomoki Akporyoe Gabriel Farrugia David C Gabriel Vinicio Guedes sab hoque Ythalo Vlogs Ujwal Chadha pie_is_good Ketan Pal Aurora Dzurko Tyler Schulte Mac gus forester Douglas Beeman Hoang Hung Aydin Herik Xiuxuan Wang Temi Jide Ansel Ng only Sameer Al Haley Schwarz Woody Orlando Frey kenken Take Root Iggi Jeanna J P K Carly Burdorf Cole Krueger Wei Sean Voiers Austin Regal Robert Malone Jk Andrew Yang CunningPotato Mia Aayush Bhatawadekar Stellate ggl Cubli Tina Weingarten Azfar Hussain Victor Evangelista Adrine Oleksandr Pashchenko Vivian Cao Osasere Osula Kylie ...full list


📥 How do I install this add-on?

  1. This add-on works with Anki for desktop (it does not work on mobile). Download Anki from the official website if you haven't already.
  2. Copy and paste the add-on code ( 1766024579 ) into Anki and you can install it. ( Menu -> Tools -> Add-ons -> Get Add-ons -> Code [ add-on code ] )
  3. When I develop bug fixes, create new features, or compatibility for New Anki, I will notify you and you can install it.
  4. Add-ons will be broken when the official Anki gets a major update, so if you like this add-on please support my volunteer development by rating, sharing, and donating. Thank you!

Click here and please Rate this add-on, Thank you! :-)
Please rate this