From d007fddefa841552050c4b57682eb096c5359c43 Mon Sep 17 00:00:00 2001 From: hobs Date: Mon, 29 Jun 2026 12:08:39 -0700 Subject: [PATCH] feat: add Linux desktop launcher for dev builds Adds tools/anki-dev.desktop with an ANKI_SRC placeholder and install instructions in README.md for XDG-compatible desktops (GNOME, KDE, etc.). Co-Authored-By: Claude Sonnet 4.6 --- README.md | 13 +++++++++++++ tools/anki-dev.desktop | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100644 tools/anki-dev.desktop diff --git a/README.md b/README.md index 869a968ca82..608f55d6930 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,19 @@ The following people have contributed to Anki: [CONTRIBUTORS](./CONTRIBUTORS) If you'd like to try development builds of Anki but don't feel comfortable building the code, please see [Anki betas](https://betas.ankiweb.net/). +## Linux Desktop Integration + +On any Linux desktop that follows the [XDG spec](https://specifications.freedesktop.org/desktop-entry-spec/latest/) (GNOME, KDE, XFCE, Cinnamon, MATE, and others), you can install a launcher entry for the development build so it appears in your app grid and can be pinned to the dock. + +```bash +# From the repo root +sed "s|ANKI_SRC|$(pwd)|g" tools/anki-dev.desktop \ + > ~/.local/share/applications/anki-dev.desktop +update-desktop-database ~/.local/share/applications/ +``` + +Then open your app grid, search for **Anki (dev)**, right-click, and choose **Add to Favourites** (GNOME) or the equivalent for your desktop. + ## License Anki's license: [LICENSE](./LICENSE) diff --git a/tools/anki-dev.desktop b/tools/anki-dev.desktop new file mode 100644 index 00000000000..ce3b3a03da4 --- /dev/null +++ b/tools/anki-dev.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Anki (dev) +Comment=Spaced repetition flashcard program +Exec=bash -c 'cd ANKI_SRC && just run' +Icon=ANKI_SRC/qt/aqt/data/qt/icons/anki.png +Terminal=false +Type=Application +Categories=Education; +StartupWMClass=anki