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

application icons not loading #243

Closed
sid176 opened this issue Dec 5, 2019 · 15 comments
Closed

application icons not loading #243

sid176 opened this issue Dec 5, 2019 · 15 comments
Labels
Milestone

Comments

@sid176
Copy link

sid176 commented Dec 5, 2019

Application icons are not loading in the search.
image

Ueli version : 8.4.0
Electron : 5.0.9
Node : 12.0.0
V8 : 7.3.492.27-electron.0

error while refreshing application search :
{ "level": "error", "name": "PS_CMD_FAIL_ERROR", "service": "user-service", "timestamp": "2019-12-05T12:03:09.110Z" }

debug logs :
ueli_logs.txt

@krizajb
Copy link

krizajb commented Dec 14, 2019

Can confirm having the same issue after the update.

@amrbashir
Copy link
Contributor

amrbashir commented Dec 20, 2019

Same here ver 8.4.1

@amrbashir
Copy link
Contributor

amrbashir commented Dec 22, 2019

the problem is described here (see #202 )
tldr:poweshell doesn't support utf-8
but the given solution didn't work for me for two reasons, first, the ExcutionPolicy was Restricted on my machine, secondly the code provided was uncorrect, so here is what worked for me:
*Open powershell as administrator and execute following commands

  • Set-ExecutionPolicy -ExecutionPolicy Unrestricted to change the ExcutionPolicy and allow executing scripts. (do it on your own responsibility)[All about execution policy can be found here]
  • cd $home\Documents\WindowsPowerShell
  • New-Item -Path '.\Microsoft.PowerShell_profile.ps1' -ItemType File
  • notepad .\Microsoft.PowerShell_profile.ps1 , a notepad window will open, Paste this code into it and save it $OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding

for more info check this topic

@krizajb
Copy link

krizajb commented Dec 22, 2019

The icons are back with the proposed solution but unfortunately other problems arise not related to the ueli. For example the degrees (°) character is not displayed properly using the rainmeter program.

@amrbashir
Copy link
Contributor

@krizajb I didn't think of that, check my answer again, i edited it

@krizajb
Copy link

krizajb commented Jan 2, 2020

@AmrBinBashir Unfortunately it didn't work.

@amrbashir
Copy link
Contributor

amrbashir commented Jan 2, 2020

@krizajb provide ueli logs and open powershell to see if it gives any errors upon launching it, if so, paste the error here too.

@alefnull
Copy link

alefnull commented Jan 3, 2020

came to report this same problem, having just started noticing it myself. the described steps worked as intended for me. 👍

@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

@krizajb
Copy link

krizajb commented Jan 4, 2020

Still nothing, but my case might be an exception since even the above provided solution from @AmrBinBashir didn't work for me. Shall I try reinstalling?

@amrbashir
Copy link
Contributor

I can confirm the bug is solved, I reverted the steps i mentioned above and made sure i got the bug before updating to the newest version, after the update everything works fine.

@krizajb
Copy link

krizajb commented Jan 4, 2020

Reinstall didn't help. Let me know what I can do.

@oliverschwendener
Copy link
Owner

oliverschwendener commented Jan 4, 2020

@krizajb Delete uelis temp folder C:\Users\<your-username>\.ueli and restart the app. Maybe that helps?

@krizajb
Copy link

krizajb commented Jan 4, 2020

No, this is content of debug.log:

2020-01-04T17:37:29.248Z debug: 0/200 app icons already exist
2020-01-04T17:37:29.249Z debug: Started to generate 200 app icons to C:\Users\blazk\.ueli\application-icons
2020-01-04T17:37:31.533Z error: 
      Exception calling "ExtractAssociatedIcon" with "1" argument(s): "Illegal characters in path."
At line:1 char:86908
+ ... leExists) { $icon = [System.Drawing.Icon]::ExtractAssociatedIcon("C:\ ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentException
 
Exception calling "Save" with "2" argument(s): "Illegal characters in path."
At line:1 char:87081
+ ... leExists) { $bitmap = $icon.ToBitmap().save("C:\Users\blazk\.ueli\app ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentException

@krizajb
Copy link

krizajb commented Jan 12, 2020

I can confirm the latest build (8.5.0) fixed the issue for me.

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