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

App icon doesn't work since 8.1.2 #202

Closed
tuananhlai opened this issue Oct 3, 2019 · 32 comments
Closed

App icon doesn't work since 8.1.2 #202

tuananhlai opened this issue Oct 3, 2019 · 32 comments
Labels
Milestone

Comments

@tuananhlai
Copy link

image

@oliverschwendener
Copy link
Owner

Thanks for the report! Will check this asap!

@tuananhlai
Copy link
Author

Going back to 7.2.0 solves the problem. But after I update back to 8.1.3, the problem still persists. Hope this help 😔

@oliverschwendener
Copy link
Owner

oliverschwendener commented Oct 3, 2019

Is there something in the debug log?

This is how you open the log:

image

@tuananhlai
Copy link
Author

I will check it and post it here when I get home.

@tuananhlai
Copy link
Author

debug.log
Here it is.

@oliverschwendener
Copy link
Owner

oliverschwendener commented Oct 3, 2019

What happens if you clear all caches and then refresh the indexes?

image

image

@tuananhlai
Copy link
Author

The bug is still here after I tried clearing the caches and refreshing the indexes :(

@oliverschwendener
Copy link
Owner

For me it works fine. Can you show me the settings of the application search plugin?

@oliverschwendener
Copy link
Owner

You probably disabled the option "Use native icons"

@tuananhlai
Copy link
Author

image

I got this error when I tried turning on "Use native icon"
{ "level": "error", "name": "PS_CMD_FAIL_ERROR", "service": "user-service", "timestamp": "2019-10-03T16:06:52.914Z" }

@oliverschwendener
Copy link
Owner

What happens if you reset the application search settings to default?

image

@oliverschwendener
Copy link
Owner

And does this issue occur in 8.1.1?

@tuananhlai
Copy link
Author

No, 8.1.1 is fine. I've been using it since I discovered the bug.

@oliverschwendener
Copy link
Owner

What about resetting the settings to default?

@ghost
Copy link

ghost commented Oct 8, 2019

Had the same issue with the same error
{ "level": "error", "name": "PS_CMD_FAIL_ERROR", "service": "user-service", "timestamp": "2019-10-08T18:33:28.240Z" }
A particular shortcut seemed to be problematic and deleting it fixed it. Recreating the same shortcut did not throw any issues.

@oliverschwendener
Copy link
Owner

@BryantShepherd Can you check if this is also the case for you?

@tuananhlai
Copy link
Author

What about resetting the settings to default?

It did fixed the issues by resetting "Application Search" to default. Thanks a lot!

@tuananhlai
Copy link
Author

tuananhlai commented Oct 13, 2019

Something is wrong with the .pdf file extensions. If I add ".pdf" in Application file extensions, this message appears: { "level": "error", "name": "PS_CMD_FAIL_ERROR", "service": "user-service", "timestamp": "2019-10-13T06:11:55.889Z" }

@oliverschwendener
Copy link
Owner

Good to know, I'll look into it!

@oliverschwendener
Copy link
Owner

Do you know which file extactly is causing the problem? I tried adding pdf to the extensions and it worked without any problems.

@tuananhlai
Copy link
Author

image
Here is my pdf folder. I could only include this or include '.pdf' extension but not both. Maybe it's just my device has a problem, because my other pc works fine.

@oliverschwendener
Copy link
Owner

Ok, then I'll close this issue now.

Just for clarification:

  • Use the application search plugin only to search programs
  • If you want to search specific folders use the simple folder search plugin
  • If you want to search files on a global scope then use the everything plugin

@dolandemort
Copy link

Can confirm that this is also an issue for me. I reproduced the issue by doing the following:

  1. Added a directory that contains videos.
  2. Added '.mkv' and '.mp4' extensions.

It is the combination of these two things that seems to cause the problems. Obviously that directory contains files of both these types.

@oliverschwendener
Copy link
Owner

As stated in my previous comment:

  • Use the application search plugin only to search programs
  • If you want to search specific folders use the simple folder search plugin
  • If you want to search files on a global scope then use the everything plugin

@dolandemort
Copy link

Oh, I see. Unfortunately, I and many others will elect not to install Everything since it isn't open source (one of the attractions of ueli for many).

@TheMechanical
Copy link

Hmm. I got the same error when adding .lnk extension on Windows 10.
ueli 8.3.0

{"level": "error", "name": "PS_CMD_FAIL_ERROR", "service": "user-service", "timestamp": "2019-11-27T19: 31: 41.397Z"}

There are no icons :(

image

I tried all of the above. Does not work

@oliverschwendener
Copy link
Owner

Can you post a screenshot of your application search settings?

@tuananhlai
Copy link
Author

The problem is solved when I update to version 8.2.0. Thanks very much!

@TheMechanical
Copy link

Can you post a screenshot of your application search settings?

Hi. Settings by default:

image

Turns the "Use native icons" setting on and off.
When the setting is on, an error occurs; when it is turned off, there is no error. But there are no application icons in both cases.

@TheMechanical
Copy link

TheMechanical commented Dec 4, 2019

So, I have found a problem. And she ended up in Windows 10.

In "executeCommandWithOutput" in "application-searcher.ts" PowerShell is used and it gave Cyrillic characters in the form of question marks (like this: ????-filename).

If someone has a similar problem. For the solution, you just need to fix the encoding in PowerShell:

In path: C:\Users{UserName}\Documents\WindowsPowerShell

Created the file: Microsoft.PowerShell_profile.ps1

With this content:
$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding

Now the icons are displayed correctly.

This was referenced Dec 22, 2019
@amrbashir
Copy link
Contributor

amrbashir commented Dec 22, 2019

@TheMechanical the code you provieded didn't work for me,first, because the execution policy on my machine was Restricted and secondly, your code had some errors, here is the code that worked for me
$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding

@oliverschwendener oliverschwendener added this to the Version 8.5.0 milestone Jan 4, 2020
@oliverschwendener
Copy link
Owner

I added a fix in the newest version. Can you guys check if it works now?

  1. Clear caches first:
    image

  2. Then refresh indices:
    image

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

5 participants