PowerTranslator icon indicating copy to clipboard operation
PowerTranslator copied to clipboard

Port to PowerToys Command Palette

Open langningchen opened this issue 1 year ago • 7 comments

Apparently the Command Palette is the successor to PowerToys Run: https://learn.microsoft.com/en-us/windows/powertoys/command-palette/overview

langningchen avatar Apr 11 '25 06:04 langningchen

cool! I will follow up soon. Thanks for telling me

N0I0C0K avatar Apr 11 '25 06:04 N0I0C0K

@N0I0C0K Hi! I am very delighted to hear that you have finished the new Command Palette Extension. 👍 I have tried it the latest release, but I got stuck when I tried to translate anything. The extension always says that it is initializing.

Image

I found the bellow logs, just for reference.

[19:18:17.8315311] [Debug] CommandPaletteHost.cs::LogMessage::89
    start init Youdao Web Api(v2)
[19:18:17.8320352] [Debug] CommandPaletteHost.cs::LogMessage::89
    custom init complete
[19:18:17.8323525] [Debug] CommandPaletteHost.cs::LogMessage::89
    Init Youdao Web Api(v2) Error occurred: Cannot add value because header 'Referer' does not support multiple values.
[19:18:17.8323792] [Debug] CommandPaletteHost.cs::LogMessage::89
    custom init

langningchen avatar Jun 27 '25 11:06 langningchen

Hi! I'm so glad to hear the feedback. I will fix asap. 🫡 By the way, the cmdpal version is not stable. I am working on code signing and other feature transplantation. I'm very curious whether you can install msix products directly?

N0I0C0K avatar Jun 28 '25 01:06 N0I0C0K

Hi! I'm so glad to hear the feedback. I will fix asap. 🫡 By the way, the cmdpal version is not stable. I am working on code signing and other feature transplantation. I'm very curious whether you can install msix products directly?

As you said, the MISX is not signed, so opening it directly with the App Installer cannot install it.

This app package’s publisher certificate could not be verified. Contact your system administrator or the app developer to obtain a new app package with verified certificates. The root certificate and all immediate certificates of the signature in the app package must be verified (0x800B010A)

I temporally solve the problem by these steps:

  1. Manually change the extension name to zip and unzip it to a folder.
  2. Open the Developer Mode in Windows Settings, which said Install apps from any source, including loose files. Image
  3. Run the PowerShell command:
Add-AppxPackage -Register "D:\path\to\unzipped\folder\AppxManifest.xml"
  1. The PowerTranslator appears in the Strat Menu! 🎉

langningchen avatar Jun 28 '25 03:06 langningchen

Thank you for your answer! 🫡. I will reopen this issue until solve all problems.

N0I0C0K avatar Jun 28 '25 03:06 N0I0C0K

I have tried it the latest release, but I got stuck when I tried to translate anything. The extension always says that it is initializing.

Hi! This prolem solved in this prerelease

N0I0C0K avatar Jul 02 '25 15:07 N0I0C0K

Hi! This problem solved in this prerelease

Hi! The prerelease version works for me! Thank you very much for your work!

Image

langningchen avatar Jul 03 '25 00:07 langningchen