Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect icon path in JsonRPC plugins context menu #3223

Closed
roose opened this issue Oct 15, 2020 · 0 comments
Closed

Incorrect icon path in JsonRPC plugins context menu #3223

roose opened this issue Oct 15, 2020 · 0 comments
Assignees
Labels

Comments

@roose
Copy link
Contributor

roose commented Oct 15, 2020

If I use the context menu in the JsonRPC plugin, Wox tries load image from Wox Images folder, not from the plugin Images folder.

Сurrent behavior:
C:\Users\roose\AppData\Local\Wox\app-1.4.1196\Images\info.png

Expected behavior:
C:\Users\roose\AppData\Roaming\Wox\Plugins\npms search-0eda4ad7-ac0d-4521-a482-aec0e9727bf4\Images\info.png

Error log
2020-10-15 17:15:27.0485|ERROR|Wox.Image.ImageLoader|LoadInternal|cannot load C:\Users\roose\AppData\Local\Wox\app-1.4.1196\Images\info.png|Exception begin --------------------
  System.IO.FileNotFoundException: Could not find file 'C:\Users\roose\AppData\Local\Wox\app-1.4.1196\Images\info.png'.
  HResult: -2147024894
  Data:  -> 
  Source: mscorlib
  TargetAssembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
  TargetModule: CommonLanguageRuntimeLibrary
  TargetSite: Void WinIOError(Int32, System.String)
  StackTrace: --------------------
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle)
   at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache)
   at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()
   at System.Windows.Media.Imaging.BitmapImage.EndInit()
   at Wox.Image.ImageLoader.LoadInternal(String path) in C:\projects\wox\Wox\Image\ImageLoader.cs:line 132
Exception end ------------------------------------------------------------
@roose roose added the bug label Oct 15, 2020
@roose roose changed the title Incorrect image path in JsonRPC plugins context menu Incorrect icon path in JsonRPC plugins context menu Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants