# Julia starts in system32 by default

**URL:** https://discourse.julialang.org/t/julia-starts-in-system32-by-default/112877
**Category:** New to Julia
**Created:** [April 12, 2024, 1:09pm UTC](https://discourse.julialang.org/t/julia-starts-in-system32-by-default/112877 "2024-04-12T13:09:19Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Donald](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Donald](https://discourse.julialang.org/u/Donald)
#### Post date: [April 12, 2024, 1:09pm UTC](https://discourse.julialang.org/t/julia-starts-in-system32-by-default/112877/1 "2024-04-12T13:09:19Z")

</div>

I installed Julia using the recommended `winget` method. When I launch Julia from the start menu, the default working directory is

```julia
julia> pwd()
"C:\\WINDOWS\\system32"

```

This causes problems when trying to install packages into a new environment. Is this working as designed?

---

<div class="post-metadata">

### Author: ![Christian\_Dengler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christian_dengler/32/20969_2.png) [@Christian\_Dengler](https://discourse.julialang.org/u/Christian_Dengler)
#### Post date: [April 12, 2024, 2:15pm UTC](https://discourse.julialang.org/t/julia-starts-in-system32-by-default/112877/2 "2024-04-12T14:15:07Z")

</div>

Doesnt help much, but I can tell you it is not working as intended for you.  
I also use winget on Windows, and Julia starts in my home directory (=intended). I dont know what could be the reason for this behavior on your side though.

---

<div class="post-metadata">

### Author: ![Donald](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Donald](https://discourse.julialang.org/u/Donald)
#### Post date: [April 12, 2024, 3:08pm UTC](https://discourse.julialang.org/t/julia-starts-in-system32-by-default/112877/3 "2024-04-12T15:08:04Z")

</div>

My laptop is university-managed and actually blocks the Microstoft Store, so I was quite surprised when the `winget` command worked and installed Julia. If I start Julia from Windows PowerShell then it launches in the current directory as expected.

---

<div class="post-metadata">

### Author: ![Jeff\_Emanuel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeff_emanuel/32/15440_2.png) [@Jeff\_Emanuel](https://discourse.julialang.org/u/Jeff_Emanuel)
#### Post date: [April 12, 2024, 3:22pm UTC](https://discourse.julialang.org/t/julia-starts-in-system32-by-default/112877/4 "2024-04-12T15:22:10Z")

</div>

If you care about using the start menu, you should be able to open Properties for the Julia shortcut and change the “Start in” directory.

1. Right click on Julia in your start menu and select More \> Open file location
2. Right click on the Julia shortcut in the window that appears and select Properties
3. In the Properties dialog, change to your preferred startup directory.

---

<div class="post-metadata">

### Author: ![Donald](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Donald](https://discourse.julialang.org/u/Donald)
#### Post date: [April 12, 2024, 3:33pm UTC](https://discourse.julialang.org/t/julia-starts-in-system32-by-default/112877/5 "2024-04-12T15:33:46Z")

</div>

The entry in the start menu is not a typical app shortcut and doesn’t appear to have a “properties” feature. I’m using Windows 11 if that helps.

---

<div class="post-metadata">

### Author: ![Jeff\_Emanuel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeff_emanuel/32/15440_2.png) [@Jeff\_Emanuel](https://discourse.julialang.org/u/Jeff_Emanuel)
#### Post date: [April 12, 2024, 3:41pm UTC](https://discourse.julialang.org/t/julia-starts-in-system32-by-default/112877/6 "2024-04-12T15:41:59Z")

</div>

Sorry, I’m on Windows 10 and I haven’t used 11.

Maybe this helps: [Redirecting](https://answers.microsoft.com/en-us/windows/forum/all/restore-old-right-click-context-menu-in-windows-11/a62e797c-eaf3-411b-aeec-e460e6e5a82a)

---

<div class="post-metadata">

### Author: ![Christian\_Dengler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christian_dengler/32/20969_2.png) [@Christian\_Dengler](https://discourse.julialang.org/u/Christian_Dengler)
#### Post date: [April 12, 2024, 4:12pm UTC](https://discourse.julialang.org/t/julia-starts-in-system32-by-default/112877/7 "2024-04-12T16:12:57Z")

</div>

Nevermind my previous comment, Im at home now and it actually also starts under “C:\WINDOWS\system32”. I probably had it installed diffferently on my work PC. It would indeed be better if it started in the home folder instead.

---

<div class="post-metadata">

### Author: ![Donald](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Donald](https://discourse.julialang.org/u/Donald)
#### Post date: [April 13, 2024, 10:15am UTC](https://discourse.julialang.org/t/julia-starts-in-system32-by-default/112877/8 "2024-04-13T10:15:24Z")

</div>

I run Linux on my computer at home, but on Monday I’ll try the portable Windows installer and see if I have the same issue.

---

<div class="post-metadata">

### Author: ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)
#### Post date: [April 13, 2024, 1:25pm UTC](https://discourse.julialang.org/t/julia-starts-in-system32-by-default/112877/9 "2024-04-13T13:25:48Z")

</div>

I have run into this issue when my Windows home directory becomes inaccessible for some reason, typically because my home directory is set to some network file share location.

This usually involves the following environment variables `%UserProfile%` or `%HomeDrive%%HomePath%`.

---

<div class="post-metadata">

### Author: ![kimikage](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kimikage/32/14534_2.png) [@kimikage](https://discourse.julialang.org/u/kimikage)
#### Post date: [April 14, 2024, 12:26am UTC](https://discourse.julialang.org/t/julia-starts-in-system32-by-default/112877/10 "2024-04-14T00:26:05Z")

</div>

FWIW, I have a practice of typing 0-arg `cd`.

```julia
shell> cd
C:\Users\username

shell> cd .julia/dev/SomeFabulousPackages

```
