question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows: Incorrect userprofile path usage

See original GitHub issue

A quick look into the debug log shows that ueli is not using the correct way to specify userprofile-related paths. For example, if I set my Desktop under D:\Users\froyo\Desktop, you won’t be able to find it via C:\Users\froyo\Desktop. (Edit: the next sentence is wrong:) The correct usage is %userprofile%\Desktop

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
FlotterCodernamecommented, Sep 5, 2020

Feels like the ball is in nodejs’s court. @oliverschwendener I’m closing this

1reaction
amrbashircommented, Sep 5, 2020

I see, Let me explain how ueli finds the desktop folder, Ueli calls os.homedir which will use windows’s %userprofile% variable and that would return in your case C:\Users\fabia then Ueli adds \Desktop to the end. Now, In your case what happens is Ueli uses powershell to list what’s in the Desktop folder at the path determined by the process above, and powershell reports that the given path doesn’t exist and that’s true.

File Explorer keeps track of the known folders location somehow and redirects you correctly. The location of these folders can be accessed using native tools, but that would make the development harder than it should be, since Ueli only uses this folder as a default location for the application search plugin which can simply be removed by the user if causes issues.

Your situation is very specific to be honest and In my opinion, this doesn’t qualify to be a bug. The simplest solution for people who changed their Desktop folder location is simply removing it from the application search plugin and adding the correct path. You will have to set it up once and forget about it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

%userprofile% is wrong - Microsoft Community
%userprofile% is wrong. After changing my username from Jerol to Jerold (using netplwiz) on Windows 10, and frebooting, %username% is Jerold BUT ...
Read more >
windows - %USERPROFILE% variable not working - Super User
The %UserProfile% variable is a special system-wide environment variable that is complete in and of itself. It contains %SystemDrive%\Users\{username}.
Read more >
store installer sets wrong path, as literal ';%USERPROFILE ...
Windows store installer for v1.0.1401.0 appends wrong value to path. ... it successfully if I use the full path at a prompt or...
Read more >
How to Fix a Corrupt User Profile in Windows 10
If the SID key is listed without .bak, double-click the ProfileImagePath value name. Enter the correct path (C:\Users\username) of your user ...
Read more >
How to Fix "User Profile Service Failed the Sign-in" Error for ...
After signing in to your computer on an incorrect user profile, start the Windows Run command option using Win + R and enter...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found