Skip to content

Commit

Permalink
src: Capitalize Windows per-user install path
Browse files Browse the repository at this point in the history
Use the new capitalization of the per-user install path, even though
Windows is generally case-insensitive for filenames/paths,
and in theory/in testing it doesn't matter. I'm just playing it safe.
  • Loading branch information
DeeDeeG committed Jan 5, 2023
1 parent 1c3ce67 commit 5115ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apm.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports =
asarPath = '/opt/Pulsar/resources/app.asar'
return process.nextTick -> callback(asarPath)
when 'win32'
asarPath = "/Users/#{process.env.USERNAME}/AppData/Local/Programs/pulsar/resources/app.asar"
asarPath = "/Users/#{process.env.USERNAME}/AppData/Local/Programs/Pulsar/resources/app.asar"
unless fs.existsSync(asarPath)
asarPath = "/Program Files/Pulsar/resources/app.asar"
return process.nextTick -> callback(asarPath)
Expand Down

0 comments on commit 5115ae9

Please sign in to comment.