Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3474

Application runs from CLI but not from icon on Debian 12.5-GNOME (wayland)

$
0
0
As ANKI is not available in the Debian repository, I visited apps.ankiweb.net to download the app. Once installed, I could run ANKI from the command line, but when I clicked the ANKI icon, the app would not run or generate any messages. Below I list details on running the app, installation, and, where I believe the problem might be, the anki.desktop definition.

Here, I run ANKI from a terminal.

Code:

$ cd /$ ankiAnki starting...Initial setup...Preparing to run...Qt warning: QGuiApplication::setDesktopFileName: the specified desktop file name ends with .desktop. For compatibility reasons, the .desktop suffix will be removed. Please specify a desktop file name without .desktop suffix2024-08-05 02:33:18,037:INFO:aqt.mediasrv: Serving on http://127.0.0.1:37459todo: windows paths in import screenStarting main loop...mpv not found, reverting to mplayer[4159:8:0805/023318.617472:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.[4168:8:0805/023318.623774:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.JS warning /_anki/js/vendor/mathjax/tex-chtml-full.js:1 No version information available for component [tex]/noerrorsJS warning /_anki/js/vendor/mathjax/tex-chtml-full.js:1 No version information available for component [tex]/mathtoolsJS warning /_anki/js/vendor/mathjax/tex-chtml-full.js:1 No version information available for component [tex]/mhchem2024-08-05 02:33:33,687:WARNING:waitress: unhandled close event$ 
Here is the anki.desktop definition.

Code:

$ cd /usr/local/share/applications$ lsanki.desktop[Desktop Entry]Name=Ank123i123Comment=An intelligent spaced-repetition memory training programGenericName=FlashcardsExec=anki %fTryExec=ankiIcon=ankiCategories=Education;Languages;KDE;Qt;Terminal=falseType=ApplicationVersion=1.0MimeType=application/x-apkg;application/x-anki;application/x-ankiaddon;#should be removed eventually as it was upstreamed as to be an XDG specification called SingleMainWindowX-GNOME-SingleWindow=trueSingleMainWindow=trueStartupWMClass=anki
ANKI is installed here.

Code:

$ cd /usr/local/share/anki$ lsanki  anki.xml  lib  README.md  uninstall.sh
A symbolic link to the ANKI application is stored here.

Code:

$ cd /usr/local/bin$ lsanki
Here is the ANKI install script.

Code:

install.sh#!/bin/bashset -eif [ "$(dirname "$(realpath "$0")")" != "$(realpath "$PWD")" ]; then  echo "Please run from the folder install.sh is in."  exit 1fiif [ "$PREFIX" = "" ]; then        PREFIX=/usr/localfirm -rf "$PREFIX"/share/anki "$PREFIX"/bin/ankimkdir -p "$PREFIX"/share/ankicp -av --no-preserve=owner,context -- * "$PREFIX"/share/anki/mkdir -p "$PREFIX"/binln -sf "$PREFIX"/share/anki/anki "$PREFIX"/bin/anki# fix a previous packaging issue where we created this as a file(test -f "$PREFIX"/share/applications && rm "$PREFIX"/share/applications)||truemkdir -p "$PREFIX"/share/pixmapsmkdir -p "$PREFIX"/share/applicationsmkdir -p "$PREFIX"/share/man/man1cd "$PREFIX"/share/anki && (\mv -Z anki.xpm anki.png "$PREFIX"/share/pixmaps/;\mv -Z anki.desktop "$PREFIX"/share/applications/;\mv -Z anki.1 "$PREFIX"/share/man/man1/)xdg-mime install anki.xml --novendorxdg-mime default anki.desktop application/x-colpkgxdg-mime default anki.desktop application/x-apkgxdg-mime default anki.desktop application/x-ankiaddonrm install.shecho "Install complete. Type 'anki' to run."
Because I am using wayland:

Code:

edit .bashrc, to include:export ANKI_WAYLAND=1

Statistics: Posted by CloisteredNeuron — 2024-08-06 05:47 — Replies 0 — Views 59



Viewing all articles
Browse latest Browse all 3474

Trending Articles