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.

Auto-detect user folders paths

See original GitHub issue

User folders paths are stored in Windows Registry.

You can find them there : HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

Folder Windows Registry Key
Desktop Desktop
Downloads {374DE290-123F-4565-9164-39C4925E467B}
Documents Personal
Pictures My Pictures
Music My Music
Videos My Video

(Source)

You should be able to get these by using Microsoft.Win32.Registry.GetValue.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
yaira2commented, Jul 28, 2019

I believe we are already detecting user paths, the only one that is not using that method at moment is the downloads folder, thank you for the registry key.

0reactions
lukeblevinscommented, Nov 30, 2019

@KaKi87 This is fixed for the v0.7 release. Thank you for your patience.

Read more comments on GitHub >

github_iconTop Results From Across the Web

automatically select correct user folder on different machines
I would do this as follows: import os. Get current working directory: work_dir = os.getcwd(). You likely only get C:\Users\myname when you ...
Read more >
Correct App detection rule File Path for User Folder
Hi Guys, I have deployed a file to the user's folder, but I don't think I have the correct syntax for the "Current...
Read more >
Automatic creation of user folders for home, roaming profile ...
Automatic creation of user folders for home, roaming profile and redirected folders. · 1. Click Offline Settings on Windows 2000 or Caching on ......
Read more >
Active Directory Home Folder Automatic Creation & Mapping
Automatically create a home folder and map a drive letter for Microsoft Active Directory using the %username% variable.
Read more >
windows 7 - Extract archive here, autodetect subfolder
Remove redundant folders from extraction path ... this option removes the top level folder based on archive name from extraction path.
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