Skip to content

Wine shortcuts need special parsing #25

Description

@Poikilos

Actual behavior
whichicon mixcraft yields:

* Checking for "mixcraft"...not a full path and command "None" is not in the environment's PATH either.
* [/home/redacted/.local/bin/whichicon] looking for a shortcut to "mixcraft"...
/home/redacted/.local/share/applications/wine-extension-mx6.desktop
  * skipping "/home/redacted/.local/share/applications/wine-extension-mx6hs.desktop" since already got a result!
  * skipping "/home/redacted/.local/share/applications/wine-extension-mx6hstemplate.desktop" since already got a result!
  * skipping "/home/redacted/.local/share/applications/wine-extension-mx6template.desktop" since already got a result!
  * skipping "/home/redacted/.local/share/applications/wine-extension-mx7.desktop" since already got a result!
  * skipping "/home/redacted/.local/share/applications/wine-extension-mx7hs.desktop" since already got a result!
  * skipping "/home/redacted/.local/share/applications/wine-extension-mx7hstemplate.desktop" since already got a result!
  * skipping "/home/redacted/.local/share/applications/wine-extension-mx7template.desktop" since already got a result!
  * skipping "/home/redacted/.local/share/applications/wine-extension-mx8.desktop" since already got a result!
  * skipping "/home/redacted/.local/share/applications/wine-extension-mx8hs.desktop" since already got a result!
  * skipping "/home/redacted/.local/share/applications/wine-extension-mx8hstemplate.desktop" since already got a result!
  * skipping "/home/redacted/.local/share/applications/wine-extension-mx8template.desktop" since already got a result!
  * skipping "/home/redacted/.local/share/applications/wine-extension-mx9.desktop" since already got a result!
  * skipping "/home/redacted/.local/share/applications/wine-extension-mx9template.desktop" since already got a result!

Expected behavior:

  • check ~/.local before system icons
  • check ~/Desktop
  • strip the env command and the wine command such as in Exec=env WINEPREFIX="/home/redacted/.wine" wine C:\\\\Program\\ Files\\\\Acoustica\\ Mixcraft\\ 9\\\\mixcraft9.exe
  • wine extensions should be ignored (such as /home/redacted/.local/share/applications/wine-extension-mx9.desktop which contains Exec=env WINEPREFIX="/home/redacted/.wine" wine start /ProgIDOpen Mixcraft\\ 9\\ Project.Document %f and name=Mixcraft 9)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions