Announcement

Collapse
No announcement yet.

Unable to launch anki.desktop file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [RESOLVED] Unable to launch anki.desktop file

    Hi,
    I am running latest kUbuntu 24.04. Recently, I have installed Anki from the `install.sh` script they provide.
    It created a anki.desktop file in `~/.local/share/applications`. When I click on the desktop file it says:

    Code:
    The desktop entry file
    
    /home/user/.local/share/applications/anki.desktop
    
    is not valid.
    The contents of the file is as follows:

    Code:
    [Desktop Entry]
    Name=Anki
    Comment=An intelligent spaced-repetition memory training program
    GenericName=Flashcards
    Exec=anki %f
    TryExec=anki
    Icon=anki
    Categories=Education;Languages;KDE;Qt;
    Terminal=false
    Type=Application
    Version=1.0
    MimeType=application/x-apkg;application/x-anki;application/x-ankiaddon;
    #should be removed eventually as it was upstreamed as to be an XDG specification called SingleMainWindow
    X-GNOME-SingleWindow=true
    SingleMainWindow=true
    StartupWMClass=anki
    StartupNotify=true
    Keywords=anki;
    The executable `anki` is stored at `/home/user/.local/bin/`.

    Anki application entry does not shows up in Start menu.
    I am able to start the application from terminal though. I am also able to start applications by clicking on their .desktop file.

    Please help me fixing this problem. Thanks.

    #2
    Originally posted by uncut5304 View Post
    The executable `anki` is stored at `/home/user/.local/bin/`.

    It may not have installed properly. Do you actually have ~/.local/bin on your system?


    Actually, looking at the install script:
    The installer wants the sudo password in order to install it as a system application, not a local user app. How did you actually run the script, precisely?

    You need to open a terminal inside the extracted directory. The easy way is to do so using Dolphin, then hit f4 to open a terminal. Then enter the command the instructions specify: sudo ./install.sh

    Comment


      #3
      Originally posted by claydoh View Post


      It may not have installed properly. Do you actually have ~/.local/bin on your system?

      I do have ~/.local/bin and binary name anki is present in the said directory.


      Originally posted by claydoh View Post

      Actually, looking at the install script:
      The installer wants the sudo password in order to install it as a system application, not a local user app. How did you actually run the script, precisely?
      I did PREFIX=~/.local bash ./install.sh inside the directory of extracted application. I did not use sudo because I did not want to install it in /usr/local


      Originally posted by claydoh View Post
      You need to open a terminal inside the extracted directory. The easy way is to do so using Dolphin, then hit F4 to open a terminal.
      I did exactly the same in Dolphin by hitting F4.

      P.S.: I have included ~/.locall.bin in PATH env variable in ~/.profile file

      Comment


        #4
        I followed this page How can I set env variables so that KDE recognizes them? and set ~/.local.bin in PATH env variable as export PATH="$HOME/.local/bin:$HOME/.bin:$PATH"

        I can start Anki by clicking on .desktop file but the application does not shows up in Start menu/Application Launcher.
        Last edited by uncut5304; Dec 15, 2024, 07:23 AM.

        Comment


          #5
          Add an entry using kmenuedit

          Please Read Me

          Comment

          Working...
          X