hackjutsu / Lepton

💻 Democratizing Snippet Management (macOS/Win/Linux)
https://hackjutsu.com/Lepton
MIT License
10.16k stars 471 forks source link

Path `~/.leptonrc` not recognized in snap package #357

Closed hackjutsu closed 4 years ago

hackjutsu commented 5 years ago

Environment info

Description of the problem / feature request / question:

Experiment shows that app.getPath('home') used by Lepton to find .leptonrc doesn't point to ~/.leptonrc directory, it points to ~/snap/lepton/current/.leptonrc instead.

https://github.com/hackjutsu/Lepton/blob/master/main.js#L239-L240