oliverschwendener / ueli

Cross-Platform Keystroke Launcher
https://ueli.app
MIT License
3.59k stars 236 forks source link

latest update broke all application shortcuts on win10 #427

Closed eskoONE closed 4 years ago

eskoONE commented 4 years ago

im on win10 1909 and ueli 8.7.1.

8.7.0 and the patch before that already broke shortcut icons to applications installed and now it doesnt show any installed application shortcuts at all.

doing a clean install didnt help.

edit:

refreshing index and clearing cache didnt help either.

tkohlmeier commented 4 years ago

Do you see errors in the debug log?

grafik

eskoONE commented 4 years ago

yes i do https://pastebin.com/phxZp6uP

interesting to note would be that these logs have been created just now but for some reason the time is wrong? its 15:50 here right now, so its off 2 hrs. system clock just works fine on windows.

tkohlmeier commented 4 years ago

This might be a problem parsing the powershell output again.

Please run this command in a cmd window:

powershell -command "Write-Host test"

It should only output "test". If there is more, it is indeed the problem i suspect.

eskoONE commented 4 years ago

that does output "test" as it is supposed to.

the error doesnt appear when i disable the application search plugin. "SyntaxError: Unexpected token C in JSON at position 2" is what i get when enabling the plugin after disabling it.

tkohlmeier commented 4 years ago

In that case, please run the following commands:

[Console]::OutputEncoding = [Text.UTF8Encoding]::UTF8;
$ErrorActionPreference = 'SilentlyContinue';
$applications = New-Object Collections.Generic.List[String];
%ApplicationFolders% | %{ Get-ChildItem -Path $_ -include *.lnk, *.appref-ms, *.url, *.exe -Recurse -File | % { $applications.Add($_.FullName) } };
$result = (@{
  errors = @($error | ForEach-Object { $_.Exception.Message });
  applications = $applications
} | ConvertTo-Json);
Write-Host $result;

Before running it, replace %ApplicationFolders% with your configured folders, like this:

'C:\temp', 'c:\temp2' | %{ Get-ChildItem -Path $_ -include *.lnk, *.appref-ms, *.url, *.exe -Recurse -File | % { $applications.Add($_.FullName) } };

Please attach the output.

eskoONE commented 4 years ago

seems like i did something wrong.

PS C:\Users\eskoo> [Console]::OutputEncoding = [Text.UTF8Encoding]::UTF8;
>> $ErrorActionPreference = 'SilentlyContinue';
>> $applications = New-Object Collections.Generic.List[String];
>> "C:\ProgramData\Microsoft\Windows\Start Menu\Programs", "C:\Users\eskoo\AppData\Roaming\Microsoft\Windows\Start Menu", "C:\Users\eskoo\Desktop" | %{ Get-ChildItem -Path $_ -include *.lnk, *.appref-ms, *.url, *.exe -Recurse -File | % { $applications.Add($_.FullName) } };
>> $result = (@{
>>   errors = @($error | ForEach-Object { $_.Exception.Message });
>>   applications = $applications
>> } | ConvertTo-Json);
>> Write-Host $result;
{
    "errors":  [
                   "Die Benennung \"C:\\ProgramData\\Microsoft\\Windows\\Start\" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang.",
                   null,
                   "Die Benennung \"%ApplicationFolders%\" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang.",
                   null
               ],
    "applications":  [
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessibility\\Speech Recognition.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessories\\System Tools\\Character Map.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessories\\Math Input Panel.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessories\\Paint.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessories\\Quick Assist.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessories\\Remote Desktop Connection.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessories\\Snipping Tool.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessories\\Steps Recorder.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessories\\Windows Fax and Scan.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessories\\Wordpad.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\Component Services.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\Computer Management.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\dfrgui.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\Disk Cleanup.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\Event Viewer.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\iSCSI Initiator.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\Memory Diagnostics Tool.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\ODBC Data Sources (32-bit).lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\ODBC Data Sources (64-bit).lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\Performance Monitor.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\RecoveryDrive.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\Registry Editor.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\Resource Monitor.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\services.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\System Configuration.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\System Information.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\Task Scheduler.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools\\Windows Defender Firewall with Advanced Security.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\GOG.com\\GOG GALAXY\\GOG GALAXY.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Logitech\\Logitech Gaming Software 9.00.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Riot Games\\League of Legends.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Riot Games\\VALORANT.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Sandboxie\\Run any program sandboxed.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Sandboxie\\Run Web browser sandboxed.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Sandboxie\\Run Windows Explorer sandboxed.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Sandboxie\\Sandboxie Control.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Sandboxie\\Sandboxie Start Menu.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Sandboxie\\Uninstall Sandboxie.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Steam\\Steam Support Center.url",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Steam\\Steam.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\System Tools\\Task Manager.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\X-COM - UFO Defense [GOG.com]\\Dokumente\\Support.url",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\X-COM - UFO Defense [GOG.com]\\Tools\\Graphic Mode Setup.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\X-COM - UFO Defense [GOG.com]\\Deinstallieren X-COM - UFO Defense.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\X-COM - UFO Defense [GOG.com]\\X-COM - UFO Defense.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Yendis Entertainment Pty Ltd\\Official Krunker.io Client.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\DTS Audio Control.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Epic Games Launcher.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Firefox.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Immersive Control Panel.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Accessibility\\Magnify.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Accessibility\\Narrator.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Accessibility\\On-Screen Keyboard.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Accessories\\Internet Explorer.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Accessories\\Notepad.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\7-Zip.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Alacritty.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Atom.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Bulk Crap Uninstaller.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Calibre E-Book Editor.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Calibre E-Book Viewer.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Calibre LRF Viewer.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Calibre.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\DDU - Display Driver Uninstaller.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Discord.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\FurMark.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Git Bash.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Git GUI.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\gitk.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\GZDoom.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Inkscape.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\IrfanView.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Kdenlive.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Less MSIérables.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\MSI Afterburner.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\MSI Kombustor.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\MultiMC.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Neovim.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Notepad++.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\O\u0026O ShutUp10.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\OBS Studio.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Open Hardware Monitor.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\paint.net.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\PowerToys.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\RivaTuner Statistics Server.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Rufus.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Sauerbraten.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\ShareX.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Snappy Driver Installer Origin.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Streamlink Twitch GUI.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\SumatraPDF.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Tor Browser.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\ueli.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Ventoy2Disk.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Veonim.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\VLC media player.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\Windows Terminal.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\ShareX.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\System Tools\\Administrative Tools.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\System Tools\\Command Prompt.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\System Tools\\computer.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\System Tools\\Control Panel.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\System Tools\\File Explorer.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\System Tools\\Run.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Windows PowerShell\\Windows PowerShell (x86).lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Windows PowerShell\\Windows PowerShell ISE (x86).lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Windows PowerShell\\Windows PowerShell ISE.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Windows PowerShell\\Windows PowerShell.lnk",
                         "C:\\Users\\eskoo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Streamlink Twitch GUI.lnk",
                         "C:\\Users\\eskoo\\Desktop\\Aseprite 1.X\\aseprite.exe",
                         "C:\\Users\\eskoo\\Desktop\\Aseprite 1.X\\gen.exe",
                         "C:\\Users\\eskoo\\Desktop\\Aseprite 1.X\\modp_b64_gen.exe",
                         "C:\\Users\\eskoo\\Desktop\\cddagl_portable_v1.4.10\\cdda\\previous_version\\cataclysm-tiles.exe",
                         "C:\\Users\\eskoo\\Desktop\\cddagl_portable_v1.4.10\\cdda\\previous_version\\json_formatter.exe",
                         "C:\\Users\\eskoo\\Desktop\\cddagl_portable_v1.4.10\\cdda\\cataclysm-tiles.exe",
                         "C:\\Users\\eskoo\\Desktop\\cddagl_portable_v1.4.10\\cdda\\json_formatter.exe",
                         "C:\\Users\\eskoo\\Desktop\\cddagl_portable_v1.4.10\\launcher.exe",
                         "C:\\Users\\eskoo\\Desktop\\cddagl_portable_v1.4.10\\UnRAR.exe",
                         "C:\\Users\\eskoo\\Desktop\\mbar\\Plugins\\fixdamage.exe",
                         "C:\\Users\\eskoo\\Desktop\\mbar\\mbamdor.exe",
                         "C:\\Users\\eskoo\\Desktop\\mbar\\mbar.exe",
                         "C:\\Users\\eskoo\\Desktop\\openXcomExtended\\UFO\\SOUND\\SNDEND.EXE",
                         "C:\\Users\\eskoo\\Desktop\\openXcomExtended\\UFO\\SOUND\\SNDSTART.EXE",
                         "C:\\Users\\eskoo\\Desktop\\openXcomExtended\\OpenXcomEx.exe",
                         "C:\\Users\\eskoo\\Desktop\\tiled-windows-64bit-snapshot\\terraingenerator.exe",
                         "C:\\Users\\eskoo\\Desktop\\tiled-windows-64bit-snapshot\\tiled.exe",
                         "C:\\Users\\eskoo\\Desktop\\tiled-windows-64bit-snapshot\\tiledquick.exe",
                         "C:\\Users\\eskoo\\Desktop\\tiled-windows-64bit-snapshot\\tmxrasterizer.exe",
                         "C:\\Users\\eskoo\\Desktop\\tiled-windows-64bit-snapshot\\tmxviewer.exe",
                         "C:\\Users\\eskoo\\Desktop\\ZDL_3-1.1_Win_x86\\ZDL.exe",
                         "C:\\Users\\eskoo\\Desktop\\aseprite.exe - Verknüpfung.lnk",
                         "C:\\Users\\eskoo\\Desktop\\Borderlands 2.url",
                         "C:\\Users\\eskoo\\Desktop\\CDDA Launcher.lnk",
                         "C:\\Users\\eskoo\\Desktop\\LaunchServer.bat - Verknüpfung.lnk",
                         "C:\\Users\\eskoo\\Desktop\\openXcomEx.lnk",
                         "C:\\Users\\eskoo\\Desktop\\Overcooked.url",
                         "C:\\Users\\eskoo\\Desktop\\tiled.exe - Verknüpfung.lnk",
                         "C:\\Users\\eskoo\\Desktop\\ZDL.lnk",
                         "C:\\Users\\eskoo\\Desktop\\[ROTP] ROTP Gov.lnk",
                         "C:\\Users\\eskoo\\Desktop\\[ROTP] ROTP.lnk"
                     ]
}
tkohlmeier commented 4 years ago

That looks ok, too...

Then let's try this command:

powershell -Command "& { [Console]::OutputEncoding = [Text.UTF8Encoding]::UTF8; $ErrorActionPreference = 'SilentlyContinue'; $applications = New-Object Collections.Generic.List[String]; %ApplicationFolders% | %{ Get-ChildItem -Path $_ -include *.lnk, *.appref-ms, *.url, *.exe -Recurse -File | % { $applications.Add($_.FullName) } }; $result = (@{ errors = @($error | ForEach-Object { $_.Exception.Message }); applications = $applications } | ConvertTo-Json); Write-Host $result; }"

Run it from a cmd window and again replace %ApplicationFolders% with your folders. But this time you have to use ' instead of ".

tkohlmeier commented 4 years ago

Oh and the first few lines of the output should be sufficient.

eskoONE commented 4 years ago

i put in

powershell -Command "& { [Console]::OutputEncoding = [Text.UTF8Encoding]::UTF8; $ErrorActionPreference = 'SilentlyContinue'; $applications = New-Object Collections.Generic.List[String]; 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs', 'C:\Users\eskoo\AppData\Roaming\Microsoft\Windows\Start Menu', 'C:\Users\eskoo\Desktop' | %{ Get-ChildItem -Path $_ -include *.lnk, *.appref-ms, *.url, *.exe -Recurse -File | % { $applications.Add($_.FullName) } }; $result = (@{ errors = @($error | ForEach-Object { $_.Exception.Message }); applications = $applications } | ConvertTo-Json); Write-Host $result; }"

and got

{
    "errors":  [

               ],
    "applications":  [
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessibility\\Speech Recognition.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessories\\System Tools\\Character Map.lnk",
tkohlmeier commented 4 years ago

Did you really add all the folders you have configured in the application search plugin?

eskoONE commented 4 years ago

i didnt set anything myself. these are the folders the program put in itself. you can see it here https://i.imgur.com/LSZtPZq.png.

tkohlmeier commented 4 years ago

Alright, this is really strange.

We need to know the output of the command ueli actually gets. Can you set up the development environment?

You need:

Install Node.js, Yarn and Visual Studio Code and then extract the repository somewhere. Open the extracted folder with Visual Studio Code, open a terminal and type: yarn bundle; yarn start

If you didn't close ueli before that, you should get this error:

Other instance is already running: quitting app.

Otherwise, ueli should start normally.

tkohlmeier commented 4 years ago

I forgot, before running yarn bundle; yarn start you need to run just yarn.

eskoONE commented 4 years ago

im not sure i have enough space on my ssd for vs right now but ill try and report back. do you want me to close the instance of ueli that is already running or want me to have it running?

edit: rebooting now and testing afterwards.

tkohlmeier commented 4 years ago

Visual Studio Code is (compared to Visual Studio) quite small, about 250 MB. The names are very similar but besides they don't have very much in common...

You should close ueli before running it from VS code.

If it works, go to the file application-searcher.ts (the fastest way to find it is using Go -> Go to File...). There, add the following in line 29:

console.log("application searcher output:", resultOutput);

It should look like this then:

.then((resultOutput: string) => {
    console.log("application searcher output:", resultOutput);
    const result : { errors: string[], applications: string[] } = JSON.parse(resultOutput);

Then run yarn bundle; yarn start again. There should be some output like this:

application searcher output: {
    "errors":  [

            ],
    "applications":  [

Please attach the first few lines of it again.

eskoONE commented 4 years ago

yea, i figured its not vs studio.

first few lines:

{
    "errors":  [

               ],
    "applications":  [
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessibility\\Speech Recognition.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessories\\System Tools\\Character Map.ln
k",

end of it

                         "C:\\Users\\eskoo\\Desktop\\[ROTP] ROTP Gov.lnk",
                         "C:\\Users\\eskoo\\Desktop\\[ROTP] ROTP.lnk"
                     ]
}

2020-06-10T15:40:47.374Z error: Unexpected token C in JSON at position 2
SyntaxError: Unexpected token C in JSON at position 2
    at JSON.parse (<anonymous>)
    at C:\Users\eskoo\Downloads\ueli-master\bundle\main.js:150150:33

edit: i just noticed, the timestamp is still wrong. could it be related to that?

tkohlmeier commented 4 years ago

Try clicking on this: main.js:150150:33 while holding down the Ctrl key. You should jump to the file main.js. Please copy some of the lines around the one where you jumped to.

The timestamp is UTC (indicated by the trailing 'Z'). Your time zone is GMT+2, that's why it's 2 hours off.

eskoONE commented 4 years ago
        const printResult = "Write-Host $result";
        const powershellScript = `${utf8Encoding}; ${ignoreErrors}; ${createApplicationsArray}; ${folders} | %{ ${getChildItem} }; ${createResult}; ${printResult};`;
        const command = `powershell -Command "& { ${powershellScript} }"`;
        command_executor_1.executeCommandWithOutput(command)
            .then((resultOutput) => {
            console.log("application searcher output:", resultOutput);
            const result = JSON.parse(resultOutput);
            if (result.errors && result.errors.length > 0) {
                logger.error('Errors occurred while searching for applications:\n' + result.errors.join("\n"));
            }
            resolve(result.applications);
        })
            .catch((err) => reject(err));
    });
eskoONE commented 4 years ago

i checked which version was the last one that was running without any issues. till 8.1.1 everything seems fine but 8.1.2 broke the application icons for me.

i hope that helps narrowing down the issue.

tkohlmeier commented 4 years ago

yea, i figured its not vs studio.

first few lines:

{
    "errors":  [

               ],
    "applications":  [
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessibility\\Speech Recognition.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessories\\System Tools\\Character Map.lnk",

Is this really the full output? It should start with application searcher output:

eskoONE commented 4 years ago

C:\Users\eskoo\Downloads\ueli-master>yarn start
yarn run v1.22.4
$ ./node_modules/.bin/electron . --remote-debugging-port=9223

DevTools listening on ws://127.0.0.1:9223/devtools/browser/e8728266-ee79-441d-a36f-979bdbf1b7c1       
(electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false". 
 It will change to be "true" in Electron 9.  For more information please check https://github.com/electron/electron/issues/18397
application searcher output: 
CommandType     Name                                               Version    Source

-----------     ----                                               -------    ------

Alias           np++ -> notepad++.exe

{
    "errors":  [

               ],
    "applications":  [
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessibility\\Speech Recognition.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessories\\System Tools\\Character Map.lnk",
                         "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Accessories\\Math Input Panel.lnk",

this is all there is at the start.

eskoONE commented 4 years ago

okay, i removed the alias i had set from my ps profile, np++ that i used for notepad. somehow that broke the application search.

what i dont understand is, why was this working before and randomly stopped working in the later updates. funnily enough, it also fixed my issue with not seeing application icons.

sry for causing such a headache and wasting your time. it never appeared to me that setting an alias for notepad could be the cause of my issue.

tkohlmeier commented 4 years ago

Alright, now the error Unexpected token C in JSON at position 2 makes sense. It's the C from CommandType that is not expected.

Don't be sorry, this was not your fault. Setting an alias should not break ueli's functionality...

what i dont understand is, why was this working before and randomly stopped working in the later updates. funnily enough, it also fixed my issue with not seeing application icons.

The icon problem was not related to the problem of not finding any applications. The latest release includes a fix for application icons, so this explains why that works now, too.

One more thing: Did the output you got from the command here really not contain that CommandType part?

eskoONE commented 4 years ago

no it didnt.

it did after i removed the alias and ran the command through vs codes terminal like you suggested and it did ouput the first few likes like you expected.

edit: thanks for helping me out figuring out this problem. rly appreciate it.